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
mydict = {} | |
mydict['penis'] = "boner" | |
def thing_one(): | |
for k,v in mydict.items(): | |
print "%s %s" % (k,v) | |
def thing_two(): | |
for k,v in mydict.items(): | |
print "%s %s" % (k,v) |
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
from tkinter import * | |
class App: | |
def __init__(self, master): | |
frame = Frame(master) | |
frame.pack() | |
self.start = Button(frame, text = "Begin", command = self.start_up) | |
self.start.pack() |
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
// ==UserScript== | |
// @name Lurk-More-5-Golden-Manbabies | |
// @version 5.5.5 | |
// @namespace https://github.com/stuartdb/lurk-more | |
// @author Stuart Baker + THE GRIPPER | |
// @description Allows quickly opening your bookmarked threads which have new posts on SA. | |
// @include *://forums.somethingawful.com/* | |
// @grant GM_openInTab | |
// @run-at document-end | |
// ==/UserScript== |
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
void main() { | |
int i = 0; | |
while (i < 10) { | |
printf("Added 1 to i\n"); | |
i++; | |
} | |
printf("Done!\n"); | |
printf("Doing some assembly\n"); | |
/* replicate "while (i < 20) { i++; }" from assembly output. |
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
Show hidden characters
{ | |
"target": "go_build", | |
"type": "BUILD", | |
"selector": "source.go" | |
} |
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
// py.cpp : Defines the entry point for the console application. | |
// | |
#include <Python.h> | |
#include <math.h> | |
/* This method will be exported as part of the test_embed package for use in imported | |
python modules: | |
import test_embed | |
test_embed.emb_pow(x,y) |