This file contains 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 express = require('express'); | |
var app = express(); | |
app.use(express.bodyParser()); | |
var users = [ | |
{ | |
"id": 0, | |
"isActive": false, | |
"balance": "$1,274.00", |
This file contains 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
#!/bin/sh | |
# Params | |
while echo $1 | grep ^- > /dev/null; do | |
eval $( echo $1 | sed 's/-//g' | tr -d '\012')=$2 | |
shift | |
shift | |
done | |
adbdefault="/Applications/adt-bundle-mac-x86_64-20130522/sdk/platform-tools/adb" |
This file contains 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
ruby mods.rb /Applications/Minecraft/MultiMC.app/Contents/Resources/instances/CustomDirewolf20/ > mods.txt |
This file contains 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
embed, iframe, object { max-width: 100%; } |
This file contains 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
// UIViewController+ModalCheck.h | |
// | |
// Created by Felipe Sabino on 06/14/11 | |
#import <UIKit/UIKit.h> | |
@interface UIViewController (ModalCheck) | |
-(BOOL)isPresentedAsModal; |
This file contains 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
#!/bin/sh | |
while : | |
do | |
./querydb.sh | |
sleep 2 | |
done |
This file contains 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
/* | |
If you want to use blocks the only method that works is: | |
setImageWithURLRequest:placeholderImage:success:failure: | |
But you don't want to use URLRequest! | |
*/ | |
// .h | |
- (void)setImageWithURL:(NSURL *)url | |
placeholderImage:(UIImage *)placeholderImage |
NewerOlder