Skip to content

Instantly share code, notes, and snippets.

# Always create a new session. If there's no session running when doing
# "attach" this will automatically create one for us.
new-session -s default
# This disables the output of the source command on startup.
set quiet on
# Start the powerline daemon if not already started.
run-shell "powerline-daemon -q"
@sryze
sryze / config.cson
Last active August 29, 2015 14:13
Atom config
'*':
'editor':
'fontFamily': 'Droid Sans Mono'
'fontSize': 13
'autoIndentOnPaste': false
'tabLength': 4
'softTabs': false
'invisibles': {}
'core':
'themes': [
@sryze
sryze / euler1.js
Last active August 29, 2015 14:25
Project Euler in JavaScript
var END_OF_WORLD = 'undefined';
function nextNumber(n) {
return n + 1;
}
function numbers(base) {
var n = base;
return function() {
return (n = nextNumber(n));
@sryze
sryze / run_hl2.sh
Created July 11, 2013 12:17
Running Half-Life 2 on Linux (copy to ~/.local/share/Steam/SteamApps/common/Half-Life 2/)
#!/bin/sh
~/.local/share/Steam/ubuntu12_32/steam-runtime/run.sh ./hl2.sh
@sryze
sryze / .vimrc
Last active December 20, 2015 12:39
My Vim settings
syntax on
filetype plugin on
filetype indent on
set nocompatible
set nobackup
set nowrap
set autochdir
set cursorline
set number
#if __cplusplus < 201103L
#error Your C++ compiler sucks!
#endif
int main() {}
@sryze
sryze / visualstudio.xml
Last active December 26, 2015 14:59
Visual Studio style for Qt Creator 2.8
<?xml version="1.0" encoding="UTF-8"?>
<style-scheme version="1.0" name="Visual Studio">
<style name="Text" foreground="#000000" background="#ffffff"/>
<style name="Link" foreground="#0000ff"/>
<style name="Selection" foreground="#ffffff" background="#2b6ac5"/>
<style name="LineNumber" foreground="#2b91af" background="#ffffff"/>
<style name="SearchResult" foreground="#000000" background="#ffef0b"/>
<style name="SearchScope" foreground="#000000" background="#ffe8d5"/>
<style name="Parentheses" foreground="#000000" bold="true"/>
<style name="CurrentLine" foreground="#000000" background="#e3e3e3"/>
{
"rulers": [80, 100, 120],
"auto_match_enabled": false,
"font_face": "Consolas",
"font_size": 12.0,
"line_numbers": true,
"word_wrap": false,
"wrap_width": 0,
"hot_exit": false,
"remember_open_files": false,
@sryze
sryze / styles.less
Last active December 30, 2015 08:07
Customize the font size of Atom's file tree and tab bar
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed.
*
* If you are unfamiliar with LESS, you can read more about it here:
* http://www.lesscss.org
*/
@call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64\vcvarsx86_amd64.bat"
ml64 /Fl hello.asm /link /subsystem:windows /defaultlib:kernel32.lib /defaultlib:user32.lib /entry:Start