This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add subl as default editor | |
export EDITOR=subl | |
alias ls='ls --color=auto' | |
[ ! "$UID" = "0" ] && archbey -c white | |
[ "$UID" = "0" ] && archbey -c green | |
# PS1 included with distro, commented out | |
#PS1="\[\e[01;31m\]┌─[\[\e[01;35m\u\e[01;31m\]]──[\[\e[00;37m\]${HOSTNAME%%.*}\[\e[01;32m\]]:\w$\[\e[01;31m\]\n\[\e[01;31m\]└──\[\e[01;36m\]>>\[\e[0m\]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! source = http://sdkmvx.wordpress.com/2008/08/13/rxvt-unicode-terminal-colors/ | |
urxvt*foreground: #f2f2f2 | |
urxvt*background: #101010 | |
! Normal | |
! color0 black | |
! color1 red | |
! color2 green | |
! color3 yellow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import timeit | |
# Going by Wolfram Alpha's definition, where fib(1) = fib(2) = 1 | |
# and disregarding zero or the negative numbers completely. | |
def rfib(n): | |
if n <= 2: | |
return 1 | |
else: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[12:32:36][nyux@noxya][~]$ lspci -vnn | |
00:00.0 Host bridge [0600]: Intel Corporation 2nd Generation Core Processor Family DRAM Controller [8086:0104] (rev 09) | |
Subsystem: Samsung Electronics Co Ltd Device [144d:c0d3] | |
Flags: bus master, fast devsel, latency 0 | |
Capabilities: <access denied> | |
00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0116] (rev 09) (prog-if 00 [VGA controller]) | |
Subsystem: Samsung Electronics Co Ltd Device [144d:c0d3] | |
Flags: bus master, fast devsel, latency 0, IRQ 50 | |
Memory at f0000000 (64-bit, non-prefetchable) [size=4M] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tkinter import Tk, Canvas, PhotoImage, mainloop, Toplevel | |
firsttime = True | |
class Picture: | |
def __init__(self, path): | |
global firsttime | |
if firsttime: | |
self.window = Tk() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from math import factorial as f | |
from math import e as thingy | |
def a(i): | |
s = 1 | |
for i in range(i): | |
s += 1/f(i) | |
return s | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
patching file Makefile | |
patching file Makefile | |
g++ -g -std=c++11 -c -o ../HGScripting.o ../HGScripting.cpp -Ilibs/include -I.. -I../SSVStart -I../SSVEntitySystem -I../SSVMenuSystem -I../SSVLuaWrapper | |
In file included from ../SSVLuaWrapper/SSVLuaWrapper.h:1:0, | |
from ../HexagonGame.h:26, | |
from ../HGScripting.cpp:8: | |
../SSVLuaWrapper/LuaContext.h: In instantiation of ‘static int Lua::LuaContext::_push(T, decltype (& T:: operator()))::Callback::call(lua_State*) [with T = hg::HexagonGame::initLua()::__lambda6; lua_State = lua_State]’: | |
../SSVLuaWrapper/LuaContext.h:544:3: required from ‘int Lua::LuaContext::_push(T, decltype (& T:: operator())) [with T = hg::HexagonGame::initLua()::__lambda6; decltype (& T:: operator()) = void (hg::HexagonGame::initLua()::__lambda6::*)(std::basic_string<char>)const]’ | |
../SSVLuaWrapper/LuaContext.h:151:54: required from ‘void Lua::LuaContext::writeVariable(const string&, T&&) [with T = hg::HexagonGame::initLua()::__lambda6; std::string = std::basic_s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Allow user to modify keyboard brightness | |
After=sys-kernel-debug.mount | |
After=systemd-sysctl.service | |
After=slim.service | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/bin/chmod 666 /sys/devices/platform/samsung/leds/samsung::kbd_backlight/brightness | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from math import factorial as f | |
from math import e as thingy | |
p = int(input('pos number')) | |
#error | |
if p < 0: | |
print('no') | |
exit() | |
#sum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
precision = input('Enter a positive number to specify how sophisticated' | |
'and precise our approximation should be: ') | |
precision = int(precision) | |
if precision < 0: | |
print("You gave me bad input. Try again.") | |
exit() |
OlderNewer