Skip to content

Instantly share code, notes, and snippets.

View justin3737's full-sized avatar
🎯
Focusing

Justin justin3737

🎯
Focusing
View GitHub Profile
.wrap {
border : 1px solid #ccc;
//transform : scale(3,3);
//-webkit-transform : scale(3,3);
transform-origin : 0,0;
box-sizing: border-box;
-webkit-box-sizing: border-box;
position:relative;
};
@justin3737
justin3737 / index.html
Created October 7, 2014 16:09
輸出下載 excel // source http://jsbin.com/todece/11
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<meta charset="utf-8">
<title>輸出下載 excel</title>
<script type="text/javascript" src="http://oss.sheetjs.com/js-xlsx/xlsx.core.min.js"></script>
<script type="text/javascript" src="https://rawgithub.com/eligrey/Blob.js/master/Blob.js"></script>
<script type="text/javascript" src="https://rawgithub.com/eligrey/FileSaver.js/master/FileSaver.js"></script>
</head>
@justin3737
justin3737 / Front-end-Developer-Interview-Questions-TC.md
Created November 18, 2015 14:37 — forked from hanksudo/Front-end-Developer-Interview-Questions-TC.md
Front-end-Developer-Interview-Questions - 前端工程師面試問題集(繁體中文版)

前端工程師面試問題集

@版本 2.0.0

譯注:此翻譯版,主要給不能流利的讀英文的人看,相關專有名詞還是保留原文。翻譯不好地方請協助pull request.

此repository包含了一些前端開發的面試問題,來審查一個有潛力的面試者。這並不是建議你對同一個面試者問上所有的問 (那會花費好幾小時)。從列表中挑幾個題目,應該就夠幫助你審查面試者是否擁有你需要的技能。

Rebecca MurpheyBaseline For Front-End Developers 也是一篇很棒且值得讀的文章在你開始面試之前。

@justin3737
justin3737 / example 1
Created December 22, 2015 06:54 — forked from duncan60/example 1
es7 immutable
let NBA = {
season : {
year : '2017',
start: '2016-10',
end : '2017-6',
state: 'active'
},
players: [
{
name : 'duncan',
@justin3737
justin3737 / redux demo js
Created January 7, 2016 11:06 — forked from duncan60/redux demo js
redux practice
//https://egghead.io/lessons/javascript-redux-the-single-immutable-state-tree
//redux
const createStore = (reducer, initialState) => {
let state = initialState;
let listeners = [];
const getState = () => state;
const dispatch = (action) => {
state = reducer(state, action);
let languages = {
'zh-TW':'繁中',
'zh-CN':'簡中',
'en-US':'英文'
};
console.log(Object.keys(languages));
//["zh-TW","zh-CN","en-US"]
console.log(Object.values(languages));
//["繁中","簡中","英文"]
Video Tutorial:
https://egghead.io/series/getting-started-with-redux
Lesson 05:
Redux: Writing a Counter Reducer with Tests
http://jsbin.com/piqapi/edit?js,console
Lesson 06:
Redux: Store Methods: getState(), dispatch(), and subscribe()
http://jsbin.com/jadunek/edit?js,console
function reducer(state = [], action) {
switch (action.type) {
case 'ADD_ATTENDEE':
// Return a new array with old state and added attendee.
return [{
name: action.name,
color: action.color
},
...state
];
@justin3737
justin3737 / app.js
Created August 20, 2016 11:13 — forked from Turbo87/app.js
webpack + font-awesome test
require('font-awesome/css/font-awesome.css');
document.body.innerHTML = '<i class="fa fa-fw fa-question"></i>';
var monoose = require('mongoose');
mongoose.connect('mongodb://localhost/member3');
/* 新增Add */
var Product = mongoose.model('Product', {
title: String,
price: Number
});