Last active
August 29, 2015 14:00
Revisions
-
A renamed this gist
May 19, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
A revised this gist
Apr 24, 2014 . 4 changed files with 3 additions and 27 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -20,4 +20,6 @@ var bogosort = function (arr) { shuffle(arr); i++; } }; bogosort([2,1,3,4,6,5,7,8,9,10]) 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 charactersOriginal file line number Diff line number Diff line change @@ -1,21 +0,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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +0,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 charactersOriginal file line number Diff line number Diff line change @@ -1 +0,0 @@ -
A created this gist
Apr 24, 2014 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ /** * The first commented line is your dabblet’s title */ .a { width: 600px; height: 400px; background-color: #eba; position: relative; } .b { background: #bae; position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 200px; margin: auto; } 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ <!-- content to be placed inside <body>…</body> --> <div class="a"> <div class="b"></div> </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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ var isSorted = function (arr) { for (var i in arr) { if (i === 1) next; if (arr[i-1] > arr[i]) return false; } return true; }; var shuffle = function (arr) { return arr.sort(function() { return .5 - Math.random(); }); }; var bogosort = function (arr) { var i = 0; while (!isSorted(arr)) { shuffle(arr); i++; } }; 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ {"view":"separate","fontsize":"80","seethrough":"","prefixfree":"1","page":"javascript"}