- A two-way binding is set up between
value
and the text in the editor. - Configure Ace in the
aceInit
callback.
Template
// creates a graph representation of the input list | |
function createRelationshipGraph(inputList, idsOnly) { | |
const graph = {}; | |
inputList.forEach(curNode => { | |
const { id: curId, parent_id: parentId } = curNode; | |
const parentDoesNotExist = typeof graph[parentId] === "undefined"; | |
const curDoesNotExist = typeof graph[curId] === "undefined"; | |
const parentIsTopLevel = parentId === null; |
<script> | |
/** | |
* Provides a fake analytics object that sends all calls to the parent window for processing | |
*/ | |
var analytics = (function() { | |
var eventQueue = []; | |
// Send the events to the frame if it's ready. | |
function flush(method, args) { | |
while (eventQueue.length) { |
# SSL self signed localhost for rails start to finish, no red warnings. | |
# 1) Create your private key (any password will do, we remove it below) | |
$ openssl genrsa -des3 -out server.orig.key 2048 | |
# 2) Remove the password | |
$ openssl rsa -in server.orig.key -out server.key |
cd ~ | |
# app deps | |
sudo yum -y install git | |
# erlang deps | |
sudo yum -y groupinstall "Development Tools" | |
sudo yum -y install ncurses-devel | |
sudo yum install -y fop | |
sudo yum install -y openssl-devel |
#!/bin/sh | |
# script to convert mysql schema to be compatible with data warehouse software | |
# make sure that s3cmd and maatkit utility is installed | |
db_name=${1:-'test'} | |
> /root/$db_name.txt | |
temppath='/mnt/data/pdump1' | |
host='localhost' | |
user='maatkit' |
# Remove this for Arel v7.0 | |
module Arel | |
module Nodes | |
class Case < Arel::Nodes::Node | |
include Arel::OrderPredications | |
include Arel::Predications | |
include Arel::AliasPredication | |
attr_accessor :case, :conditions, :default |
#!/bin/bash | |
sudo rm -Rf /Applications/VMware\ Fusion.app | |
sudo rm -Rf /Library/Application\ Support/VMware | |
sudo rm -Rf /Library/Application\ Support/VMware\ Fusion | |
sudo rm -Rf /Library/Preferences/VMware\ Fusion | |
rm -Rf ~/Library/Application\ Support/VMware\ Fusion | |
rm -Rf ~/Library/Caches/com.vmware.fusion | |
rm -Rf ~/Library/Preferences/com.vmware.fusion* |
#!/bin/bash | |
OUT=$1 | |
shift | |
# Usage: ./mergepdf OUTPUT file1 file2 file3 ... | |
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=$OUT $@ |
let module = macro { | |
case {_ | |
$name | |
import $params (,) ... | |
} => { | |
letstx $name_str = [makeValue(unwrapSyntax(#{$name}), #{here})]; | |
return #{ | |
angular.module($name_str, [$params (,) ...]) | |
}; | |
} |