Skip to content

Instantly share code, notes, and snippets.

View jordaaash's full-sized avatar
🌴
Not on vacation, I just love palm trees

Jordan jordaaash

🌴
Not on vacation, I just love palm trees
View GitHub Profile
@jordaaash
jordaaash / ttc2ttf.py
Last active August 29, 2015 14:21 — forked from kayahr/ttc2ttf.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#First released as C++ program by Hiroyuki Tsutsumi as part of the free software suite “Beer”
#I thought porting it to Python could be both a challenge and useful
from sys import argv, exit, getsizeof
from struct import pack_into, unpack_from
def ceil4(n):
@jordaaash
jordaaash / bluebird.js
Last active February 15, 2017 21:52 — forked from lorenzodallavecchia/bluebird-zone.js
Patch for making the Bluebird library aware of Zone.js
'use strict';
import Promise from 'bluebird';
import {
zonifyCall,
zonifyCatch,
zonifyCoroutine,
zonifyFirst,
zonifyLast,
zonifyMiddle,
class Image
def initialize (data)
@data = data
end
#write a method that loops through the existing 2D array and finds the
#location of the existing ones. The location of the the existing ones
#needs to be stored into memory so they can be iterated over and the
#exiting cells around them can be altered.
@jordaaash
jordaaash / README.md
Created April 23, 2019 19:59 — forked from pcan/README.md
Node.js plain TLS Client & Server, 2-way Cert Auth

Node.js TLS plain TLS sockets

This guide shows how to set up a bidirectional client/server authentication for plain TLS sockets.

Prepare certificates

Generate a Certificate Authority:

openssl req -new -x509 -days 9999 -keyout ca-key.pem -out ca-crt.pem