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
#!/usr/bin/env node | |
var util = require('util'), | |
http = require('http'), | |
fs = require('fs'), | |
url = require('url'), | |
events = require('events'); | |
var DEFAULT_PORT = 8000; | |
var DEFAULT_FILE = 'index.html'; // default file for the dir root |
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
private double FuzzyStringComparison(string source, string target) | |
{ | |
// if both of the strings are empty, return 0 | |
// else if the source is empty but not the target, the distance is the target length | |
// else if the target is empty and not the source, the the distance is the source length. | |
if (string.IsNullOrEmpty(source)) | |
{ | |
if (string.IsNullOrEmpty(target)) | |
{ | |
return 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
var fs = require('fs'), | |
http = require('http'), | |
https = require('https'), | |
httpProxy = require('http-proxy'); | |
var isHttps = true; // do you want a https proxy? | |
var options = { | |
https: { | |
key: fs.readFileSync('key.pem'), |
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
# pull latest commits of the submodules (not the ones your parent is pointing to) | |
git pull --recurse-submodules | |
# pull all submodules and get the proper commits as pointed by parent | |
git pull --recurse-submodules && git submodule update |
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
<h1 id="hirewirelk-a-walkthough">hirewire.lk - a walkthough</h1> | |
<p>We are in the business of connecting employers and job seekers. We may not be a replacement to a total HR solution or a recruitment management solution.</p> | |
<p>Rather, we help you sail past the most excruiciating step of the process - acquiring and pre-screening candidates.</p> | |
<p>This guide is supposed to be a walkthrough for a recruiter to go from 0-60 in our platform within 10 minutes. If you have further questions, we would be happy to help you from [email protected].</p> | |
<h2 id="campaigns">Campaigns</h2> |
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
// you can use console.log for debugging purposes, i.e. | |
// console.log('this is a debug message'); | |
function solution(A) { | |
A.sort(function(a,b) { | |
if (a < b) { | |
return 1; | |
} else if (a > b) { | |
return -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
Check status | |
GET http://192.168.59.103:8080/api/status | |
Get all the users' packages | |
GET http://192.168.59.103:8080/api/v1/npm/packages | |
Install a package in the app | |
PUT http://192.168.59.103:8080/api/v1/npm/install/:package | |
Issue a request to a pakcage |
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
I need to see my #ec2/ec2publicips | |
recent wso2 blogposts #rss/wso2 | |
jehanr shit sri lankan mothers say #youtube/search | |
twitter bootstrap with rails #github/search | |
i'm gonna pop some tags i got $20 in my pocket #twitter/do |
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
"All Autocomplete", | |
"Bootstrap 3 Snippets" | |
"BracketHighlighter" | |
"DocBlockr" | |
"Dracula Color Scheme" | |
"GitGutter" | |
"HTML-CSS-JS Prettify" | |
"JavaScript Snippets" | |
"JavaScriptNext - ES6 Syntax" | |
"JSHint" |
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
function (args) { | |
function addArray(arr) { | |
if (arr.length === 1) { | |
return Number(arr[0]); | |
} | |
return Number(arr[0]) + addArray(arr.slice(1)); | |
} | |
this.exec = function (cb) { |
OlderNewer