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
var Jimp = require("jimp"); // load image manipulator | |
var plist = require("plist"); // load plist parser | |
var fs = require("fs"); // load filesystem | |
var selected = "spider_02"; // INPUT change value for different icons | |
var COL1 = [255, 0, 0]; | |
var COL2 = [255, 255, 0]; | |
var inputData = plist.parse(fs.readFileSync("./input.plist", "utf8")); // parse plist | |
var data = inputData.frames; // get frames |
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
# SendMessage(HWND_BROADCAST,WM_SYSCOMMAND, SC_MONITORPOWER, POWER_OFF) | |
# HWND_BROADCAST 0xffff | |
# WM_SYSCOMMAND 0x0112 | |
# SC_MONITORPOWER 0xf170 | |
# POWER_OFF 0x0002 | |
Add-Type -TypeDefinition ' | |
using System; | |
using System.Runtime.InteropServices; |
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
#!/bin/bash | |
screenshot () { | |
# o - no openGL 3.0 (legacy mode) | |
# u - hide cursor | |
# b - border thickness (negative for inset) | |
# c - border color (RGBA) | |
# n - decoration level (window borders) | |
maim \ | |
-n 0\ |
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
var canvas = document.getElementById("canvas"); | |
var ctx = canvas.getContext('2d'); | |
var alert = document.getElementById("alert"); | |
var pollX = 90; | |
var rocket = { | |
x: pollX, | |
y: canvas.height-100, | |
lastx: 0, |
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
--- hardware/qcom/fm/fm_hci/Android.mk.orig 2018-01-08 23:23:37.000000000 +0100 | |
+++ hardware/qcom/fm/fm_hci/Android.mk 2018-01-09 19:24:52.341528746 +0100 | |
@@ -13,8 +13,8 @@ | |
libhidltransport \ | |
libhwbinder \ | |
liblog \ | |
- libutils \ | |
- vendor.qti.hardware.fm@1.0 | |
+ libutils | |
+# vendor.qti.hardware.fm@1.0 |
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
/* | |
+(c) 2017*/ | |
#define /**/C(c/* | |
*/)char *o= #c;c | |
C(typedef char w;w* | |
t=" oh##! ]j% #f&" | |
"$ !j%&a^ )$! cc)" | |
"b ]$#_$$ !da )$_" | |
"^ %#]_#%! cb# $]'" | |
"a %b#%!i## ]]' #]_" |
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
11345920 > 10855680 - 270336 | |
11341824 | |
**Hack this to use precompiled kernel** | |
[build/core/Makefile]:1109 | |
recovery_kernel := $(INSTALLED_KERNEL_TARGET) # same as a non-recovery system | |
TARGET_KERNEL_SOURCE | |
./device/motorola/msm8226-common/BoardConfigCommon.mk:50:TARGET_KERNEL_SOURCE := kernel/motorola/msm8226 | |
./vendor/lineage/build/tasks/kernel.mk:24:# TARGET_KERNEL_SOURCE = Kernel source dir, optional, defaults |
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
var Discordie = require("discordie"); | |
var client = new Discordie(); | |
var fs = require("fs"); | |
client.connect({ token: "" }); | |
client.Dispatcher.on("GATEWAY_READY", e => { | |
console.log("Connected as: " + client.User.username); | |
}); |
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
center=128 | |
width=127 | |
freq=0.06 | |
rainbow() { | |
R=$(bc -l <<< "scale=2;s($freq*$1+2)*$width+$center") | |
G=$(bc -l <<< "scale=2;s($freq*$1+0)*$width+$center") | |
B=$(bc -l <<< "scale=2;s($freq*$1+4)*$width+$center") | |
echo "\x1b[38;2;${R%.*};${G%.*};${B%.*}m" | |
} |
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 json | |
import urllib | |
import urllib.request | |
import os | |
import sys | |
import hashlib | |
# BUF_SIZE is totally arbitrary, change for your app! | |
BUF_SIZE = 65536 # lets read stuff in 64kb chunks! |
OlderNewer