View gist:7487f803f646b54de343
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
#!/usr/bin/env bash | |
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x | |
source "$(dirname $0)/../common/functions" | |
dokku_log_info1 "The different text for the different plugins" |
View gist:3154517
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
ready(function(model) { | |
app.on('render', function(ctx) { | |
// Do your FB and Google+ init here - read more about it (the render event) here: https://github.com/codeparty/derby/commit/bbc33f8b03b7df5c8c070e93ac387971b79b3a98 (first init) and here: https://github.com/codeparty/derby/commit/a1376e57fee148ef3677d5a2aef02626b32ccbc8 (update and more specifics of how it can be used) as well as the History.md for 0.3.11: https://github.com/codeparty/derby/blob/master/History.md | |
}); | |
}); |
View gist:3155434
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
expressApp.post('/', function( req, res, next ) { | |
var | |
model = req.getModel(); | |
model.fetch( | |
store.query('people').login(req.body), | |
function( err, scoped_user ) { | |
var |
View gist:3259336
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
form.onPart = function(part) { | |
if (!part.filename) { | |
// let formidable handle all non-file parts | |
incomingForm.handlePart(part); | |
return false; | |
} | |
client.putStream(part, part.filename, {'Content-Length': form.bytesExpected, 'Content-Type': part.mime}, function() { | |
console.log('uploaded?'); | |
}); |
View lib_app_index.js
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 app = require('derby').createApp(module) | |
; | |
app.get('/*', function(page, model, params) { | |
model.set('_page.unplannedOrder', [{"id":"1"}, {"id":"2"}, {"id":"3"}]); | |
page.render(''); | |
}); | |
app.enter('/*', function (model) { | |
model.remove('_page.unplannedOrder', 0); |
View gist:5913052
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
<Body:> | |
<ul>{#each _page.unplannedOrder as :row}<li style="{#if _page.selected[:row.id]}background: red;{/}">{:row.id}</li>{/}</ul> | |
<ul>{#each _page.unplannedOrder as :row}<li style="{#if multiplePartPath(_page.selected, :row.id)}background: red;{/}">{:row.id}</li>{/}</ul> |
View package.json
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
"dependencies": { | |
"async": "^1.5.0", | |
"body-parser": "^1.14.1", | |
"chalk": "^1.1.1", | |
"coffee-script": "^1.10.0", | |
"coffeeify": "^1.1.0", | |
"compression": "^1.6.0", | |
"connect-mongo": "^0.8.2", | |
"cookie-parser": "^1.4.0", | |
"d-bootstrap": "git://github.com/cjblomqvist/d-bootstrap.git#npm-3.x", |
View demo.cs
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ITHS1._3 | |
{ | |
class Program | |
{ |
View gist:acc7ba0512040230595681c5f2a93036
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
/*********************************************************************************************** | |
* User Configuration. | |
**********************************************************************************************/ | |
/** Map relative paths to URLs. */ | |
const map: any = { | |
}; | |
/** User packages configuration. */ | |
const packages: any = { | |
}; |
OlderNewer