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 clip = require('copy-paste').global(); | |
var socket = require('socket.io-client')(process.argv[2]); | |
var id = undefined; | |
if(process.argv[3]) | |
id = process.argv[3]; | |
socket.on('connect', function () { console.log("socket connected"); }); | |
socket.on('id', function(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
class SMS | |
require 'pony' | |
puts "Alright. This program will send people text messages throughout the day.\n" | |
puts "This is meant as a reminder, and I do not condone any malicious purposes.\n" | |
puts "If you have a negative impact on somebody's phone bill, I hope you go to court.\n" | |
puts "\nThat being said, I hope this is a useful tool for you!\n" | |
puts "Just follow these instructions and input valid information, and everything should work out.\n" | |
puts "Keep in mind that the messages are sent randomly, in no predictable order.\n" |
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
package backup; | |
import java.awt.Dimension; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import java.awt.event.WindowAdapter; | |
import java.awt.event.WindowEvent; | |
import java.beans.PropertyChangeEvent; | |
import java.beans.PropertyChangeListener; | |
import java.io.File; |
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
/*! | |
JSZip - A Javascript class for generating and reading zip files | |
<http://stuartk.com/jszip> | |
(c) 2009-2014 Stuart Knightley <stuart [at] stuartk.com> | |
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown. | |
JSZip uses the library pako released under the MIT license : | |
https://github.com/nodeca/pako/blob/master/LICENSE |
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 os | |
from PIL import Image, ImageChops | |
def trim(im): | |
bg = Image.new(im.mode, im.size, im.getpixel((0,0))) | |
diff = ImageChops.difference(im, bg) | |
diff = ImageChops.add(diff, diff, 2.0, -100) | |
bbox = diff.getbbox() | |
if bbox: | |
return im.crop(bbox) |
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
'use strict'; | |
function h(c) | |
{ | |
var r = parseInt(c[0]+c[1], 16); | |
var g = parseInt(c[2]+c[3], 16); | |
var b = parseInt(c[4]+c[5], 16); | |
return `rgb(${r}, ${g}, ${b})`.replace(/NaN/g, '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
'use strict'; | |
module.exports = (pluginContext) => | |
{ | |
function search(query, res) | |
{ | |
var d = new Date(query * 1000); | |
res.add( | |
{ | |
id: '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
/build |
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
package backup; | |
import java.awt.Dimension; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import java.awt.event.WindowAdapter; | |
import java.awt.event.WindowEvent; | |
import java.beans.PropertyChangeEvent; | |
import java.beans.PropertyChangeListener; | |
import java.io.File; |
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
package videodiff; | |
import java.awt.image.BufferedImage; | |
import java.io.FileNotFoundException; | |
import java.io.PrintWriter; | |
import java.io.UnsupportedEncodingException; | |
import java.util.Vector; | |
import org.bytedeco.javacv.FFmpegFrameGrabber; |
NewerOlder