介紹協助提昇 F2E Code Style 的兩個工具。
josephj@faria
#!/bin/bash | |
# compiled from https://docs.docker.com/engine/installation/linux/debian/#/debian-jessie-80-64-bit | |
sudo apt-get update | |
sudo apt-get dist-upgrade -y | |
sudo apt-get install apt-transport-https ca-certificates -y | |
sudo sh -c "echo deb https://apt.dockerproject.org/repo debian-jessie main > /etc/apt/sources.list.d/docker.list" | |
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D |
require 'net/https' | |
require 'json' | |
require 'openssl' | |
=begin | |
UUID = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | |
OS = "<OS NAME> <VERSION> - <ARCH>" | |
USERNAME = "YOUR USERNAME" | |
PASSWORD = "YOUR PASSWORD" | |
TARGET_FONT = "jf-jinxuan-Medium" |
cask_args appdir: '/Applications' | |
tap 'caskroom/cask' | |
tap "homebrew/cask-fonts" | |
tap 'caskroom/versions' | |
tap "homebrew/bundle" | |
tap "homebrew/core" | |
tap "homebrew/services" | |
tap "hsatac/toybox" | |
brew "coreutils" | |
brew "gnu-sed" |
all: srv.c | |
g++ srv.c /home/eerihug/dev/BakkaLinux/root/usr/local/lib/libzmq.a -lpthread -lrt -o srv | |
g++ cli.c /home/eerihug/dev/BakkaLinux/root/usr/local/lib/libzmq.a -lpthread -lrt -o cli | |
clean: | |
rm cli | |
rm srv |
介紹協助提昇 F2E Code Style 的兩個工具。
josephj@faria
<script type="text/ng-template" id="one.html"> | |
<div>This is first template</div> | |
</script> | |
<script type="text/ng-template" id="two.html"> | |
<div>This is second template</div> | |
</script> |
public class EatMemory | |
{ | |
public static void main (String[] args) throws Exception | |
{ | |
java.util.Vector v = new java.util.Vector(); | |
int count = 1024; | |
while(count-->0) | |
{ | |
v.add(new byte[1024 * 1024]); |
class PostsController < ActionController::Base | |
def create | |
Post.create(post_params) | |
end | |
def update | |
Post.find(params[:id]).update_attributes!(post_params) | |
end | |
private |
/* Imports a commonjs style javascript file with loadSubScrpt | |
* By Erik Vold <erikvvold@gmail.com> http://erikvold.com/ | |
* | |
* @param src (String) | |
* The url of a javascript file. | |
*/ | |
(function(global) { | |
var modules = {}; | |
global.require = function require(src) { | |
if (modules[src]) return modules[src]; |