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
@echo off | |
DOSKEY ls=dir /B | |
DOSKEY lsport=netstat -a -n -o | find "%1" |
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
// taken from https://medium.com/front-end-hacking/ajax-async-callback-promise-e98f8074ebd7#.55p53btpl | |
function makeAjaxCall(url, methodType){ | |
var promiseObj = new Promise(function(resolve, reject){ | |
var xhr = new XMLHttpRequest(); | |
xhr.open(methodType, url, true); | |
xhr.send(); | |
xhr.onreadystatechange = function(){ | |
if (xhr.readyState === 4){ | |
if (xhr.status === 200){ |
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
SRC: http://vi-control.net/community/threads/daw-users-poll-and-the-who-uses-what-list.35147/ | |
EDIT: The poll results were erased when moved to the new VI-C site in 2015, rendering it useless. Newer polls have emerged since. | |
Please feel free to add to the list, and provide a source if you can. | |
NOTE: These are DAWs used as the "primary composition and sequencing software". The 'Desert Island' DAW. | |
DAWs And Their Users | |
============== |
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
#!/usr/bin/env bash | |
while [ 1 == 1 ] | |
do | |
########################################################################## | |
url=$(cat /dev/urandom | tr -cd "[:alnum:]" | head -c 5) | |
curl -f -s http://imgur.com/$url > /dev/null | |
exitstatus=$? |
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 4chan() { | |
if [ $# -ne 1 ] | |
then | |
echo 'No URL specified! Give the URL to thread as the ONLY argument' | |
return 1 | |
fi | |
url=$1 |
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 Timeout = { | |
_timeouts: {}, | |
set: function(name, func, time){ | |
this.clear(name); | |
this._timeouts[name] = {pending: true, func: func}; | |
var tobj = this._timeouts[name]; | |
tobj.timeout = setTimeout(function() | |
{ | |
/* setTimeout normally passes an accuracy report on some browsers, this just forwards that. */ | |
tobj.func.call(arguments); |
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
#!/usr/bin/python | |
import cgi, cgitb, os, sys | |
import commands | |
cgitb.enable(); # formats errors in HTML | |
form = cgi.FieldStorage() | |
sys.stderr = sys.stdout | |
print "Content-type: text/html" | |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>HTML5 Template</title> | |
<meta name="description" content="HTML5"> | |
<meta name="author" content="Author"> |
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
// taken from http://stackoverflow.com/questions/3011600/clear-javascript-console-in-google-chrome | |
if (typeof console._commandLineAPI !== 'undefined') { | |
console.API = console._commandLineAPI; | |
} else if (typeof console._inspectorCommandLineAPI !== 'undefined') { | |
console.API = console._inspectorCommandLineAPI; | |
} else if (typeof console.clear !== 'undefined') { | |
console.API = console; | |
} |
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
collapse events taborder | |
opacity: 0 No Yes Yes | |
visibility: hidden No No No | |
visibility: collapse * No No | |
display: none Yes No No | |
* Yes inside a table element, otherwise No. | |
taken from http://stackoverflow.com/questions/272360/does-opacity0-have-exactly-the-same-effect-as-visibilityhidden |