Skip to content

Instantly share code, notes, and snippets.

View sbromberger's full-sized avatar

Seth Bromberger sbromberger

View GitHub Profile
function FindProxyForURL(url, host)
{
return "SOCKS localhost:8080";
}
pub fn triangles<V>(g: &StaticGraph<V>) -> usize where V: SimpleVertex {
let mut dodg: Vec<Vec<V>> = Vec::with_capacity(g.nv());
let mut degrees = vec![V::zero(); g.nv()];
let mut ntri = 0usize;
// let z:Vec<V> = g.vertices().collect();
// println!("minvert = {:?}, maxvert = {:?}", z.iter().min(), z.iter().max());
for u in g.vertices() {
let degu = g.outdegree(u);
@font-face {
font-family: "Inconsolata Nerd Font";
src: local("Inconsolata Nerd Font Mono");
}
@sbromberger
sbromberger / blinktheme.js
Last active July 6, 2019 00:53
Blink theme
t.prefs_.set('color-palette-overrides',["#000000", "#fd0000", "#87c38a", "#ffa500", "#85befd", "#b9b6fc", "#85befd", "#e0e0e0", "#000000", "#fd5ff1", "#94fa36", "#f5ffa8", "#96cbfe", "#b9b6fc", "#85befd", "#e0e0e0"]);
t.prefs_.set('foreground-color', "#aaaaaa");
t.prefs_.set('background-color', "#161719");
t.prefs_.set('cursor-color', 'rgba(120, 120, 120, 0.5)');
@sbromberger
sbromberger / scp.css
Last active June 11, 2019 22:07
sauce code pro
@font-face {
font-family: 'Sauce Code Pro Complete';
font-style: normal;
font-weight: 200;
src: url('https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/SourceCodePro/Light/complete/Sauce Code Pro Light Nerd Font Complete Mono.ttf') format('truetype');
}
@font-face {
font-family: 'Sauce Code Pro Complete';
font-style: normal;
font-weight: 400;
@font-face {
font-family: 'Sauce Code Pro Complete';
font-style: normal;
font-weight: 200;
src: url('patched-fonts/SourceCodePro/Light/complete/Sauce Code Pro Light Nerd Font Complete Mono.ttf?raw=true') format('truetype');
}
@font-face {
font-family: 'Sauce Code Pro Complete';
font-style: normal;
font-weight: 400;
#include <string>
#include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
#include <chrono>
#include <random>
// Edge List Storage
uint32_t num_vertices = 0;
@sbromberger
sbromberger / springer-free-maths-books.md
Created December 28, 2015 14:48 — forked from bishboria/springer-free-maths-books.md
Springer have made a bunch of maths books available for free, here are the direct links