-
Data Down / Actions Up
- http://emberjs.jsbin.com/nayaho/edit?html,js - Interdependent select boxes. No observers.
- http://ember-twiddle.com/2d7246875098d0dbb4a4 - One Way Input
-
Other
- http://emberjs.jsbin.com/rwjblue/251/edit?html,js,output - Opening a window and communicate with it.
- http://emberjs.jsbin.com/rwjblue/55/edit - Using liquid-fire animations in globals mode.
- http://emberjs.jsbin.com/rwjblue/593/edit - Modify computed dependent keys after initialization.
- http://emberjs.jsbin.com/siforo/edit?js,output - Define computed property after object initialization.
-
http://emberjs.jsbin.com/rwjblue/299/edit?js,output - simplified version of ic-ajax
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
box = 'ubuntu/trusty64' | |
hostname = 'emberclibox' | |
domain = 'embertest.local' | |
ip = '192.168.13.100' | |
ram = '768' # 512 throws an out of memory exception in npm install -g ember-cli |
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 | |
# Variables | |
APPENV=local | |
DBHOST=localhost | |
DBNAME=dbname | |
DBUSER=dbuser | |
DBPASSWD=test123 | |
echo -e "\n--- Mkay, installing now... ---\n" |
I hereby claim:
- I am dolcalmi on github.
- I am dolcalmi (https://keybase.io/dolcalmi) on keybase.
- I have a public key ASA4gp-F14TLoiXhO6XZJ2ZV1y44O4uX-yDH8jp-h43wkwo
To claim this, I am signing this object:
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
/* | |
* parser modified to handle only payments: please check original in https://github.com/orbitlens/stellar-notifier/blob/552b58d976080322abba8833c73567a517c6b250/logic/stream-processor.js | |
*/ | |
/* eslint-disable no-underscore-dangle */ | |
import { Transaction } from 'stellar-base'; | |
import BigNumber from 'bignumber.js'; | |
const debug = require('debug')('yourproject:stellar:parser'); |
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
const StellarSdk = require('stellar-sdk'); | |
const server = new StellarSdk.Server('https://horizon.stellar.org') | |
const source = StellarSdk.Keypair.fromSecret('SC...CU'); | |
const destination = StellarSdk.Keypair.fromPublicKey('GAD...PZR') | |
StellarSdk.Network.usePublicNetwork();; | |
server.accounts() | |
.accountId(source.publicKey()) |
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
#!/bin/sh | |
#Check the Drive Space Used by Cached Files | |
du -sh /var/cache/apt/archives | |
#Clean all the log file | |
#for logs in `find /var/log -type f`; do > $logs; done | |
logs=`find /var/log -type f` | |
for i in $logs |
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
jest.mock("dns", () => { | |
return { | |
promises: { | |
Resolver: function() { | |
return { | |
resolveTxt: () => { | |
return ["1.1.1.1","2.2.2.2/28"]; | |
} | |
}; | |
} |