View restart_bluetooth.sh
#!/bin/bash
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
View lj_trash
000zzz
0_l_g_a
0na_samaya
1way_to_english
2101
3eta
3ojlotou
477768
777ru
__doll__
View when-example.js
var pipeline = require('when/pipeline')
, callbacks = require('when/callbacks');
var mockMakeAjaxRequestAndReturnCallback = callbacks.lift(require('mockMakeAjaxRequestAndReturnCallback'));
var mockRenderData = require('mockRenderData');
var generateLink = function (domain) {
return 'http://' + domain + '/resource';
};
View diary.bash
log() {
LOG_PATH=~/Dropbox/diary/
FNAME=`date "+%Y-%m-%d"`.md
HEADER="
*************************************
Time: `date \"+%H:%M:%S\"`
Subject:
Mood:
Music:
View pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
    fetch = +refs/heads/*:refs/remotes/origin/*
    url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

View FileExists.vba
Function FileExists(ByVal fname As String) As String
Dim objFSO As Object
Set objFSO = CreateObject("Scripting.FileSystemObject")
If objFSO.FileExists(fname) Then
FileExists = "1"
Else
FileExists = "0"
End If
View alive.vba
Function Alive(ByVal url As String) As String
Dim result As String
Dim winHttpReq As Object
Set winHttpReq = CreateObject("WinHttp.WinHttpRequest.5.1")
winHttpReq.Open "GET", url, False
On Error Resume Next
winHttpReq.Send
If Err.Number = 0 Then
View gist:4055931
$ jitsu deploy
info: Welcome to Nodejitsu nko3-vermishel-team
info: jitsu v0.11.3, node v0.8.12
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node lib/server.js
info: Creating snapshot 0.0.8-6
info Uploading: [=============================] 100%
info: Updating app nko3-vermishel-team
info: Activating snapshot 0.0.8-6 for nko3-vermishel-team
View gist:4046235
do (exports = if typeof exports == 'undefined' then undefined else exports) ->
module = ->
#example module content
_ = require 'underscore'
_([3,1,2]).sort()
return {
a: ->
b: ->
}
View gist:1787188
/**
* Converts a string that was serialized with jQuery.param back to the object.
*
* @param {String} str
*
* @return {Object}
*/
function parseParams(str) {
var obj = {}, pair;
var pairs = decodeURIComponent(str).split( "&" );