This file contains hidden or 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
def print_format_table(): | |
""" | |
prints table of formatted text format options | |
""" | |
for style in range(8): | |
for fg in range(30,38): | |
s1 = '' | |
for bg in range(40,48): | |
format = ';'.join([str(style), str(fg), str(bg)]) | |
s1 += '\x1b[%sm %s \x1b[0m' % (format, format) |
This file contains hidden or 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
#include <cstdio> | |
#include <iostream> | |
#include <vector> | |
#include <cmath> | |
#include <algorithm> | |
#include <cstring> | |
#include <cstdlib> | |
using namespace std; |
This file contains hidden or 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
#!/bin/bash | |
sudo apt-get -y install python-software-properties | |
sudo add-apt-repository "deb http://download.opensuse.org/repositories/security:/OpenVAS:/UNSTABLE:/v5/xUbuntu_12.04/ ./" | |
sudo apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys BED1E87979EAFD54 | |
sudo apt-get update |
This file contains hidden or 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
@name SNAKE! | |
@inputs E:wirelink Pod:wirelink Seat:entity | |
@outputs | |
@persist Bounds:vector2 SnakeSize:vector2 X Y Background:vector2 TICKS GameState Speed | |
@persist SnakePosition:vector2 FruitPosition:vector2 FruitExists Number_Snakes | |
@persist SnakeMovements:array CurrentPlayer:entity MenuIndex MenuCredits MaxTicks FirstTime | |
@trigger all | |
# Author: http://steamcommunity.com/profiles/76561198000439477/ | |
# |
This file contains hidden or 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
-- Changing spotify notifications. | |
naughty.config.presets.spotify = { | |
-- if you want to disable Spotify notifications completely, return false | |
callback = function(args) | |
return true | |
end, | |
-- Adjust the size of the notification | |
height = 100, | |
width = 400, |