Skip to content

Instantly share code, notes, and snippets.

View distransient's full-sized avatar
🍜
Mmm noodles tasty

Kel distransient

🍜
Mmm noodles tasty
View GitHub Profile
@distransient
distransient / autoexec.cfg
Last active December 26, 2015 22:48
csgo config
sensitivity "1" // DPI is 1200
con_enable "1" // Enable console
snd_musicvolume "0" // No in-game music
// Crosshair
cl_crosshairstyle "4" // Static classic crosshair
cl_crosshair_drawoutline "0" // More crisp crosshair
cl_crosshairdot "0" // Remove dot to make visibility better
cl_crosshairthickness "0" // Thinner crosshair
cl_crosshairgap "-2" // Bring crosshair closer together
@distransient
distransient / managed.md
Last active August 29, 2015 14:25
Requirements for a managed applications environment revolving around a common assembly/bytecode

feature wish list:

  • Memory management natives built in, rust-like lifetimes, garbage collection annotations, as well as manual memory access methods.
  • Concurrency and parallelism implemented in the environment, not in the language, where it is just made accessible
  • Common function and method interface, languages implement how they handle these interfaces so that cross-calling between pure functional and imperative languages is more possible.
  • Platform-independent api for accessing the system. each application lives within a sandbox in this system, however.
  • Simplicity and style guidelines are important in how the system develops and grows. develop with a "less is more" community statement; be frugal but useful, too.
  • Two formats for storing bytecode, one in plaintext the other a binary file. Have support for sourcemapping bytecode.
  • A nice, simple way to debug programs, as well as some sort of proof assistant stuff?
  • Minimal runtime and memory usage, implementation by transpiling to c-- would provi
@distransient
distransient / Config.ini
Created June 24, 2015 01:06
bug.n solarized color theme
Config_backColor_#1=eee8d5;eee8d5;eee8d5;eee8d5;eee8d5;eee8d5;eee8d5;eee8d5;eee8d5
Config_backColor_#2=073642;;;;;;;eee8d5;eee8d5
Config_backColor_#3=;;;;;;;eee8d5;
Config_foreColor_#1=268bd2;eee8d5;eee8d5;eee8d5;eee8d5;eee8d5;eee8d5;268bd2;073642
Config_foreColor_#2=d33682;;;;;;;073642;073642
Config_foreColor_#3=;;;;;;;d33682;
Config_fontColor_#1=93a1a1;93a1a1;93a1a1;93a1a1;93a1a1;93a1a1;93a1a1;93a1a1;93a1a1
Config_fontColor_#2=93a1a1;93a1a1;93a1a1;93a1a1;93a1a1;93a1a1;93a1a1;93a1a1;93a1a1
Config_fontColor_#3=;;;;;;;d33682;
@import url(http://fonts.googleapis.com/css?family=Anonymous+Pro:400,400italic,700,700italic&subset=latin,latin-ext,greek,cyrillic)
x-screen { overflow-y: auto !important; }
// to use, open a crosh session and press ctrl+shift+j to open up the inspector and navigate to the console
// copy paste this script and press enter and the preferences will be placed in localstorage so that they will
// load on subsequent crosh sessions.
//
// more information here: http://git.chromium.org/gitweb/?p=chromiumos/platform/assets.git;a=blob;f=chromeapps/nassh/doc/faq.txt
localStorage.clear() // reset so that options (specifically font-family) don't get weird.
term_.prefs_.set("environment", {TERM: "xterm-256color"})
term_.prefs_.set("audible-bell-sound", "") // disable error bell sound
@distransient
distransient / main.rs
Last active August 29, 2015 14:13
fun lil test game
use std::io;
use std::rand;
struct Player<'a> { name: &'a str, health: uint, heroism: uint }
struct Place { index: uint, danger: uint }
static MAX_HEALTH: uint = 100;
static MAX_HEROISM: uint = 100;
static PLACE_NAMES: [&'static str, ..5] = [
"Woods", "Cave", "Mountain", "Town", "Desert"];
@distransient
distransient / vimrc
Last active August 29, 2015 14:10
conf change notes
font: Anonymous Pro http://www.marksimonson.com/fonts/view/anonymous-pro
#!/usr/bin/env node --harmony
// todo: only worry about flags if this is the main module
var argv = require('minimist')(process.argv.slice(2))
var createClient = require('net-oce-protocol')
var duplex = require('duplexer')
var spawn = require('child_process').spawn
var path = require('path')
var inspect = require('util').inspect
var co = require('co')
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@distransient
distransient / Example1.hs
Last active August 29, 2015 14:04
Helm Example Code Memory Leak
import FRP.Helm
import qualified FRP.Helm.Window as Window
render :: (Int, Int) -> Element
render (w, h) = collage w h [move (100, 100) $ filled red $ square 64]
main :: IO ()
main = do
engine <- startup defaultConfig