Skip to content

Instantly share code, notes, and snippets.

{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"A File Icon",
"AdvancedNewFile",
"Babel",
@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:

@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 / components.my-component\.js
Last active November 13, 2020 18:57
New Twiddle
import { Promise as EmberPromise } from 'rsvp';
// import Component from '@glimmer/component';
// export default class extends Component {
// }
import Component from '@ember/component';
export default Component.extend({
@adong
adong / set-multi-github-accounts.md
Created November 11, 2019 05:33
set git account rather than default

Setting up github ssh

git clone your-git-repo

After ssh-keygen and add to your github

Host github_adong
    Hostname github.com
 User git
@adong
adong / tmux.conf_2.9.md
Created May 1, 2019 19:59
Tmux Config 2.9

This Version is for tmux 2.9

# Update config from tmux 2.9
# Issue: https://gitlab.com/fernandobasso/dotfiles/commit/af2c0ac59b93b318575367f0313ad1ca0627a6ba
# Migration: https://gist.github.com/tbutts/6abf7fb5b948c066bf180922fb37adcf

set-option -g default-command "reattach-to-user-namespace -l zsh"

# -- set the mouse gesture on --#
#set -g mode-mouse on
@adong
adong / tmux.conf.md
Created May 1, 2019 19:58
Tmux Config

This Version is for tmux 2.0

set-option -g default-command "reattach-to-user-namespace -l zsh"

# -- set the mouse gesture on --#
set -g mode-mouse on
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on
@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({
" ==============================================================================
" Author: Alan Dong
" Version: 0.3.5
" Last Modified Date: 8/17/2018
" Description: My Vim Configuration file for Server
" ==============================================================================
" set shell for bash as default
set shell=/bin/bash
" ==============================================================================
" Author: Alan Dong
" Version: 0.3.4
" README: TODO
" Last Modified Date: 12/07/2018
" Description: My Vim Configuration file
" ==============================================================================
" set shell for bash as default
set shell=/bin/bash