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
| test | |
| test | |
| test | |
| test | |
| test |
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 React = require("react"); | |
| var Router = require('react-router'); | |
| var GistForm = require("./GistForm.js"); | |
| var AppHeader = require("./AppHeader.js"); | |
| var AppFooter = require("./AppFooter.js"); | |
| var Gist = require("./Gist.js"); | |
| var Config = require("./Config.js"); | |
| var DefaultRoute = Router.DefaultRoute; | |
| var NotFoundRoute = Router.NotFoundRoute; |
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
| /* | |
| License: MIT | |
| Easily formattable date difference. | |
| DateFromNow(someDate).simple(); //ex. returns '3 days ago'; | |
| DateFromNow(someDate).parts(); //ex. returns {years: null, months: null, days: 3, hours: 8, minutes: 52, seconds: 43}; | |
| */ |
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 a = 31337; | |
| var b = 1073741824; | |
| function digital_root(num) { | |
| var strnum = num.toString(); | |
| while (strnum.length() > 1) { | |
| var runnum = 0; | |
| for (int i = 0; i < strnum.length(); i++) { | |
| runnum += parseInt(s.charAt(i)); |