Skip to content

Instantly share code, notes, and snippets.

@bishboria
bishboria / springer-free-maths-books.md
Last active Apr 6, 2021
Springer made a bunch of books available for free, these were the direct links
@wayspurrchen
wayspurrchen / git patterns.md
Last active Jun 1, 2020
Useful Git Techniques
View git patterns.md

History

Show file at certain commit

git show <hash>:<file>

Show history of a file

git log -p <filename>

View Makefile
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@Problematic
Problematic / Edge.cs
Created Aug 31, 2014
Node graph for Unity3D
View Edge.cs
using UnityEngine;
[System.Serializable]
public class Edge
{
public Edge()
{
}
public Edge(Node node, int cost)
{
View inventory.py
#! /usr/bin/env python
# vim: set fileencoding=utf-8:
""" Process URL for intersphinx targets and emit html or text """
def validuri(string):
return string
from sphinx.ext.intersphinx import read_inventory_v2
from posixpath import join
import pprint
@TSiege
TSiege / The Technical Interview Cheat Sheet.md
Last active Apr 12, 2021
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.
View The Technical Interview Cheat Sheet.md

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@namuol
namuol / INSTALL.md
Last active Mar 18, 2021
rage-quit support for bash
View INSTALL.md

rage-quit support for bash

HOW TO INSTALL

Put flip somewhere in your $PATH and chmod a+x it.

Copy fuck into ~/.bashrc.

@simonista
simonista / .vimrc
Last active Apr 12, 2021
A basic .vimrc file that will serve as a good template on which to build.
View .vimrc
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on
@jessitron
jessitron / gist:8376139
Created Jan 11, 2014
scala: print all URLs on classpath
View gist:8376139
def urlses(cl: ClassLoader): Array[java.net.URL] = cl match {
case null => Array()
case u: java.net.URLClassLoader => u.getURLs() ++ urlses(cl.getParent)
case _ => urlses(cl.getParent)
}
val urls = urlses(getClass.getClassLoader)
println(urls.filterNot(_.toString.contains("ivy")).mkString("\n")
@phaedryx
phaedryx / summary
Last active Jan 29, 2021
Loyalty and Layoffs by David Brady
View summary
Original text here: https://whydavewhy.com/2013/08/16/loyalty-and-layoffs/