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
| fixSubPixel = function(container, elements) { | |
| // Default columns | |
| var cols = 2; | |
| // Columns according to mediaqueries | |
| if(container.width() > 1023) | |
| { | |
| cols = 4; | |
| } |
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
| import threading | |
| import serial | |
| import json | |
| from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer | |
| value = 0 | |
| ser = serial.Serial('/dev/tty.usbmodemXYZ', 9600) | |
| def read_value(): |
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
| 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) | |
| } |
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 | |
| find . -type f -name "*.jpg" | while read line | |
| do | |
| dir=${line%/*} | |
| file=${line/##*/} | |
| file=${file} | |
| convert "${file}" -resize 400 "resized/${file}" | |
| done |
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/sh | |
| ffmpeg -i "movie.mp4" -c:v libx264 -preset ultrafast -crf 15 -r 30 -threads 8 -c:a copy "movie_new.mp4" |
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
| window.onload = function() | |
| { | |
| var game = new Phaser.Game(window.innerWidth, window.innerHeight, Phaser.AUTO, '', { | |
| preload: preload, | |
| create: create, | |
| update: update | |
| }); | |
| var dragging = false; |
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/sh | |
| # | |
| # This is a very old startup script for gameservers which can be easily modified | |
| # | |
| # What u need: | |
| # screen | |
| # awk | |
| # Quake3 Files | |
| # | |
| # VARS: |
NewerOlder