Skip to content

Instantly share code, notes, and snippets.

View knownasilya's full-sized avatar
🌒
And, behold, I come quickly; and my reward is with me.. Rev 22:12

Ilya Radchenko knownasilya

🌒
And, behold, I come quickly; and my reward is with me.. Rev 22:12
View GitHub Profile
@tomdale
tomdale / bytecode.ts
Created October 20, 2017 16:45
Glimmer.js Application proposal
// This is the API for constructing a Glimmer.js application with
// precompiled binary bytecode templates and using an async renderer
// (via requestAnimationFrame, requestIdleCallback, etc).
import Application, { DOMBuilder, AsyncRenderer, BytecodeLoader } from '@glimmer/application';
import data from './__compiled__/data';
let bytecode = fetch('./__compiled__/templates.gbx')
.then(req => req.arrayBuffer());
@azvoleff
azvoleff / Production_setup.rst
Last active August 14, 2020 18:55
CartoDB install on 16.04

Production CartoDB setup

This is a guide for setting up a production instance of CartoDB after setting up the above.

Setup production database

RAILS_ENV=production bundle exec rake db:migrate RAILS_ENV=production bundle exec rake db:setup

@mixonic
mixonic / readme.md
Last active August 15, 2024 15:15
Services for Glimmer.js

Setup

In config/environment.js:

// config/environment.js
'use strict';

/*
 * Mostly this is the stock module config.
@knownasilya
knownasilya / ssl-certificate-resources.md
Last active July 3, 2017 14:36
SSL Certificate Resources
@ef4
ef4 / Cardstack Development.postman_environment.json
Created June 13, 2017 21:15
Example Postman Queries for Cardstack development
{
"id": "5ba0f46c-3604-4c4b-39b5-1e4e2272a0a2",
"name": "Cardstack Development",
"values": [
{
"enabled": true,
"key": "hub",
"value": "http://localhost:4200/cardstack",
"type": "text"
},

default: Ember

import Ember from 'ember';

default: Ember.Application

import Application from 'ember-application';
@knownasilya
knownasilya / helpers.load-engine.js
Created March 20, 2017 19:27
mount engine by dynamic name
export default Ember.Helper.extend({
assetLoader: Ember.inject.service(),
compute([name]) {
if (this.engineName === name && this._resolved) { return name; }
this.engineName = name;
let assetLoader = this.get('assetLoader');
assetLoader.loadBundle(name)
@colophonemes
colophonemes / create_triggers
Last active February 1, 2025 14:53
Postgres TRIGGER to call NOTIFY with a JSON payload
CREATE TRIGGER person_notify AFTER INSERT OR UPDATE OR DELETE ON income
FOR EACH ROW EXECUTE PROCEDURE notify_trigger(
'id',
'email',
'username'
);
CREATE TRIGGER income_notify AFTER INSERT OR UPDATE OR DELETE ON income
FOR EACH ROW EXECUTE PROCEDURE notify_trigger(
'id',
@machty
machty / gist:68afad4c03109f36d4f4cffaae3c170b
Last active February 7, 2017 17:45
embercommunity.slack.com #topic-forms discussion
joined #topic-forms, and invited @machty
locks [11:05 AM]
thar you go
machty [11:06 AM]
thank you!
[11:07]
@samselikoff @cowboyd
@ef4
ef4 / travis.yml
Created December 6, 2016 19:45
Example of ember-cli-deploy from travis
deploy:
- provider: script
skip_cleanup: true
script: node_modules/.bin/ember deploy development --activate --verbose
on:
branch: master
- provider: script
skip_cleanup: true
script: node_modules/.bin/ember deploy staging --activate --verbose
on: