Skip to content

Instantly share code, notes, and snippets.

@jaceju
jaceju / lifecycle-of-react-component.html
Created October 15, 2014 03:05
Lifecycle of React Component
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Lifecycle of React Component</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
</head>
<body>
<div id="example"></div>
@jaceju
jaceju / gulpfile-for-laravel-42.js
Last active August 29, 2015 14:07
Gulpfile for Laravel 4.2
'use strict';
/////// COMMON ///////
var gulp = require('gulp');
var del = require('del');
var path = require('path');
var runSequence = require('run-sequence');
// Load plugins
@jaceju
jaceju / gulpfile-for-prototype.js
Last active August 29, 2015 14:11
Gulpfile for prototype based on Jade.
'use strict';
/////// COMMON ///////
var gulp = require('gulp');
var del = require('del');
var path = require('path');
var runSequence = require('run-sequence');
// Load plugins
{ "keys": ["f3"], "command": "add_to_project" },
@jaceju
jaceju / package.json
Last active August 29, 2015 14:11
package.json for gulpfile
{
"name": "prototype-template",
"version": "0.0.0",
"private": true,
"devDependencies": {
"backbone": "^1.1.2",
"browserify": "^6.3.2",
"browserify-shim": "^3.8.0",
"del": "~0.1.3",
"gulp": "~3.8.8",
@jaceju
jaceju / start_gitlab.sh
Last active August 29, 2015 14:13
Start and run GitLab on docker
#!/bin/bash
# Usage
# boot2docker up && start_gitlab
# Remove old container
remove_container(){
CONTAINER=$1
RUNNING=$(docker inspect --format="{{ .State.Running }}" $CONTAINER 2> /dev/null)
retval=$RUNNING
@jaceju
jaceju / setup_hologram.md
Last active August 29, 2015 14:14
How to setup your hologram

如何設定你的 Hologram

Hologram 是一個用來讀取樣式檔中的註解,並轉換成 Style Guide 的工具。

確認環境

註:以下操作若未特別說明,一律是在「 iTerm 」或「終端機」的命令列下輸入指令執行。

確認 Ruby 版本大於 1.9.3 ,輸入:

@jaceju
jaceju / index.html
Last active August 29, 2015 14:15
Bootstrap Basic Boilerplate
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
<link rel="stylesheet" type="text/css" href="/css/main.css">
</head>
@jaceju
jaceju / web_development_with_laravel_5.md
Last active November 1, 2024 08:20
Laravel 5 測試起手式

Web Development with Laravel 5

目標

如何在開發的過程中加入測試。

  1. Model
  2. Repository
  3. Controller
  4. Auth
@jaceju
jaceju / .bowerrc
Last active August 29, 2015 14:17
Simple Laravel Elixir workflow
{
"directory": "public/bower_components"
}