Cartier LOVE窄单钻对戒指B4050700玫瑰金
手寸:48-49,最好是49,萬一沒有就48
型號:B4050700
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
root /your/root/path; | |
index index.html; | |
server_name you.server.com; |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
# http://cha1tanya.com/2013/10/26/preload-associations-with-find-by-sql.html | |
# Rails4 way | |
@users = User.find_by_sql(some_condition) | |
ActiveRecord::Associations::Preloader.new.preload(@users, :company) |
#!/bin/sh | |
echo "=== INIT UBUNTU RUBY ENV ===" | |
mkdir ~/temp | |
cd ~/temp | |
# Nginx | |
echo "=== Installing Nginx" | |
sudo apt-get -y update | |
sudo apt-get -y install curl git-core python-software-properties | |
add-apt-repository ppa:nginx/stable |
#!/bin/sh | |
# Linux 自动备份 MySQL与网站并发邮件到自已邮箱 | |
# 定义临时目录 | |
BACKUP_PATH=/tmp/autobackups | |
# 定义日期字符串 | |
DATE_NAME=`date +%y%m%d` | |
# 创建临时目录 | |
mkdir $BACKUP_PATH | |
# 打包文件 |
Cartier LOVE窄单钻对戒指B4050700玫瑰金
手寸:48-49,最好是49,萬一沒有就48
型號:B4050700
session[:return_back] ||= request.referer | |
.... | |
.... | |
redirect_to session[:return_back] |
# other config.. | |
paginate: 10 |
import sublime, sublime_plugin | |
import os | |
class DetectFileTypeCommand(sublime_plugin.EventListener): | |
""" Detects current file type if the file's extension isn't conclusive """ | |
""" Modified for Ruby on Rails and Sublime Text 2 """ | |
""" Original pastie here: http://pastie.org/private/kz8gtts0cjcvkec0d4quqa """ | |
def on_load(self, view): | |
filename = view.file_name() |