Need a separate data store? Maybe a temporary one for search results? Go for it!
// app/components/search-box.js
import Ember from 'ember';
export default Ember.Component.extend({
store: Ember.inject.service('search-store'),
#!/bin/bash | |
DEV_HOST="localhost:2368" | |
PROD_HOST="blog.yellowscale.com" | |
BUILD_DEST=${1:-./build} | |
DEV_URL="http://${DEV_HOST}" | |
PROD_URL="https://${PROD_HOST}" | |
# Hop into build directory | |
pushd $BUILD_DEST > /dev/null |
/* Metaproxy | |
* The proxy that doesn't do anything | |
**/ | |
let target = { a: 1, b: 2, c: 3 } | |
let handler = new Proxy({}, { | |
get: (...args) => Reflect[args[1]](...args) | |
}) |
module Fishish | |
def kind | |
"fish#{super}" | |
end | |
end | |
module Dogish | |
def kind | |
"dog#{super}" | |
end |
alias la='ls -la' | |
alias gl='git pull' | |
alias gp='git push' | |
alias gb='git branch' | |
alias gco='git checkout' | |
alias gs='git status -sb' | |
alias gc='git commit -m' | |
alias gaa='git add -A' |
{ | |
"presets": [ | |
"es2015", | |
"es2016", | |
"es2017" | |
], | |
"plugins": [] | |
} |
require 'yaml' | |
require 'csv' | |
class PlotLaser < Processing::App | |
def setup | |
@data = YAML.load File.open("albert.yml") | |
@smooth = false | |
no_smooth | |
@frame_index = 0 |
require 'date' | |
require 'yaml' | |
data = [] | |
File.open "albert.rec" do |f| | |
f.each_slice(2) do |slice| | |
# key = items.delete_at(0).downcase | |
reads = slice.map do |line| | |
items = line.chomp.split(/\s+/) |
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: unicorn | |
# Required-Start: $local_fs $remote_fs mysql | |
# Required-Stop: $local_fs $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: unicorn initscript | |
# Description: Unicorn is an HTTP server for Rack application | |
### END INIT INFO |
div style="width:500px;height:500px;border:1px solid black;" | |
button click="browse" | |
| Browse | |
button click="upload" | |
| Upload | |
file-upload url="/files" onfile="onfile" | |
= yield |