sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.6
curl https://bootstrap.pypa.io/get-pip.py | sudo python3.6
Install GRC
brew install grc
Create a config directory in your home directory:
mkdir ~/.grc
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
// property table | |
var propsFlagAssociation = [ | |
// property, flag short code | |
['GameRawData.Graphics.globalWhite', 'W'], | |
['Flag_White', 'W'], | |
['Flag_Green', 'G'], | |
['Flag_Orange', 'O'], | |
['Flag_Blue', 'B'], | |
['GameRawData.Graphics.globalYellow', 'Y'], |
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 java.io.{File, FileOutputStream, BufferedOutputStream, InputStream} | |
import org.apache.commons.compress.archivers.tar.{TarArchiveEntry, TarArchiveInputStream} | |
import org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream | |
object UnTarFile { | |
val BUFFER = 2048 | |
def untar( in: InputStream, destinationDir: String ) { | |
def processTar( tarIn: TarArchiveInputStream ): Unit = { | |
def processFileInTar( dest: BufferedOutputStream ): Unit = { |
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
{ | |
"AWSEBDockerrunVersion": "2", | |
"containerDefinitions": [ | |
{ | |
"name": "how-many-meeple", | |
"image": "docker.io/howmanymeeple/how-many-meeples:v1.1.0", | |
"essential": true, | |
"memory": 256, | |
"portMappings": [ | |
{ |
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
Shader "SixfootSoftware/Unlit/WorldspaceTiling" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
} | |
SubShader | |
{ | |
Tags { "RenderType"="Opaque" } | |
LOD 100 |
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
Shader "SixfootSoftware/Unlit/Footprint" { | |
Properties{ | |
_MainTex("Base (RGB)", 2D) = "white" {} | |
_GlowTex("Base (RGB)", 2D) = "white" {} | |
_Color("Colour", Color) = (1,1,1,1) | |
_ScrollSpeed("Scroll Speed", Range(-50,50)) = 0 | |
} | |
SubShader{ | |
Tags { "RenderType" = "Opaque" "Queue" = "Geometry+1" "ForceNoShadowCasting" = "True" } | |
LOD 200 |
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 PIL import Image | |
import math | |
def gradient_fill(im, from_color, to_color): | |
start_x = 0 | |
start_y = 0 | |
pixel_data = im.load() | |
for x in range(im.size[0]): | |
for y in range(im.size[1]): |
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
kill -9 $(ps ax|grep gunicorn| awk '{print $1}') |
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
wget http://launchpadlibrarian.net/352602073/firefox_57.0.4+build1-0ubuntu0.14.04.1_armhf.deb | |
dpkg -i firefox_57.0.4+build1-0ubuntu0.14.04.1_armhf.deb | |
echo 'user_pref("gfx.content.azure.backends", "");' >> ~/.mozilla/firefox/*.default/prefs.js |
NewerOlder