👨👩👧👦
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
;;; jeffs-init --- various bits and boops to make emacs a nicer place | |
;;; Commentary: | |
;; Too many late nights copying and pasting from the internet, | |
;; but hey I'm proud of it. | |
;;; Code: | |
;; Configuration | |
(setq gc-cons-threshold 100000000) |
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
// compare to: https://github.com/dominictarr/hyperscript/blob/master/index.js (lol) | |
var e = function(/* tag, attrs, text, children...*/ ) { | |
var args = [].slice.call(arguments); | |
var tag = args.shift() || 'div'; | |
var atts = args.shift() || {}; | |
var text = args.shift() || ''; | |
var kids = args; | |
var el = document.createElement(tag); | |
Object.keys(atts).forEach(function(k) { |
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
#include <fcntl.h> | |
#include <stdbool.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <sys/select.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
#include <png.h> |
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
if (req.responseText.indexOf('{') == 0) { | |
try { | |
eval('obj = '+req.responseText); | |
} catch (err) { | |
console.warn('unable to do anything with api rsp'); | |
} | |
} |
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 e = function(/* tag, attrs, text, children...*/ ) { | |
var args = [].slice.call(arguments); | |
var tag = args.shift() || 'div'; | |
var atts = args.shift() || attrs; | |
var text = args.shift() || ''; | |
var kids = args; | |
var el = document.createElement(tag); | |
Object.keys(atts).forEach(function(k) { | |
el.setAttribute(k, atts[k]); |
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
const Benchmark = require('benchmark'); | |
var bench = Benchmark({ | |
fn : function(){ | |
var a = new Buffer(1024); | |
} | |
}); | |
console.log(String(bench.run())); |
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
extern crate hyper; | |
extern crate flate2; | |
use hyper::Client; | |
use std::io::{BufRead, BufReader}; | |
use flate2::read::GzDecoder; | |
fn main() { | |
let client = Client::new(); | |
let res = client.get("https://aws-publicdatasets.s3.amazonaws.com/common-crawl/crawl-data/CC-MAIN-2015-40/segments/1443736672328.14/wat/CC-MAIN-20151001215752-00000-ip-10-137-6-227.ec2.internal.warc.wat.gz") |
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
#include <gdal.h> | |
#include <gdal_alg.h> | |
#include <stdbool.h> | |
#include <stdint.h> | |
#include <math.h> | |
#include "raster_layer.h" | |
#include "raster_resample.h" | |
#include "util.h" | |
#include "error.h" |
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
611cd20 add map-1957 | |
aa5404d resolve merge | |
1e4180d easing kinda | |
dc8ff5f years | |
2c53b79 oldmap on tha map | |
31782dc old map | |
8397d32 I think this will work | |
500e787 change the world | |
92e694b waypoint | |
395e5ca feedbak |
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
// WILL SAD TAB CHROME IF YOU OPEN THE INSPECTOR | |
// LOL CRYPTO | |
var c1 = document.querySelector("canvas#video"); | |
var c2 = document.querySelector("canvas#crypt"); | |
var video = document.querySelector("video"); | |
var plain = c1.getContext("2d"); | |
var crypt = c2.getContext("2d"); | |
var key; |