- a
- b
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
;; -*- lexical-binding: t -*- | |
;;;; init.el | |
;;;; See: https://gist.github.com/3743892 | |
;;; TODO: | |
;;; * Coffee-script etags. | |
;;; * Coffee-script compile and flymake. | |
;;; * swank.js: | |
;;; * https://github.com/Gozala/swank-js |
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 sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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
import oauth2 as oauth | |
import urlparse | |
url = 'http://www.goodreads.com' | |
request_token_url = '%s/oauth/request_token/' % url | |
authorize_url = '%s/oauth/authorize/' % url | |
access_token_url = '%s/oauth/access_token/' % url | |
consumer = oauth.Consumer(key='Your-GoodReads-Key', | |
secret='Your-GoodReads-Secret') |
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
#!/bin/bash | |
# Author: | |
# Email: | |
# Date: yyyy-mm-dd | |
# Usage: script.sh [-a|--alpha] [-b=val|--beta=val] | |
# Description: | |
# | |
# | |
# |
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
import sys | |
import markdown | |
USAGE = "%s <file.md> <css dir>" % __file__ | |
TAIL = """ | |
</body> | |
</html> | |
""" |
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
# $ brew install https://raw.github.com/gist/1121425/rubberband.rb | |
require 'formula' | |
class Rubberband < Formula | |
homepage '' | |
url 'http://code.breakfastquay.com/attachments/download/35/rubberband-1.8.1-gpl-executable-osx-universal.tar.bz2' | |
version '1.8.1' | |
sha1 'bceba7dba8cdd773a318ca973ed9c5806be03262' |
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
# Helpers. | |
_mp = -> | |
window.mixpanel ? null | |
redirect = -> | |
_redirect = -> | |
window.location.href = "#{host}/#users/new-profile" | |
null | |
# A little delay to ensure MP events are all sent. Setting this to 50 ms |
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
# Constants. | |
# | |
WAIT_BEFORE_REDIRECT = 300 # ms to wait before any redirect. | |
WAIT_AFTER_TRACK = 2000 # ms to wait for mp to acknowledge $signup event. | |
# Helpers. | |
# | |
redirect = (msg, error = false) -> | |
if error | |
logError msg |
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 http = require("http"); | |
var query = 'ningun'; | |
http.get("http://127.0.0.1:2000/api/v1/dictionary?q=" + query + "&source=en", function(res) { | |
res.setEncoding('utf8'); | |
var content = ''; | |
res.on('data', function (chunk) { | |
console.log("res.on data"); | |
content += chunk; |
OlderNewer