Skip to content

Instantly share code, notes, and snippets.

@adong
adong / controllers.application.js
Created December 18, 2018 23:37 — forked from alexdiliberto/controllers.application.js
Ember's Route Hook Order with Application Controller Init
import Ember from 'ember';
function logHook(property) {
return function() {
let log = `<span class="log-item log-hook-item">${this._debugContainerKey} - ${property}</span>`;
Ember.$('body').append(log);
return this._super(...arguments);
};
};
export default Ember.Controller.extend({
@adong
adong / SimpleHTTPServerWithUpload.py
Created June 18, 2022 16:40 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
@adong
adong / Ember_data_rest_api.md
Created September 18, 2022 20:39 — forked from ldong/Ember_data_rest_api.md
Ember Data REST response

Ember Data REST response

createRecord

URL: /users/

Method: POST

Request Data: