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
#define Ripple_h | |
#ifdef Ripple_h | |
class Ripple { | |
public: | |
Ripple() { | |
xRes = 32; | |
yRes = 32; | |
r0 = new float*[xRes]; | |
r1 = new float*[xRes]; | |
r2 = new float*[xRes]; |
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
--Select from where you will pick up the pages files | |
set theFolder to choose folder with prompt "Select folder with original pages files :" | |
--Do it | |
tell application "Finder" | |
set theNames to name of files of theFolder ¬ | |
whose name extension is "pages" | |
end tell | |
--Select where the PDF files will go | |
set pdf_Folder to choose folder with prompt "Select folder where PDF files will go :" |
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
export MAKEFLAGS="-j 16 CXX=/usr/lib/distcc/arm-linux-gnueabihf-g++ CC=/usr/lib/distcc/arm-linux-gnueabihf-gcc" |
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
cat ~/.ssh/id_rsa.pub | ssh [email protected] 'cat >> .ssh/authorized_keys' |
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
ls | grep -v 'config\|data' | xargs rm -rf |
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
android_binary( | |
name = 'app', | |
manifest_entries = { | |
'version_code': 12, | |
'version_name': '2.0', | |
'min_sdk_version': 8, | |
'target_sdk_version': 23, | |
'debug_mode': True, | |
}, | |
manifest = 'AndroidManifest.xml', |
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
adb shell | |
su | |
mount -o remount,rw /system | |
#remove apk from system partition | |
rm system/priv-app/amlauncher.apk < |
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 | |
# | |
# Author: Renato L. F. Cunha <[email protected]> | |
# This file is available according to the MIT license. Please refer to the | |
# LICENSE file for details. | |
# | |
# This script builds a version of FFmpeg with h.264 support enabled by means of | |
# the libx264 library. | |
# |
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
#!/usr/bin/python | |
# Persistence-of-vision (POV) example for Adafruit Dot Star RGB LED strip. | |
# Loads image, displays column-at-a-time on LEDs at very high speed, | |
# suitable for naked-eye illusions. | |
# See strandtest.py for a much simpler example script. | |
# See image-paint.py for a slightly simpler light painting example. | |
import Image | |
# from dotstar import Adafruit_DotStar |
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
#!/usr/bin/env python | |
# Light each LED in sequence, and repeat. | |
import Image | |
import opc, time | |
import atexit | |
import random | |
""" | |
This program sends 10 random values between 0.0 and 1.0 to the /filter address, | |
waiting for 1 seconds between each value. |