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
<html> | |
<head> | |
<title>JsTestBed</title> | |
</head> | |
<body> | |
<h2>"Async" test</h2> | |
<p> | |
In JavaScript, asynchronous calls are a lie!<br /> | |
What actually happens is the setTimeout(func, 0); gets put on the end of the call list.<br /> | |
Any direct javascript functions will get prioritised and run before the function in the timeout. |
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
brogrammer theme | |
GitGutter | |
meteor autocomplete (ternjs) | |
color highlighter | |
LESS | |
javascript next ES6 | |
handlebars | |
sublimelinter | |
sublimelinter-jshint |
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 filter; | |
(function () { | |
filter = function (searchBox, targetClass) { | |
var value = searchBox.value; | |
var hiddenClass = targetClass + "SearchHidden"; | |
//Nothing in the box, remove <targetclass>searchhidden class | |
if (value.length < 1) { | |
$("." + hiddenClass).removeClass(hiddenClass); |
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 addFilter; | |
(function () { | |
var filter = function (searchBox, targetClass) { | |
var value = searchBox.value; | |
var hiddenClass = targetClass + "SearchHidden"; | |
var cacheArray = JSON.parse(localStorage.getItem(hiddenClass)); | |
cacheArray = []; | |
localStorage.setItem(hiddenClass, JSON.stringify(cacheArray)); |
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 profiles = document.getElementsByClassName('friendBlockLinkOverlay'); | |
var linkText = ""; | |
for( var i = 0; i < profiles.length; i++) { linkText += "\r\n" + profiles[i].href; } | |
console.dir(linkText); |
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
atom-beautify | |
atom-monokai | |
atom-yeoman | |
auto-detect-indentation | |
autoclose-html | |
autocomplete-paths | |
es6-javascript | |
git-plus | |
highlight-selected | |
linter |
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 doStuff = function($scope) { | |
var model = []; | |
var items = $scope.items; | |
for(var i = 0; i < items.length; i++) { | |
var source = items[i]; | |
doAsyncThings().then(function(newValue){ | |
model[i].src = newValue; | |
}); |
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
Random rnd = new Random(); | |
for(int i = 0; i < 1000; i++) | |
{ | |
bool movement = rnd.NextInt(0, 10) > 9; | |
int x = 635 + (movement ? rnd.NextInt(-3, 3) : 0); | |
int y = 295 + (movement ? rnd.NextInt(-3, 3) : 0); | |
Mouse.MoveTo(x, y); | |
Mouse.Click(); | |
Process.Wait(rnd.NextInt(1500, 3000)); |
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
#dockerhub instance | |
image: didstopia/sdl2:latest | |
pipelines: | |
default: | |
- step: | |
script: # Modify the commands below to build your repository. | |
- mkdir bin | |
- make |
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
if test -f ~/.config/git/git-prompt.sh | |
then | |
. ~/.config/git/git-prompt.sh | |
else | |
PS1='\[\033]0;$PWD\007\]' # set window title | |
PS1="$PS1"'\n' # new line | |
PS1="$PS1"'\[\033[32m\]' # change to green | |
PS1="$PS1"'\u ' # user@host<space> | |
PS1="$PS1"'\[\033[35m\]' # change to purple | |
PS1="$PS1"'\w' # current working directory |
OlderNewer