Skip to content

Instantly share code, notes, and snippets.

View picatz's full-sized avatar
Graph Theory

Kent Gruber picatz

Graph Theory
View GitHub Profile
%YAML 1.2
---
name: Mint
file_extensions:
- mint
scope: source.mint
variables:
variable: '[a-z][A-Za-z_0-9]*'
@dougallj
dougallj / asm.s
Created January 3, 2018 08:55
x86-64 Speculative Execution Harness
global _time_load
global _cache_flush
global _run_attempt
extern _bools
extern _values
extern _pointers
section .text
@thbar
thbar / .bash_profile
Created June 25, 2017 09:51
If you switch between outdoor and indoor terminal work
function darkback {
osascript -e "tell application \"Terminal\" to set background color of window 1 to {0,0,0}"
}
function lightback {
osascript -e "tell application \"Terminal\" to set background color of window 1 to {65535,65535,65535}"
}
@jhaddix
jhaddix / all.txt
Last active May 19, 2024 14:35
all wordlists from every dns enumeration tool... ever. Please excuse the lewd entries =/
This file has been truncated, but you can view the full file.
.
..
........
@
*
*.*
*.*.*
🐎
@zzak
zzak / squareroot.rb
Created June 30, 2010 16:34
find the square root in ruby
def sqrt(x)
square = lambda { |a| a * a }
average = lambda { |a,b| (a + b)/2.0 }
is_good_enough = lambda { |a| (square[a] - x).abs < 0.001 }
improve = lambda { |a| average[a, x/a] }
sqrt_iter = lambda { |a| is_good_enough[a] ? a : sqrt_iter[improve[a]] }
sqrt_iter[1.0]
end