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
| /* use: asc <numbers...> | |
| asc is short for ascending | |
| out: "sort" || "not sorted" */ | |
| #include <iostream> | |
| #include <cstdlib> | |
| int main(int argc, char **argv) { |
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 nil = 1; | |
| function getFirst(eName) { | |
| var firstElm = document.getElementsByTagName(eName)[0]; | |
| if (firstElm == undefined) | |
| return nil; | |
| return firstElm; | |
| } |
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
| <html><head> | |
| <meta charset="ASCII"> | |
| <!-- load file-sequence --> | |
| <meta name="script" content="lib/move.es"> | |
| <meta name="script" content="lib/sensor.es"> | |
| <meta name="script" content="code/m.es"> | |
| <script src="lib/loades.es"></script> | |
| <style> |
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
| <html> | |
| <head> | |
| <script src="lib/moving.js"></script> | |
| <script> | |
| function getID(eName) { | |
| return document.getElementById(eName); | |
| } | |
| addEventListener("load", function() { | |
| var o1 = getID("1"), o2 = getID("2"); |
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
| > calc //debug /o 1 1 /a sum | |
| O ---- | |
| 1 | |
| 1 | |
| A ---- | |
| sum | |
| 2 |
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
| ans = 0; | |
| tokens = "2GSD#13x8xU343%^DGF1@22@".scan /\d+/ | |
| def prime? op | |
| divs = 0; | |
| (1..op).each do |op2| | |
| case op % op2 | |
| when 0 | |
| divs += 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 nil = 1; | |
| function getFirst(eName) { | |
| var firstElm = document.getElementsByTagName(eName)[0]; | |
| if (firstElm == undefined) | |
| return nil; | |
| return firstElm; | |
| } |
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
| ... | |
| <meta name="script" content="lib/moving.es"> | |
| <meta name="script" content="lib/sensor.es"> | |
| <meta name="script" content="code/mix.es"> | |
| ... | |
| <script> load(); </script> |
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
| begin | |
| stream = open(url + "&api_key=#{@key}"); | |
| rescue OpenURI::HTTPError => exception | |
| json = JSON.parse exception.io.read; | |
| print json['type'], ', ', json['message'], "\n"; | |
| nil; | |
| end |
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
| #include <iostream> | |
| #include <windows.h> | |
| #include <cstdio> | |
| /* Standard error macro for reporting API errors */ | |
| #define PERR(bSuccess, api){if(!(bSuccess)) printf("%s:Error %d from %s \ | |
| on line %d\n", __FILE__, GetLastError(), api, __LINE__);} | |
| void clear( HANDLE hConsole ) | |
| { |