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 characters
let constructItem = (data, user_id) => {console.log('aza')} | |
module.exports = { | |
getAdTitles: (rp) => | |
rp.get(config.importer.urls.ad_list) | |
.then(() => rp.get(config.importer.urls.ad_list_json)) | |
.then($ => { | |
let ads = JSON.parse($.html()) | |
let ads_length = ads.myAdEntries.length | |
let counter = 0 | |
let titles = [] |
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 characters
// FILE 1 | |
socket.on('start import', data => { | |
Auth.authenticateUser(149,7) // Is return Promise? If not, I should use callback? | |
}) | |
// FILE 2 | |
module.exports = { | |
authenticateUser: (account_id, user_id) => |
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 characters
var Route = ReactRouter.Route | |
var Routes = ReactRouter.Routes | |
var DefaultRoute = ReactRouter.DefaultRoute | |
var RouteHandler = ReactRouter.RouteHandler | |
var Link = ReactRouter.Link | |
var App = React.createClass({ | |
render: function () { | |
return ( | |
<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 characters
case "$1" in | |
start) | |
echo -n "Starting mms-agent: " | |
# Run mmsAgent in the backround, with both stdout and stderr saved in /var/log/agent.log, and use nohup to protect against HUP signals. | |
nohup python /home/www/mms-agent/agent.py >> /var/log/agent.log 2>&1 & | |
echo $! > /var/pids/mmsagent.pid | |
echo "mmsAgent" | |
;; | |
stop) | |
echo -n "Stopping all mmsAgent processes: " |
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 characters
#!/bin/bash | |
# | |
# description: DevShelf service | |
# processname: node | |
# pidfile: /var/run/devshelf.pid | |
# logfile: /var/log/devshelf.log | |
# | |
# Based on https://gist.github.com/jinze/3748766 | |
# | |
# To use it as service on Ubuntu: |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 characters
<script type="text/template" id="${1:main}-template"> | |
<div id="${1:main}"> | |
</div> | |
</script> |