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
#! /usr/bin/python3 | |
""" | |
whoping? | |
Shows a desktop notification using 'notify-send' (or executes | |
a custom command) when ICMP packets are received on the specified | |
interface. Also, saves the received packets to a pcap file if desired. | |
Usage: |
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 | |
#======================================= | |
# git-prompt-setup.sh | |
# | |
# Adds git branch to your bash prompt. | |
#======================================= | |
GITPROMPT_DIR=~/.bin | |
GITPROMPT_FILE=git-prompt.sh |
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 Sandboxr = React.createClass({ | |
componentDidMount() { | |
const iframe = this.refs.frame; | |
const node = iframe.contentDocument.createElement('div'); | |
iframe.contentDocument.body.appendChild(node); | |
this._contentNode = node; | |
this._renderChildrenIntoContentNode(this.props); | |
}, |
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
function embedHTMLContent(markup, container) { | |
// generate a new HTML document, and an iFrame... | |
var newDoc = document.implementation.createHTMLDocument('sample flickr content'), | |
iFrame = document.createElement('iframe'), | |
destDoc, srcNode, newNode; | |
// Style the empty iframe, and insert it into the DOM... | |
iFrame.width = '400px'; |
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
/* | |
* Creates functions for the numbers 0-9, and also functions for +, -, *, and /. | |
* Here is a list of the available functions: | |
* Operands: zero(), one(), two(), three(), four(), five(), six(), seven(), eight(), nine(); | |
* Operators: plus(), minus(), times(), divide(); | |
* | |
* Usage: | |
* The Operands ('zero' through 'nine') can be called with or without an operator as an argument. | |
* | |
* The Operators ('plus', 'minus', etc..) require that a number be passed as a param, and must be executed within an Operand. |