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 re, match, html; | |
| re = /<a href="(.*?)">([^<])+<\/a>/g; | |
| re = /<a href=".*?">([^<]+)<\/a>/g; | |
| html = 'Testing <a href="http://yahoo.com">one two three</a> <a href="http://google.com">one two three</a> foo'; | |
| while ( ( match = re.exec(html) ) != null ) | |
| { | |
| console.log( match ); | |
| } |
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 ignite = require('ignite') | |
| , _ = require('underscore') | |
| , request = require('request') | |
| , cashcardController = require('./cashcardController.js') | |
| , txService | |
| , dbService | |
| , cashcardFactory | |
| , controller; | |
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
| su; | |
| rsync -avz nazt@128.1.1.236:/Users/NAzT/Projects/opendream/TOPUP_200_ARM11_SERVER_NEW ~/Desktop/; cd ~/Desktop/TOPUP_200_ARM11_SERVER_NEW/ ; make clean ; /usr/local/Trolltech/QtEmbedded-4.7.0-arm/bin/qmake ; | |
| make | |
| rsync -avz ~/Desktop/TOPUP_200_ARM11_SERVER_NEW/TOPUP_200 nazt@128.1.1.236:/Users/NAzT/Projects/opendream/TOPUP_NAT5 |
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 qmake_em='/usr/local/Trolltech/QtEmbedded-4.7.0-arm/bin/qmake' | |
| alias rsync_down='rsync -avz nazt@128.1.1.236:/Users/NAzT/Projects/opendream/TOPUP_200_ARM11_SERVER_NEW ~/Desktop/' | |
| alias rsync_up=' rsync -avz ~/Desktop/TOPUP_200_ARM11_SERVER_NEW/TOPUP_200 nazt@128.1.1.236:/Users/NAzT/Projects/opendream/TOPUP_NAT5' |
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 bag = [] | |
| function get_data (worksheet_id, cb) { | |
| var sorted; | |
| var local = { }; | |
| console.log('processing', worksheet_id) | |
| jQuery.getJSON("http://localhost:5000/?callback=?&spreadsheet_key=0Av03mDBecdQEdEpaQkt3U0ktTGJYajNSLWR1SVNXbkE&&worksheet_key="+worksheet_id, function(v, k) { | |
| local['data'] = v | |
| bag.push(v['data']); | |
| cb(null) | |
| }) |
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
| require 'rubygems' | |
| require 'optparse' | |
| require 'yaml' | |
| desc 'create a new draft post' | |
| task :np do | |
| OptionParser.new.parse! | |
| ARGV.shift | |
| title = ARGV.join(' ') |
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
| #!/bin/bash | |
| ### BEGIN INIT INFO | |
| # Provides: Django EC2 server | |
| # Required-Start: networking | |
| # Required-Stop: networking | |
| # Default-Start: 3 5 | |
| # Default-Stop: 0 1 2 6 | |
| # Short-Description: Django server management script | |
| # Description: Django server management script | |
| ### END INIT INFO |
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
| #!/bin/bash | |
| ### BEGIN INIT INFO | |
| # Provides: Django EC2 server | |
| # Required-Start: networking | |
| # Required-Stop: networking | |
| # Default-Start: 3 5 | |
| # Default-Stop: 0 1 2 6 | |
| # Short-Description: Django server management script | |
| # Description: Django server management script | |
| ### END INIT INFO |
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
| 1077 youtube-dl https://www.youtube.com/watch\?v\=MsoRSI7ei4E | |
| 1155 brew upgrade youtube-dl | |
| 1156 youtube-dl | |
| 1157 brew upgrade youtube-dl | |
| 1166 https://www.youtube.com/watch\?v\=MsoRSI7ei4E | |
| 1167 youtube-dl https://www.youtube.com/watch\?v\=MsoRSI7ei4E | |
| 1188 youtube-dl http://www.youtube.com/playlist\?list\=PL51809942D20B848C | |
| 1189 youtube-dl --help | grep skip | |
| 1190 youtube-dl --help | grep error | |
| 1191 youtube-dl http://www.youtube.com/playlist\?list\=PL51809942D20B848C --ignore-errors |
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
| /*jshint strict:true node:true es5:true onevar:true laxcomma:true laxbreak:true eqeqeq:true immed:true latedef:true*/ | |
| (function () { | |
| "use strict"; | |
| var mdns = require('mdns') | |
| ; | |
| function create() { | |
| var browser | |
| , browsers = {} |