Skip to content

Instantly share code, notes, and snippets.

View abdollar's full-sized avatar

Abdul Chaudhry abdollar

View GitHub Profile
# Explanation at http://stackoverflow.com/questions/5212213/ruby-equivalent-of-php-openssl-seal/9428217#9428217
# Implementation
class EnvelopeEncryption
require "openssl"
# This method takes in plaintext and produces ciphertext and an

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

/*
Delta Compression by Glenn Fiedler.
This source code is placed in the public domain.
http://gafferongames.com/2015/03/14/the-networked-physics-data-compression-challenge/
*/
#include <stdint.h>
#include <stdio.h>
#include <assert.h>
#include <string.h>
@abdollar
abdollar / cards.swift
Last active September 1, 2015 16:14 — forked from erica/cards.swift
Cards
/*
Erica Sadun, http://ericasadun.com
GameplayKit Available 10.11, iOS 9
*/
import Foundation
import GameplayKit // only available on OS X 10.11, iOS 9
@abdollar
abdollar / gist:fccae96bb22c12568d9d
Last active September 2, 2015 20:36 — forked from chriswhitcombe/gist:2e0450294f370f493aec
Secure server in go (TLS Mutual Auth)
package main
import (
"crypto/tls"
"crypto/x509"
"io"
"io/ioutil"
"log"
"net/http"
)
@abdollar
abdollar / gist:0b05cec869cab4b561fc
Last active September 2, 2015 20:36 — forked from chriswhitcombe/gist:00d94c106f06d230cb2d
Secure client in go (TLS Mutual Auth)
package main
import (
"crypto/tls"
"crypto/x509"
"fmt"
"io/ioutil"
"log"
"net/http"
)
@abdollar
abdollar / tensorflow101.ipynb
Created March 14, 2017 06:26 — forked from fuglede/tensorflow101.ipynb
TensorFlow 101
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.