Skip to content

Instantly share code, notes, and snippets.

View samkhawase's full-sized avatar
🏠
Working from home

Sam Khawase samkhawase

🏠
Working from home
View GitHub Profile
@samkhawase
samkhawase / install-swift-ubuntu.md
Created January 2, 2018 10:11 — forked from Azoy/install-swift-ubuntu.md
Guide on how to install Swift on Ubuntu

Install Swift on Ubuntu

Requirements

  1. Ubuntu 14.04, 16.04, or 16.10

Step 1 - Dependencies

  1. Open up terminal
  2. Install core deps: sudo apt-get install clang libicu-dev git

Step 1.1 - Ubuntu 14.04 Clang

@samkhawase
samkhawase / hn_seach.js
Last active September 2, 2015 08:13 — forked from kristopolous/hn_seach.js
hn job query search
function query() {
var
total = 0, shown = 0,
// HN is done with very unsemantic classes.
job_list = Array.prototype.slice.call(document.querySelectorAll('.c5a,.cae,.c00,.c9c,.cdd,.c73,.c88')),
query_list = Array.prototype.slice.call(arguments);
// This traverses up the dom stack trying to find a match of a specific class
function up_to(node, klass) {
if (node.className === klass) {