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
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) { |
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 | |
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 |
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
# MAC ADDRESS SPOOFER | |
MAC="" | |
for i in {0..5}; do | |
VAL=$RANDOM | |
PART=$(printf "%2X" $VAL) | |
MAC+=$(printf "%.2s" $PART) | |
if [ $i -lt 5 ] |
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
var $ = require('jquery') | |
var TouchManager = function (callbacks) { | |
this.touchState = { | |
currentY: null, | |
currentX: null, | |
startY: null, | |
startX: null, |
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
0 - natas0 | |
1 - gtVrDuiDfck831PqWsLEZy5gyDz1clto | |
2 - ZluruAthQk7Q2MqmDeTiUij2ZvWy2mBi | |
3 - sJIJNW6ucpu6HPZ1ZAchaDtwd7oGrD14 | |
4 - Z9tkRkWmpt9Qr7XrR5jWRkgOU901swEZ | |
5 - iX6IOfmpN7AYOQGPwtn3fXpbaJVJcHfq | |
6 - aGoY4q2Dc6MgDq4oL4YtoKtyAg9PeHa1 | |
7 - 7z3hEENjQtflzgnT29q7wAvMNfZdh0i9 | |
8 - DBfUBfqQG69KvJvJ1iAbMoIpwSNQ9bWe | |
9 - W0mMhUcRRnG8dcghE4qvk3JA9lGt8nDl |
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
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++) { |
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
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <algorithm> | |
const char X = 'X', O = 'O', EMPTY = ' ', TIE = 'T', NO_ONE = 'N'; | |
using namespace std; |
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
#include <iostream> | |
#include <vector> | |
#include <string> | |
#include <algorithm> | |
using namespace std; | |
class Job { | |
public: | |
string name; |
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
{ | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Oasis Theme/Oasis.tmTheme", | |
"file_exclude_patterns": | |
[ | |
"*.sublime-*" | |
], | |
"font_face": "Envy Code R", | |
"font_size": 8, | |
"ignored_packages": |
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
function debounce (fn, wait){ | |
var timeout; | |
return function(){ | |
var context = this, args = arguments | |
var later = function() { | |
timeout = null | |
fn.apply(context, args) | |
} | |
clearTimeout(timeout) | |
timeout = setTimeout(later, wait) |