Skip to content

Instantly share code, notes, and snippets.

View jakoblorz's full-sized avatar
🚀
I can smell RP-1 in the air

Jakob Lorz jakoblorz

🚀
I can smell RP-1 in the air
View GitHub Profile
@jdan
jdan / y
Last active May 22, 2020 17:51
(λ (f)
((λ (x) (f (x x)))
(λ (x) (f (x x)))))
@clhenrick
clhenrick / .gitignore
Last active January 11, 2024 12:33
Node.JS script to aggregate NYC vehicle collision data into a hexagonal grid and compute the ck means for each cell using Turf.JS and Simple Statistics.JS
node_modules/
.DS_Store
@oliveratgithub
oliveratgithub / emojis.json
Last active November 14, 2024 11:47
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
{
"emojis": [
{"emoji": "👩‍👩‍👧‍👧", "name": "family: woman, woman, girl, girl", "shortname": ":woman_woman_girl_girl:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F467", "html": "👩‍👩‍👧‍👧", "category": "People & Body (family)", "order": ""},
{"emoji": "👩‍👩‍👧‍👦", "name": "family: woman, woman, girl, boy", "shortname": ":woman_woman_girl_boy:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F466", "html": "👩‍👩‍👧‍👦", "category": "People & Body (family)", "order": ""},
{"emoji": "👩‍👩‍👦‍👦", "name": "family: woman, woman, boy, boy", "shortname": ":woman_woman_boy_boy:", "unicode": "1F469 200D 1F469 200D 1F466 200D 1F466", "html": "👩‍👩‍👦‍👦", "category": "People & Body (family)", "order": ""},
{"emoji": "👨‍👩‍👧‍👧", "name": "family: man, woman, girl, girl", "shortname": ":man_woman_girl_girl:", "unicode": "1F468 200D 1F469 200D 1F467 200D 1F467", "html": "👨‍👩&z
@cyberang3l
cyberang3l / How to setup VirtualGL and TurboVNC on Ubuntu.md
Last active October 16, 2024 09:30
Setup VirtualGL and TurboVNC on Ubuntu for OpenGL forwarding
@alexellis
alexellis / serverless_office.md
Created August 23, 2017 09:32
Serverless office
@onjin
onjin / docker-compose.yml
Created September 5, 2016 09:17
example docker compose for postgresql with db init script
postgres:
image: postgres:9.4
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
var alter = require('../lib/alter.js');
var _ = require('lodash');
var Chainable = require('../lib/classes/chainable');
module.exports = new Chainable('movingstd', {
args: [
{
name: 'inputSeries',
types: ['seriesList']
},
{
@maxvyaznikov
maxvyaznikov / raw.js
Last active October 15, 2022 02:19
NodeJS, raw-socket, custom TCP/IPv4 SYN-packet sending
var raw = require("raw-socket");
var ip = require('ip');
var util = require('util');
function send(src_ip, src_port, dst_ip, dst_port) {
var socket = raw.createSocket({
protocol: raw.Protocol.TCP, // See http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
addressFamily: raw.AddressFamily.IPv4
});
@nexflo
nexflo / gist:fc2a763a408cd31f27cd
Last active April 8, 2018 23:39
Import GeoIP Elasticsearch nodeJS
/**
* First download CSV GeoLite Database here:
* http://geolite.maxmind.com/download/geoip/database/GeoLiteCity_CSV/GeoLiteCity-latest.zip
**/
var lazy = require("lazy"),
fs = require("fs");
var elasticsearch = require('elasticsearch');
esearch = new elasticsearch.Client( {keepAlive: true, log: 'error', requestTimeout: 6000, maxSockets:100, deadTimeout: 6000});
elasticsearch.Client.apis['master'].ping.spec.requestTimeout = 6000;
@akiatoji
akiatoji / A_README.md
Last active October 31, 2017 17:48
How to aggregate gazillion geo location data using Hadoop and Cassandra

How to Aggregate Gazillion Geo Data for Instant Display (WIP)

(Cleaning up for CQL3 interface using DataStax driver)

Let's say you have a large amount of Geo data. Let's say it's GPS data from thousands of autonomous drones mapping geo areas around the country. Or it could be something boring like a truck fleet positional information.

Either way, it's lots and lots of data in the form of Coordinates associated with some kind of value. And now that you have gazillion geo data, you want to visualize this data. A heatmap, perhaps.

If the data is relatively small as in up to a few hundred K's, you can simply put this into a heatmap and it'll probably work.