Skip to content

Instantly share code, notes, and snippets.

@Wcc723
Wcc723 / default.conf
Created June 7, 2018 08:09
NGiNX Configuration for Vue-Router in HTML5 Mode
server {
listen 80 default_server;
listen [::]:80 default_server;
root /your/root/path;
index index.html;
server_name you.server.com;
@Wcc723
Wcc723 / tw-zipcode.json
Created November 28, 2017 12:24 — forked from fantasywind/tw-zipcode.json
[台灣][郵遞區號][中華民國][Taiwan][Zipcode][3碼] JSON
{
"基隆市": {
"仁愛區": "200",
"信義區": "201",
"中正區": "202",
"中山區": "203",
"安樂區": "204",
"暖暖區": "205",
"七堵區": "206"
},
{
"data":[
{
"heading": "前端工程師簡介",
"list": [
{
"name": "如何自學前端開發",
"url": "https://www.facebook.com/groups/358503154261390/permalink/696992570412445/"
},
{
// Variables
//
// Copy settings from this file into the provided `_custom.scss` to override
// the Bootstrap defaults without modifying key, versioned files.
// Table of Contents
//
// Colors
// Options
var http = require('http');
// var buffer = require('buffer');
var url = "/ws/Data/AQX/?$orderby=SiteName&$skip=0&$top=1000&format=json"
var Options = {
R1: {
hostname: 'opendata.epa.gov.tw',
path: url,
method: 'GET',
@Wcc723
Wcc723 / angularService.js
Last active August 30, 2015 08:55
Angular
angular.module('app')
.provider('buy', [function () {
// 可以被初始化設定的
var vm = this;
vm.defaults = {};
vm.defaults.counter = 1;
this.$get = [function() {
// 要處理的
// 還可以用遞包技巧
@Wcc723
Wcc723 / SassMeister-input-HTML.haml
Created July 18, 2014 09:25
Generated by SassMeister.com.
.container
.left
.content