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
{ | |
"description": "Simple pub/sub messaging for the web", | |
"keywords": [ | |
"comet", | |
"websocket", | |
"pubsub", | |
"bayeux", | |
"ajax", | |
"http" | |
], |
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
info: Welcome to Nodejitsu | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Authenticated as steve21124 | |
warn: There in no valid package.json file in /Users/steve/Projects/SourceCode/nodejs/FayeObj/nodechat2 | |
warn: Creating package.json at /Users/steve/Projects/SourceCode/nodejs/FayeObj/nodechat2/package.json | |
help: | |
help: A package.json stores meta-data about your application | |
help: In order to continue we'll need to gather some information about your app | |
help: |
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
spiderman56:nodechat2 steve$ jitsu deploy | |
info: Welcome to Nodejitsu | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Authenticated as steve21124 | |
warn: There in no valid package.json file in /Users/steve/Projects/SourceCode/nodejs/FayeObj/nodechat2 | |
warn: Creating package.json at /Users/steve/Projects/SourceCode/nodejs/FayeObj/nodechat2/package.json | |
help: | |
help: A package.json stores meta-data about your application | |
help: In order to continue we'll need to gather some information about your app |
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
spiderman56:nodechat2 steve$ jitsu deploy | |
info: Welcome to Nodejitsu | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Authenticated as steve21124 | |
warn: | |
warn: Your package.json file is missing required fields: | |
warn: | |
warn: subdomain, scripts.start | |
warn: |
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
Last login: Thu Feb 2 03:34:28 on ttys000 | |
robinhood:~ steve$ cat ~/.railsrc | |
cat: /Users/steve/.railsrc: No such file or directory | |
robinhood:~ steve$ rvm current | |
ruby-1.9.2-p290@rails3 | |
robinhood:~ steve$ rvm gemdir | |
/Users/steve/.rvm/gems/ruby-1.9.2-p290@rails3 | |
robinhood:~ steve$ cd /Users/steve/.rvm/gems/ruby-1.9.2-p290@rails3 | |
robinhood:ruby-1.9.2-p290@rails3 steve$ ls -al | |
total 0 |
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
2012-02-07 21:28:11.649 faceWrapper[30363:207] DETECTED photo tag: 999 | |
2012-02-07 21:28:11.651 faceWrapper[30363:207] FACE DETECTED: { | |
attributes = { | |
gender = { | |
confidence = 77; | |
value = female; | |
}; | |
glasses = { | |
confidence = 14; | |
value = false; |
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
jQuery(document).ready(function($){ | |
var $masonry = $('#masonry'); | |
$('#navigation').css({'visibility':'hidden', 'height':'1px'}); | |
$masonry.masonry({ | |
itemSelector : '.thumb', | |
isFitWidth: true | |
}); | |
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
<?php | |
if (has_post_thumbnail()) { | |
$imgsrc = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID),'medium'); | |
} elseif ($postimages = get_children("post_parent=$post->ID&post_type=attachment&post_mime_type=image&numberposts=0")) { | |
foreach($postimages as $postimage) { | |
$imgsrc = wp_get_attachment_image_src($postimage->ID, 'medium'); | |
} | |
} elseif (preg_match('/<img [^>]*src=["|\']([^"|\'] )/i', get_the_content(), $match) != FALSE) { | |
$imgsrc[0] = $match[1]; | |
} else { |
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/bash | |
# mirrors and uploads a wordpress blog to a static web site | |
# check http://x-ian.net for details | |
# my configs | |
LOCAL_WORDPRESS=x-ian.net | |
REMOTE_WORDPRESS=x-ian.net | |
SSH_LOGIN=<your ssh credentials> | |
REMOTE_HTTP_DIR=x-ian.net |
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
+ (void) createMovieFromImages:(NSString*) folderName file:(NSString *) fileName withSize:(CGSize)imageSize imageArray:(NSMutableArray*) imageArray { | |
int duration = 60.0; // Movie duration | |
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); | |
NSString *documentsDirectoryPath = [paths objectAtIndex:0]; | |
NSString *myFilePath; | |
if([folderName length] == 0) { | |
myFilePath = [documentsDirectoryPath stringByAppendingPathComponent:fileName]; | |
} else { | |
myFilePath = [[[[documentsDirectoryPath stringByAppendingString:@"/"] stringByAppendingString:folderName] | |
stringByAppendingString:@"/"] stringByAppendingString:fileName]; |
OlderNewer