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 |
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
{"bytes_sent": 4669440, "download": 21663519.59954228, "timestamp": "2017-07-14T19:35:00.491672Z"} |
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 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' |
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
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> |
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 router = new Navigo(useHash=false); | |
router | |
.on({ | |
'login': function () { | |
setContent('login'); | |
}, | |
'recover': function () { | |
setContent('recover'); | |
}, |
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
$rootScope.$watch('id', function () { | |
var context = $rootScope.id; | |
console.log(context); | |
$scope.getCurrentCause = function (causes) { | |
return causes.organization_contextual_id === context; | |
}; | |
}); |