Skip to content

Instantly share code, notes, and snippets.

View hlecuanda's full-sized avatar
😡
Mirroring gitlab on ActiveGithub.NET 2019 Ultimate Enterprise EULA Live

H-Lo hlecuanda

😡
Mirroring gitlab on ActiveGithub.NET 2019 Ultimate Enterprise EULA Live
View GitHub Profile
@hlecuanda
hlecuanda / image_displayhook.ipynb
Last active August 25, 2015 22:14 — forked from deeplook/image_displayhook.ipynb
An IPython notebook playing with display hook functions to display PIL images and Reportlab drawings.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hlecuanda
hlecuanda / parsemake.zsh
Created August 24, 2015 22:57
quick zsh function to parse a makefile, wrote it on the command line. the grep expression does the magic
cat bsd.commands.mk |
grep -v -Ee "^\#|^$|^_|^\.|\@|^PKG|builtin" |
while read line
do
CMD=`echo $line | tr -s "\t" | cut -f2 | cut -f1 -d\ `
stat $CMD 1>>/dev/null 2>>/dev/null
if (($? )) then
echo "${CMD} failed"
else
echo "${CMD} ok"
@hlecuanda
hlecuanda / The Technical Interview Cheat Sheet.md
Last active August 29, 2015 14:28 — forked from CheoR/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@hlecuanda
hlecuanda / .block
Last active December 15, 2016 08:48 — forked from mbostock/.block
Treemap
border: no
height: 600
license: gpl-3.0
@hlecuanda
hlecuanda / .block
Last active December 15, 2016 09:12 — forked from mbostock/.block
Sunburst Partition
license: gpl-3.0
@hlecuanda
hlecuanda / .block
Last active December 15, 2016 10:00
Schema.org Collapsible Tree
license: gpl-3.0
@hlecuanda
hlecuanda / vax.sh
Created January 5, 2017 20:29
XTerm reference scripts
#!/bin/sh
# vax
# 09-17-96 Bob Ess - initial creation
# 09-26-96 Shig Katada - Additional keybindings
#
# Script file to incorporate keybindings and command line
# options for connecting to a VAX node
# Usage statement
@hlecuanda
hlecuanda / .Xresources
Created January 5, 2017 20:34
Setup Function keys for XTerm
!! Call xterm like so:
!!
!! xterm $XTERMFLAGS +rw +sb +ls $@ -tm 'erase ^? intr ^c' \
!! -name vt220 -title vt220 -tn xterm-220 "$@" &
!!
XTerm*VT100.translations: #override \n\
<Key>Home: string(0x1b) string("[3~") \n \
<Key>End: string(0x1b) string("[4~") \n
vt220*VT100.translations: #override \n\
~Shift <Key>F1: string(0x1b) string("OP") \n \
@hlecuanda
hlecuanda / GAE-reverse-proxy-for-sites.py
Created April 2, 2017 03:21
A reverse proxy, to enable custom domain names on the new google sites; using Google App Engine
# -*- coding: utf-8 -*-
# Based on http://flask.pocoo.org/snippets/118/
from flask import Flask
from flask import Response
from flask import stream_with_context
import requests
app = Flask(__name__)
@hlecuanda
hlecuanda / Changelog.gs
Created June 12, 2017 20:05
Log changes to a google spreadsheet (changelog sheet)
function onEdit() {
// This script records changes to the spreadsheet on a "Changelog" sheet.
// The changelog includes these columns:
// "Timestamp", "Sheet name", "Cell address", "Column label", "Row label", "Value entered"
// Version 1.1, written by --Hyde, 30 July 2014
// See https://productforums.google.com/d/topic/docs/7CaJ_nYfLnM/discussion
// edit the following lines to suit your needs
// changes are only recorded from sheets listed below
// escape regular expression metacharacters as in \. \$ \+ \* \? \( \) \[ \]