Skip to content

Instantly share code, notes, and snippets.

View mu-arch's full-sized avatar
:octocat:

mu-arch

:octocat:
  • 06:20 (UTC -05:00)
View GitHub Profile
{"bytes_sent": 4669440, "download": 21663519.59954228, "timestamp": "2017-07-14T19:35:00.491672Z"}
var request = require('request');
module.exports =
function (cb) {
var start = Date.now();
request.post('https://discordapp.com/api/channels/307887108129816578/messages',
headers: {
'Authorization': 'Bot MzA3ODkzOTU3NDAzMDgyNzY0.C-Y9-w.RlC48n2HEDH_v4Kv3dasoUJ-aq4',
'User-Agent': 'myBotThing (http://some.url, v0.1)',
'Content-Type': 'application/json'
const loginView = '
<div class="login-container">
<h1>Login to CauseOS</h1>
<div id="error" style="display:none;">
<svg style="width:30px;height:30px" viewBox="0 0 24 24">
<path fill="orange" d="M12,2L1,21H23M12,6L19.53,19H4.47" />
</svg>
@mu-arch
mu-arch / router
Last active September 15, 2016 22:43
var router = new Navigo(useHash=false);
router
.on({
'login': function () {
setContent('login');
},
'recover': function () {
setContent('recover');
},
$rootScope.$watch('id', function () {
var context = $rootScope.id;
console.log(context);
$scope.getCurrentCause = function (causes) {
return causes.organization_contextual_id === context;
};
});