Skip to content

Instantly share code, notes, and snippets.

cjblomqvist

Block or report user

Report or block cjblomqvist

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:d0d2e8c07b429f18c3dbfe82e19fdda8
{{#each scripts.polyfills}}<script src="{{.}}"></script>{{/each}}
<script type="text/javascript" src="cordova.js"></script>
<script>
System.import('system-config.js').then(function () {
System.import('main');
}).catch(console.error.bind(console));
</script>
View gist:c4fb0217ad3df9a5a1ea595f99001718
{
"compileOnSave": false,
"compilerOptions": {
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"mapRoot": "",
"module": "commonjs",
"moduleResolution": "node",
"noEmitOnError": true,
View gist:05d3a6fb0defdab9d54d19cfd74c25bc
{
"ambientDevDependencies": {
"angular-protractor": "registry:dt/angular-protractor#1.5.0+20160425143459",
"jasmine": "registry:dt/jasmine#2.2.0+20160412134438",
"selenium-webdriver": "registry:dt/selenium-webdriver#2.44.0+20160317120654"
},
"ambientDependencies": {
"es6-shim": "registry:dt/es6-shim#0.31.2+20160317120654",
"firebase": "registry:dt/firebase#2.4.1+20160412125105",
"moment": "registry:dt/moment#2.8.0+20160316155526",
View gist:acc7ba0512040230595681c5f2a93036
/***********************************************************************************************
* User Configuration.
**********************************************************************************************/
/** Map relative paths to URLs. */
const map: any = {
};
/** User packages configuration. */
const packages: any = {
};
View demo.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ITHS1._3
{
class Program
{
View package.json
"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",
@cjblomqvist
cjblomqvist / share\lib\client\doc.js
Created Oct 1, 2015
Fixes issue with document undefined?
View share\lib\client\doc.js
var types = require('../types').ottypes;
var emitter = require('./emitter');
/**
* A Doc is a client's view on a sharejs document.
*
* It is is uniquely identified by its `name` and `collection`. Documents
* should not be created directly. Create them with Connection.get()
*
*
View gist:7487f803f646b54de343
#!/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:5913052
<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 lib_app_index.js
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);
You can’t perform that action at this time.