Skip to content

Instantly share code, notes, and snippets.

View vinzdef's full-sized avatar
🍋
][__( ͡~ ͜ʖ ͡°)__][

Vincent De Feo vinzdef

🍋
][__( ͡~ ͜ʖ ͡°)__][
View GitHub Profile
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
class Job {
public:
string name;
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
const char X = 'X', O = 'O', EMPTY = ' ', TIE = 'T', NO_ONE = 'N';
using namespace std;
@vinzdef
vinzdef / D.js
Created September 12, 2015 09:23
Formatted logging and debug utils
var ERROR_CSS = "background-color: #f44336; color: #B2DFDB;"
var WARN_CSS = "background-color: #FDD835; color: #B2DFDB;"
var INFO_CSS = "background-color: #BDBDBD; color: #B2DFDB;"
var DEBUG_CSS = "background-color: #9575CD; color: #ECEFF1;"
var D = function () { this.console = console }
D.prototype.printStyledArgs = function(passedArgs, css, fn) {
for (var i = 0; i < passedArgs.length; i++) {
0 - natas0
1 - gtVrDuiDfck831PqWsLEZy5gyDz1clto
2 - ZluruAthQk7Q2MqmDeTiUij2ZvWy2mBi
3 - sJIJNW6ucpu6HPZ1ZAchaDtwd7oGrD14
4 - Z9tkRkWmpt9Qr7XrR5jWRkgOU901swEZ
5 - iX6IOfmpN7AYOQGPwtn3fXpbaJVJcHfq
6 - aGoY4q2Dc6MgDq4oL4YtoKtyAg9PeHa1
7 - 7z3hEENjQtflzgnT29q7wAvMNfZdh0i9
8 - DBfUBfqQG69KvJvJ1iAbMoIpwSNQ9bWe
9 - W0mMhUcRRnG8dcghE4qvk3JA9lGt8nDl
var $ = require('jquery')
var TouchManager = function (callbacks) {
this.touchState = {
currentY: null,
currentX: null,
startY: null,
startX: null,
# MAC ADDRESS SPOOFER
MAC=""
for i in {0..5}; do
VAL=$RANDOM
PART=$(printf "%2X" $VAL)
MAC+=$(printf "%.2s" $PART)
if [ $i -lt 5 ]
@vinzdef
vinzdef / arp-poison.sh
Created May 11, 2016 15:01
Simple arp poisoning tool
#!/bin/bash
DATA_DIR=".poison_result"
DEVICES_FILE="$DATA_DIR/device-list.txt"
NEMESIS_LOGFILE="$DATA_DIR/nemesis_log.txt"
IP_REGEX="[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}"
MAC_REGEX="[a-z0-9]\{2\}\:[a-z0-9]\{2\}\:[a-z0-9]\{2\}\:[a-z0-9]\{2\}\:[a-z0-9]\{2\}\:[a-z0-9]\{2\}"
if [ ! -d "$DATA_DIR" ]; then
import fetch from 'isomorphic-fetch'
export function retrieve(url, actionCreator, id = null, collection = null) {
return (dispatch, getState) => {
function done(data) {
dispatch(actionCreator(data))
}
if (id !== null) {
file="II.gif"
base="II"
convert $file -coalesce "${base}-coal.gif"
convert -size 1200x1080 "${base}-coal.gif" -resize 30% "${base}-small.gif"
convert "${base}-small.gif" frames%04d.png
#montage -background '#e177a8' -border 0 -tile 6x -quality 60% frames*.png "A-sheet.jpg"
ffmpeg -loop 1 -i bg.png -i frames%04d.png -filter_complex overlay=shortest=1 "II.mp4"
@vinzdef
vinzdef / SuperCollider_00.scd
Created January 20, 2018 15:49
SuperCollider 34C3 Assembly Intro
{
SinOsc.ar(
Line.kr(440, 220, 1), 0, 1
);
}.scope
SynthDef(\env_synth,{
Out.ar(0, SinOsc.ar(440));
}).add;