Skip to content

Instantly share code, notes, and snippets.

View LoE server flooding #1
...
UDP: Unknown data received : 4efa0038000100ca020000004efc0038000100ca0e000000
UDP: Next message will be : 4efc0038000100ca0e000000
UDP: Unknown data received : 4efc0038000100ca0e000000
UDP: Next message will be :
UDP: Unknown data received : 4efe0038000100ca050000004e000138000100ca06000000
UDP: Next message will be : 4e000138000100ca06000000
UDP: Unknown data received : 4e000138000100ca06000000
UDP: Next message will be :
UDP: Discarding double message (-0) from 1
@daniel-j
daniel-j / trackdrag.coffee
Created Nov 12, 2014
Some useful Marionette behaviors!
View trackdrag.coffee
class Behavior.TrackDrag extends Marionette.Behavior
events:
dragstart: 'start'
dragenter: 'enter'
dragleave: 'leave'
dragend: 'leave'
dragover: 'over'
drop: 'drop'
start: (e) ->
@daniel-j
daniel-j / .gitignore
Last active Aug 29, 2015
Take a photo with a system camera using a button connected to GPIO!
View .gitignore
trigger-camera
View 2048.c.yml
name: "2048.c"
version: git
runner: linux
game_slug: "2048-c"
game:
exe: "/usr/bin/gnome-terminal"
args: -e "$GAMEDIR/2048"
files:
@daniel-j
daniel-j / _radio.sh
Created May 15, 2015
Galaxy News Radio (MPD + Python)
View _radio.sh
#!/bin/bash
cd ${0%/*}
sock="`pwd`/mpd/socket"
function addList {
LIST=`python2 create-show.py`
IFS=$'\n';
View frag
// FRAGMENT SHADER
precision mediump float;
uniform vec2 u_position;
uniform vec3 u_palette[256];
void main() {
int index = 5;
vec3 palColor = u_palette[index];
View vert
// VERTEX SHADER
attribute vec2 a_position;
uniform vec2 u_resolution;
uniform vec3 u_palette[256];
varying vec3 v_color;
void main() {
View gist:1709425
var leftleggeo = new THREE.CubeGeometry(4, 12, 4);
var leftleg = new THREE.Mesh(leftleggeo, new THREE.MeshFaceMaterial());
leftleg.position.z = -2;
leftleg.position.y = -6;
scene.add(leftleg);
View gist:3829127
#include <iostream>
#include <string>
#include <ctime>
#include <cstdlib>
#include <fstream>
using namespace std;
const int DICE_COUNT = 5;
const int ROUND_COUNT = 6;
@daniel-j
daniel-j / gist:3841983
Created Oct 5, 2012
Node.js LAN port scanner
View gist:3841983
var net = require('net');
var dns = require('dns');
var startAddress = "194.47.158.";
var scanAddress = "194.47.158.252";
var scanPort = 5357;
scanByPort(startAddress, scanPort, function (scanlist) {
console.log(startAddress+"*: [ "+scanlist.join(", ")+" ]");