This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.all('/get/goto_*', [ValidateToken], (req, res, next)=>{ | |
var jwt = req.jwt | |
var jwtInfo = req.jwtInfo | |
var userIP = req.userIP | |
var secret = req.secret | |
// 從 request 進來取得的值 | |
var get = req.query; // 取得GET值 | |
var post = req.body; | |
var actCode = req.params[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.all('/get/goto_*', [ValidateToken], (req, res, next)=>{ | |
var jwt = req.jwt | |
var jwtInfo = req.jwtInfo | |
var userIP = req.userIP | |
var secret = req.secret | |
// 從 request 進來取得的值 | |
var get = req.query; // 取得GET值 | |
var post = req.body; | |
var actCode = req.params[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEFAULT_USER="sdlong" | |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = sdlong | |
email = sdlong.jeng@gmail.com.tw | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
ui = auto | |
[alias] | |
co = checkout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim:ft=zsh ts=2 sw=2 sts=2 | |
# | |
# agnoster's Theme - https://gist.github.com/3712874 | |
# A Powerline-inspired theme for ZSH | |
# | |
# # README | |
# | |
# In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://gist.github.com/1595572). | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.action_controller.asset_host = "http://assets%d.artstore.com" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Artstore</title> | |
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> | |
<%= csrf_meta_tags %> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'.html.erb': | |
'link_to': | |
'prefix': 'lt' | |
'body': '<% link_to("$1", ${2:path}) %>' | |
'link_to_delete': | |
'prefix': 'ltd' | |
'body': '<%= link_to("$1", ${2:path}, method: :delete, data: { confirm: "Are you sure?" } ) %>' | |
'link_to_icon': | |
'prefix': 'lti' | |
'body': """ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def xdd | |
puts "xdd" | |
end | |
# -*- encoding : utf-8 -*- | |
class PageView < ActiveRecord::Base | |
belongs_to :topic | |
delegate :category, to: :topic | |
delegate :board, to: :topic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I# detect `$rvm_path` | |
if [ -z "${rvm_path:-}" ] && [ -x "${HOME:-}/.rvm/bin/rvm" ] | |
then rvm_path="${HOME:-}/.rvm" | |
fi | |
if [ -z "${rvm_path:-}" ] && [ -x "/usr/local/rvm/bin/rvm" ] | |
then rvm_path="/usr/local/rvm" | |
fi | |
# load environment of current project ruby | |
if |
NewerOlder