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
| <key>JVMCapabilities</key> | |
| <array> | |
| <string>CommandLine</string> | |
| </array> |
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 formatCurrency(number) { | |
| var numberStr = number.toString(); | |
| var thousandsMatcher = /(\d+)(\d{3})$/; | |
| var thousandsAndRest = thousandsMatcher.exec(numberStr); | |
| if (!thousandsAndRest) return numberStr; | |
| return thousandsAndRest[1].replace(/\B(?=(\d{2})+(?!\d))/g, ",") + "," + thousandsAndRest[2]; | |
| } |
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
| git config --global user.email amir.nagri+git@gmail.com | |
| git config --global user.name "Amiruddin Nagri" | |
| git config --global color.ui auto | |
| git config --global alias.cp = cherry-pick | |
| git config --global alias.st status | |
| git config --global alias.co checkout | |
| git config --global alias.dc "diff --cached" | |
| git config --global alias.br branch | |
| git config --global alias.dlc "diff --cached HEAD^" |
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
| cflags="-I$pkgincludedir -Wall -Os -g -fno-strict-aliasing -DDBUG_OFF -arch x86_64 " #note: end space! | |
| cxxflags="-I$pkgincludedir -Wall -Os -g -fno-strict-aliasing -DDBUG_OFF -arch x86_64 " #note: end space! |
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
| tell application "Finder" | |
| set myWin to window 1 | |
| set theWin to (quoted form of POSIX path of (target of myWin as alias)) | |
| tell application "iTerm" | |
| make new terminal | |
| tell the first terminal | |
| activate current session | |
| launch session "Default Session" | |
| tell the last session | |
| write text "cd " & theWin |
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
| class Player | |
| def play_turn(warrior) | |
| if @backward.nil? | |
| if warrior.feel(:backward).captive? | |
| warrior.rescue!(:backward) | |
| elsif warrior.feel(:backward).empty? | |
| warrior.walk!(:backward) | |
| else | |
| @backward = true | |
| warrior.walk! |
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
| ; | |
| var validator = $('form').expValidate({ | |
| rules: { | |
| cityname: 'required', | |
| checkinDate: ['required', 'date'], | |
| checkoutDate: ['required', 'date'] | |
| }, | |
| groups: { | |
| dateRange: ['checkinDate', 'checkoutDate'] |
NewerOlder