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
| Verifying that +stevenmcd is my blockchain ID. https://onename.com/stevenmcd |
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
| //--******************************** | |
| // app.js | |
| import Ember from 'ember'; | |
| import Resolver from 'ember/resolver'; | |
| import loadInitializers from 'ember/load-initializers'; | |
| import config from './config/environment'; | |
| import DS from 'ember-data'; |
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 http = require('http'), | |
| qs = require('querystring'), | |
| items = []; | |
| var server = http.createServer(function(req, res){ | |
| if('/' == req.url){ | |
| switch(req.method){ | |
| case 'GET': | |
| show(res); | |
| break; |
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
| ############################# | |
| # Mercilessly copied from https://github.com/kvarv/Continuous-Delivery | |
| ############################# | |
| function TeamCity-TestSuiteStarted([string]$name) { | |
| Write-Output "##teamcity[testSuiteStarted name='$name']" | |
| } | |
| function TeamCity-TestSuiteFinished([string]$name) { | |
| Write-Output "##teamcity[testSuiteFinished name='$name']" |
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 pull { | |
| git fetch origin | |
| $part1 = git symbolic-ref HEAD 2>/dev/null | cut -d"/" -f 3 | |
| $part2 = git symbolic-ref HEAD 2>/dev/null | cut -d"/" -f 4 | |
| if($part2 -ne ""){ | |
| $branchName = $part1 + "/" + $part2 | |
| } else { | |
| $branchName = $part1 | |
| } |
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 http = require('http'), | |
| url = require('url'), | |
| items = [], | |
| server; | |
| server = http.createServer(function(req, res){ | |
| switch(req.method){ | |
| case 'POST': | |
| AddTodoItem(req, res, items); | |
| break; |
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 fs = require('fs'), | |
| completedTasks = 0, | |
| tasks = [], | |
| wordCounts = {}, | |
| filesDir = './text'; | |
| function checkIfComplete(){ | |
| completedTasks++; | |
| if(completedTasks == tasks.length){ | |
| for(var index in wordCounts){ |
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 path = require('path'), | |
| fs = require('fs'), | |
| request = require('request'), | |
| htmlparser = require('htmlparser'), | |
| tasks = []; | |
| function getRssFeeds(){ | |
| var configFileName = "./rss_feeds.txt"; | |
| path.exists(configFileName, function(exists){ | |
| if(!exists){ |
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 Watcher(watchDir, processedDir){ | |
| this.watchDir = watchDir; | |
| this.processedDir = processedDir; | |
| }; | |
| var events = require('events'); | |
| Watcher.prototype = new events.EventEmitter(); | |
| var fs = require('fs'), |
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
| CREATE FUNCTION StripHTMLTags( | |
| @HTMLText VARCHAR(MAX) | |
| ) RETURNS VARCHAR(MAX) | |
| AS | |
| --========================================================= | |
| -- Author : Steven McDonald | |
| -- Date : 17 February 2011 | |
| -- Description : Removes all HTML tags from provided Text | |
| -- Link : Original version - http://blog.sqlauthority.com/2007/06/16/sql-server-udf-user-defined-function-to-strip-html-parse-html-no-regular-expression/ | |
| --========================================================= |
NewerOlder