- Open Automator
- Create a new Service
- Set โService receives selectedโ to
files or foldersinany application - Add a
Run Shell Scriptaction - Set the script action to
/usr/local/bin/atom -n "$@" - Set โPass inputโ to
as arguments - Save as
Open in Atom
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const countToThree = { | |
| a: 1, | |
| b: 2, | |
| c: 3 | |
| }; | |
| countToThree[Symbol.iterator] = function* () { | |
| const keys = Object.keys(this); | |
| const length = keys.length; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ meteor create --example leaderboard | |
| $ cd leaderboard | |
| $ modulus project create leaderboard -r node.js -s 512 | |
| $ modulus env set ROOT_URL $(modulus project list | grep leaderboard | awk '{print $4}') -p leaderboard | |
| $ modulus addons add mongo:base -p leaderboard | |
| $ modulus deploy -p leaderboard |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # zsh | |
| EMOJI=(๐ฉ ๐ฆ ๐ ๐ ๐จ ๐ ๐ญ ๐ฝ โ๏ธ ๐ฌ ๐ ๐ท ๐ผ ๐ถ ๐ธ ๐ง ๐ณ ๐ ๐ฃ ๐ป ๐ฎ ๐ฐ ๐ ๐พ ๐ ๐ช ๐ ๐ ๐ ๐ ๐ ) | |
| function random_emoji { | |
| echo -n "$EMOJI[$RANDOM%$#EMOJI+1]" | |
| } | |
| PROMPT="$(random_emoji) " | |
| RPROMPT='%c' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --Sprite Sheet Renderer by Corey Wolff | |
| --Currently this is setup to use automatically spit out a sprite sheet to a specific location based on the | |
| --CreateProject and CreateAsset script I made. It also wants to then have Unity chop up the sprite sheet. | |
| --If people are intersted I could modify this to be a more generic version. | |
| studioLib() | |
| drvLibGame() | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { | |
| // Do not use this library. This is just a fun example to prove a | |
| // point. | |
| var Bloop = window.Bloop = {}; | |
| var mountId = 0; | |
| function newMountId() { | |
| return mountId++; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Export bookmarks from Chrome as text. | |
| Go to Bookmarks Manager->Organize->Export to HTML file. | |
| Then open that file, open console and run this command: | |
| */ | |
| [].map.call(document.querySelectorAll("dt a"), function(a) { | |
| return a.textContent + " - " + a.href | |
| }).join("\n"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias server='open http://localhost:8000 && python -m SimpleHTTPServer' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * File: bst.js | |
| * | |
| * A pure JavaScript implementation of a binary search tree. | |
| * | |
| */ | |
| /* | |
| * Class: BST | |
| * |