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'] |
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
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
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
git config --global user.email [email protected] | |
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
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
<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
<key>JVMCapabilities</key> | |
<array> | |
<string>JNI</string> | |
<string>BundledApp</string> | |
<string>WebStart</string> | |
<string>Applets</string> | |
<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
package com.creativei.viewpagerloop; | |
import android.os.Bundle; | |
import android.support.v4.app.Fragment; | |
import android.support.v4.app.FragmentManager; | |
import android.support.v4.app.FragmentStatePagerAdapter; | |
import android.support.v4.view.ViewPager; | |
import android.support.v4.view.ViewPager.OnPageChangeListener; | |
import android.support.v7.app.ActionBarActivity; | |
import android.util.Log; |
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
package me.creativei.instructionsoverlay; | |
import android.content.SharedPreferences; | |
import android.os.Bundle; | |
import android.support.v7.app.ActionBarActivity; | |
import android.view.Menu; | |
import android.view.MenuItem; | |
import android.view.View; | |
public class MainActivity extends ActionBarActivity { |
OlderNewer