The following debugging information was generated by Atom Beautify
on Fri Dec 01 2017 14:25:19 GMT+0100 (Vest-Europa (normaltid))
.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>QUnit test</title> | |
<link rel="stylesheet" href="../lib/qunit/qunit.css"></head> | |
<script src="../lib/qunit/qunit.js"></script> | |
<script data-main="runner" src="../lib/requirejs/require.js"></script> | |
<body> | |
<div id="qunit"></div> |
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
define(['../lib/jquery/jquery.js'], function() { | |
var jquery = $; //store original jquery before deleting it from the global namespace | |
$.noConflict(true); //delete $ and jQuery from the global namespace | |
return jquery; //return jquery to any module that requires it | |
}); |
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
//vermin readystate 4, status 0 | |
vermin.ajax.get('/longrunning', { | |
failure: function() { | |
console.log(JSON.stringify(arguments)); | |
} | |
}); | |
//jquery readystate 0, status 0 | |
$.get('/longrunning').fail(function() { | |
console.log(JSON.stringify(arguments)); |
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
/** | |
* A wrapper around the testcase and setup/teardown methods that parses the function first and inserts HTML into the page or the scope | |
* This is according to the jstestdriver HTML doc feature https://code.google.com/p/js-test-driver/wiki/HtmlDoc | |
*/ | |
function createFunc(test) { | |
var commentMatches = test.toString().match(/\/\*[^*]*\*+(?:[^*\/][^*]*\*+)*\//g); //finds all comment blocks in the function | |
return function() { | |
var self = this; | |
if (commentMatches !== null) { //if we have any comment blocks loop each |
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 | |
for d in ~/projects/sl/SublimeLinter*; do | |
cd $d | |
name=$(git remote -v | cut -f 2 | cut -f 2 -d \/ | cut -f 1 -d . | cut -f 2 | head -1) | |
sed -i 's/\(==\+\)/\0\n\n[![Build Status](https:\/\/khancdn.eu\/badges.php?service=https%3A%2F%2Ftravis-ci.org%2FSublimeLinter%2FSublimeLinter-json.png%3Fbranch%3Dmaster)](https:\/\/travis-ci.org\/SublimeLinter\/SublimeLinter-json)/' README.md | |
sed -i 's/SublimeLinter-json.png/'$name'.png/' README.md | |
sed -i 's/SublimeLinter-json)/'$name')/' README.md | |
git commit -am "Added travis build status image" | |
done |
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 - Debugging information | |
The following debugging information was generated by `Atom Beautify` on `Fri Dec 01 2017 14:25:19 GMT+0100 (Vest-Europa (normaltid))`. | |
--- | |
## Table Of Contents | |
- [Versions](#versions) | |
- [Original file to be beautified](#original-file-to-be-beautified) | |
- [Original File Contents](#original-file-contents) |
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
// add 1 to any binary number, left aligned, to support streaming | |
var numbers = Array(20) | |
.fill(0) | |
.map((n, i) => i | |
.toString(2) | |
.split('') | |
.reverse() | |
) | |
console.log(numbers) |
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
s: 011001 22 | |
a: 010000 2 | |
r: 000101 24 | |
t: 011101 | |
0011000010, 2 width | |
take any while second is 0, data is first | |
when 1 then create operation bits, add 1 bit, then do & | |
0 |
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
// ==UserScript== | |
// @name New Userscript | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.google.com/url?q=* | |
// @grant none | |
// ==/UserScript== |