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/sh | |
# | |
# Execute in the repo root dir | |
# | |
git ls-tree -r HEAD | awk '{print $4}' | tr -s '\n' ' ' | xargs -n 1 git blame| awk '{print $1,$2,$3,$4,$5,$6,$7}' | gsed -r 's/.*\((.*?) [0-9]{4}-[0-9]{2}-[0-9]{2} .*/\1/p' | sort | uniq -c | sort -r |
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
class Gifts(models.Model): | |
""" | |
Represents the relationship between a Card, and Accounts | |
""" | |
#created_by? | |
number of coupons |
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/sh | |
ack '# TODO' apps --ignore-dir=common > TODO | |
git add ${GIT_DIR}/TODO |
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 random | |
from circuits.models import Circuit | |
from user_profile.models import UserProfile | |
circuits = Circuit.objects.all() | |
users = UserProfile.objects.all() | |
countdown = 1 | |
while countdown > 0: | |
circuit = random.choice( circuits ) |
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 random | |
from circuits.models import Circuit | |
from user_profile.models import UserProfile | |
circuits = Circuit.objects.all() | |
profiles = UserProfile.objects.all() | |
countdown = 100 | |
while countdown > 0: | |
circuit = random.choice( circuits ) |
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
file -i `find templates/ | xargs` | sed -r '/charset=utf-8/d' | sed -r '/charset=binary/d' |
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
(defadvice zap-to-char (after zap-up-to-char-advice (arg char) activate) | |
"Kill up to the ARG'th occurence of CHAR, and leave CHAR. If | |
you are deleting forward, the CHAR is replaced and the point is | |
put before CHAR" | |
(insert char) | |
(if (< 0 arg) (forward-char -1))) |
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
(ns clj_torrent.bencode | |
(:require [clojure.string :as string])) | |
(defn decode-bstring [bstring] | |
"Decodes a bencoded string. It ensures the length matches the content." | |
(let [[length content] (string/split bstring #":" 2)] | |
(when (= (Integer/parseInt length) (.length content)) | |
content))) | |
(defn decode-binteger [binteger] |
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
//context of TrackingPixelList.txt | |
var mydata1 = "hello "; | |
var mydata2 = "fox jumps over "; | |
var mydata3 = "the lazy dog"; | |
// end of text file |
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
<iframe id="RSIFrame" name="RSIFrame" scrolling="no" width="305" height="280" allowTransparency="true" frameborder="0" marginheight="0" marginwidth="0"></iframe> | |
<script type="text/javascript" src="styles/jquery-1.8.2.min"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
var currentUrl= window.location.pathname; | |
var iframe = document.getElementById("RSIFrame"); | |
var currentPathname = iframe.src | |
$.ajax({ | |
url: "https://forms.netsuite.com/app/site/crm/externalleadpage.nl", | |
method: "GET", |
OlderNewer