Skip to content

Instantly share code, notes, and snippets.

Luc Rocher cynddl

Block or report user

Report or block cynddl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View to_dataframe.py
def to_dataframe(columns=None, iter=None):
"""
Decorator to return a pandas DataFrame from an iterator.
"""
def decorator(f):
@wraps(f)
def wrapper(*args, **kwds):
arr = list(f(*args, **kwds))
iter_columns = []
View weird_channels.jl
addprocs(3)
type AtomicTask
category::Symbol
end
const jobs = RemoteChannel(()->Channel{AtomicTask}(Inf))
const results = RemoteChannel(()->Channel{Float64}(Inf))
@everywhere function execute_jobs(jobs, results)
@cynddl
cynddl / tether_usb.sh
Created Feb 14, 2017
Android USB tethering with HoRNDIS
View tether_usb.sh
#!/bin/sh
adb root
adb shell service call connectivity 30 i32 1
sudo kextunload /Library/Extensions/HoRNDIS.kext
sudo kextload /Library/Extensions/HoRNDIS.kext
View gandi_alias.py
#!/usr/bin/env python
from xmlrpc.client import ServerProxy
import click
@click.command()
@click.option('--alias', '-a', help='alias to add to the default mail account')
@click.option('--login', default='YOUR_LOGIN')
@click.option('--domain', default='YOUR_DOMAIN')
def main(alias, login, domain):
@cynddl
cynddl / gist:9fbff472034d05f11a4e
Created Feb 26, 2016
libxmlsec1.dylib symbols list
View gist:9fbff472034d05f11a4e
000000000002a076 T _xmlSecAddChild
000000000002a24e T _xmlSecAddChildNode
000000000002ab36 T _xmlSecAddIDs
000000000002a385 T _xmlSecAddNextSibling
000000000002a505 T _xmlSecAddPrevSibling
0000000000031f8e S _xmlSecAttrAlgorithm
0000000000031f85 S _xmlSecAttrEncoding
0000000000031f98 S _xmlSecAttrFilter
0000000000031f70 S _xmlSecAttrId
0000000000031f7c S _xmlSecAttrMimeType
View google_history.py
from __future__ import division
import bandicoot as bc
import datetime
import json
def load_google_gps(json_path, name='me'):
"""
Loads history from https://google.com/maps/timeline into
a bandicoot User object.
@cynddl
cynddl / test_cas_client.go
Last active Aug 29, 2015
Testing a simple CAS authentication
View test_cas_client.go
package main
import (
"net/http"
"net/url"
"io/ioutil"
"log"
"strings"
@cynddl
cynddl / _.md
Created Feb 13, 2014
Bar chart skeleton
@cynddl
cynddl / _.md
Created Feb 13, 2014
Simple circles
View _.md
View _.md
You can’t perform that action at this time.