Skip to content

Instantly share code, notes, and snippets.

View divanvisagie's full-sized avatar
🦀
Rewriting it in Rust

Divan Visagie divanvisagie

🦀
Rewriting it in Rust
View GitHub Profile
@divanvisagie
divanvisagie / rick.cow
Created December 17, 2015 14:26
rick cowsay
##
## A cowering cow
##
$the_cow = <<EOC;
$thoughts
$thoughts
▌k,
╟⌐ Öw δ╟
▐µ⌐'"ΓB, δ░'▌
▌⌐'''''S╕ δ'''▐
@divanvisagie
divanvisagie / ubuntu_setup.sh
Last active November 7, 2015 07:36
A script for setting up ubuntu first time
#!/bin/bash
# add ppas
sudo add-apt-repository ppa:webupd8team/java
sudo apt-add-repository ppa:numix/ppa
sudo add-apt-repository ppa:atareao/telegram
sudo add-apt-repository ppa:nilarimogard/webupd8
# now we update our lists
sudo apt-get update
@divanvisagie
divanvisagie / build.gradle
Created October 7, 2015 07:32 — forked from anonymous/build.gradle
build.gradle for scala Flatspec project
apply plugin: "scala"
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.github.maiflai:gradle-scalatest:0.10"
@divanvisagie
divanvisagie / LCD.md
Last active August 29, 2015 14:11 — forked from DylanKnevitt/LCD.md

The LCD class constructs an object that represents an LCD Display.

Parameters

  • options An object of property parameters
Property Name Type

The LCD class constructs an object that represents an LCD Display.

Parameters

  • options An object of property parameters
Type
Property Name
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit"
// Bot DM script
sv_cheats 1
alias "money" "impulse 101"
alias "ammo" "givecurrentammo"
alias "infinite" "infiniteon"
alias "infiniteon" "bind mouse1 "+fireinfinite"; alias infinite infiniteoff"
@divanvisagie
divanvisagie / builder.json
Created December 3, 2013 06:01
Node build scripts for brackets, to be placed in home directory. Requires brackets builder , theseus for brackets and node-theseus
[
{
"name": "Python",
"cmd": "python $FILE"
},
{
"name": "JavaScript",
"cmd": "sh nodebuild.sh $FILE"
},
{
body{
background:white;
}
.sq{
margin-top:50px;
margin-left:50px;
width:100%;
height:100%;
background:#ff7700;
@divanvisagie
divanvisagie / async.cc
Created November 3, 2013 15:58
Async and function implementation in C++
#include <iostream>
#include <cstdlib>
#include <unistd.h> //for sleep
#include <future>
#include <map>
using namespace std;
map<string,function<void()>> my_functions = {