xcode-select --install
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
sudo npm install -g n
sudo n 0.10.36```
#!/bin/sh | |
# | |
# This is a very old startup script for gameservers which can be easily modified | |
# | |
# What u need: | |
# screen | |
# awk | |
# Quake3 Files | |
# | |
# VARS: |
window.onload = function() | |
{ | |
var game = new Phaser.Game(window.innerWidth, window.innerHeight, Phaser.AUTO, '', { | |
preload: preload, | |
create: create, | |
update: update | |
}); | |
var dragging = false; |
#!/bin/sh | |
ffmpeg -i "movie.mp4" -c:v libx264 -preset ultrafast -crf 15 -r 30 -threads 8 -c:a copy "movie_new.mp4" |
#!/bin/bash | |
find . -type f -name "*.jpg" | while read line | |
do | |
dir=${line%/*} | |
file=${line/##*/} | |
file=${file} | |
convert "${file}" -resize 400 "resized/${file}" | |
done |
function displayIsRetina() | |
{ | |
return (window.devicePixelRatio || (window.matchMedia && window.matchMedia("(min-resolution: 2dppx), (-webkit-min-device-pixel-ratio: 1.5),(-moz-min-device-pixel-ratio: 1.5),(min-device-pixel-ratio: 1.5)").matches? 2 : 1) || 1) > 1 ? true : false) | |
} |
import threading | |
import serial | |
import json | |
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer | |
value = 0 | |
ser = serial.Serial('/dev/tty.usbmodemXYZ', 9600) | |
def read_value(): |
fixSubPixel = function(container, elements) { | |
// Default columns | |
var cols = 2; | |
// Columns according to mediaqueries | |
if(container.width() > 1023) | |
{ | |
cols = 4; | |
} |
import java.awt.event.*; | |
import java.awt.Robot; | |
Robot bot = null; | |
int nextClick = (int)random(15, 50); | |
void setup() { | |
try { | |
bot = new Robot(); | |
} |
<html> | |
<head> | |
<title>Slider test</title> | |
<style> | |
* { | |
margin: 0; | |
padding: 0; | |
list-style: none; | |
box-sizing: border-box; | |
font-family: 'Roboto'; |