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
See: https://github.com/esendex/esendex-node-sdk |
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
DECLARE @a uniqueidentifier | |
DECLARE @b uniqueidentifier | |
SET @a = newid() | |
SET @b = newid() | |
DECLARE @t TABLE | |
( | |
a uniqueidentifier, | |
b uniqueidentifier |
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
package main | |
import ( | |
"fmt" | |
"net/http" | |
"net/http/httputil" | |
) | |
func HttpRouteHandler(responseWriter http.ResponseWriter, request *http.Request) { |
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
' VBS Script to get the Windows(R) 7 Product Key from a PC's registry. | |
' | |
' Save the VBScript as "getWin7Key.vbs" somewhere on your Windows7 PC. | |
' Now, when you double-click the local script file an alertbox pops up | |
' displaying the product key stored in the machine's Windows registry. | |
Set WshShell = WScript.CreateObject("WScript.Shell") | |
KeyPath = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId" | |
MsgBox ExtractKey(WshShell.RegRead(KeyPath)) |
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
// ==UserScript== | |
// @name Trello Card ID | |
// @namespace http://www.codesleuth.co.uk/ | |
// @version 0.1 | |
// @description Adds card IDs to Trello cards | |
// @author David Wood ([email protected]) | |
// @match https://trello.com/*/*/* | |
// @grant none | |
// ==/UserScript== |
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
Show hidden characters
{ | |
"font_size": 11, | |
"index_exclude_patterns": | |
[ | |
"**\\node_modules*", | |
"*.log" | |
], | |
"phoenix_color_green": true, | |
"phoenix_sidebar_tree_large": true, | |
"phoenix_solid_current_tab": true, |
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
module.exports = { | |
hash: function (s) { | |
var h = 7; | |
var letters = "acdegilmnoprstuw"; | |
for (var i = 0; i < s.length; i++) { | |
h = h * 37 + letters.indexOf(s[i]); | |
} | |
return h; | |
}, |
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
package main | |
import dispatch._, Defaults._ | |
object DispatchMessage extends App { | |
def DispatchRequest(reference: String, body: String, to: String): scala.xml.Elem = <messages> | |
<accountreference>{ reference }</accountreference> | |
<message> | |
<to>{ to }</to> |
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 | |
# functions | |
vscode() { | |
# opens Visual Studio Code with the specified parameters | |
VSCODE_CWD=$PWD | |
$USERPROFILE/AppData/Local/Code/Update.exe --processStart Code.exe -a="$*" | |
} | |
# aliases |
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
% Run tests with: erlc fizzbuzz.erl && erl -noshell -pa ebin -eval "eunit:test(fizzbuzz, [verbose])" -s init stop | |
-module(fizzbuzz). | |
-compile(export_all). | |
-include_lib("eunit/include/eunit.hrl"). | |
fizzbuzz(N) when N rem 15 == 0 -> fizzbuzz(3) ++ fizzbuzz(5); | |
fizzbuzz(N) when N rem 3 == 0 -> "fizz"; | |
fizzbuzz(N) when N rem 5 == 0 -> "buzz"; | |
fizzbuzz(N) -> integer_to_list(N). |