Skip to content

Instantly share code, notes, and snippets.

View jakl's full-sized avatar
💭
🦊

James Koval jakl

💭
🦊
View GitHub Profile
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace kompiler
{
class fda
{
public enum state
@jakl
jakl / gmail emails
Created August 8, 2011 20:14
Send an email using python and your gmail smtp
#!/usr/bin/python
import os
import smtplib
import mimetypes
from email.MIMEMultipart import MIMEMultipart
from email.MIMEText import MIMEText
def sendMail(subject, text):
gmailUser = '[email protected]'
gmailPassword = 'like I|d give you this that easily....'
recipient = '[email protected]'
<head><style type="text/css"> .bg { color: #000000; background: black; }
</style></head>
<canvas id="canvas" tabindex="2">
Out with the stone age ... Use Chrome! sry w3m </canvas>
<body class='bg' onKeyDown="return main.key_down(event)" onKeyUp="return
main.key_up(event)">
<script type="text/javascript">
@jakl
jakl / acao-all.js
Created March 23, 2012 21:42
Access-Control-Allow-Origin See client's facebook page
//POC to use a client's cookie to access their facebook
http=require('http')
http.createServer(function (request, response) {
response.writeHead(200, {
'Content-Type': 'text/html',
'Access-Control-Allow-Origin' : '*'
});
response.end('<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script><script>$.get("http://facebook.com",function(data){console.log(data)})</script>');
}).listen(8124);
@jakl
jakl / README.md
Last active December 14, 2015 03:29 — forked from mbostock/.block

This example demonstrates plotting Oakland's crime data as a per-day heatmap.

@jakl
jakl / index.html
Last active December 14, 2015 04:09
show props on window
<script src='//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'></script>
<script src='index.js'></script>
@jakl
jakl / file.js
Last active December 14, 2015 04:09
tigger frontend
function FileCtrl($scope) {
$scope.files = [
{name: 'Elephant Dreams', date: 20070522, size: 2000, torrent: 'piratebay.com', tags: 'a, b, c'},
{name: 'Sauerbraten', date: 20061109, size: 100, torrent: 'mega.co.nz', tags: 'c, d, e'}
];
}
@jakl
jakl / README.md
Last active December 15, 2015 01:29
Cleanup your Twitter timeline by viewing noisiest users - unfollow loud mouths and hear those who are soft spoken. #Twiduster.

USAGE

npm install

Add some twitter creds from apps.twitter.com

then

@jakl
jakl / README.md
Created April 17, 2013 02:00 — forked from mbostock/.block
@jakl
jakl / gist:5449459
Created April 24, 2013 03:44
Trying to use https://github.com/chrisdickinson/inflate in the browser. Be really awesome if this worked and was faster than https://github.com/imaya/zlib.js
window.Buffer = require('buffer');
var inflate = require('inflate');
var binary_xhr = require('binary-xhr');
var Stream = require('stream').Stream;
var util = require('util');
function FakeStream(){
this.readable = true;
};