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
source 'http://rubygems.org' | |
# source 'http://ruby.taobao.org' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
gem 'rails', '4.0.1' | |
# | |
# Use postgresql as the database for Active Record | |
gem 'pg' | |
# for heroku deployment |
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
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
/* Styles */ | |
} | |
/* Smartphones (landscape) ----------- */ | |
@media only screen | |
and (min-width : 321px) { |
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
zh-CN: | |
admin: | |
home: | |
name: "首页" | |
pagination: | |
previous: "« 上一页" | |
next: "下一页 »" | |
truncate: "…" | |
misc: | |
filter_date_format: "mm/dd/yy" # a combination of 'dd', 'mm' and 'yy' with any delimiter. No other interpolation will be done! |
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
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){ | |
$('body').removeClass("force-desktop"); | |
} else { | |
$('.chzn-select').chosen(); | |
} |
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
class PaperTrailHistory < PaperTrail::Version | |
def self.compose_query(params) | |
condition = "" | |
condition << | |
(params[:type].present? ? "whodunnit NOT IN (?)" : "whodunnit IN (?)") | |
condition << " AND object_changes ILIKE '%#{params[:q]}%'" if params[:q].present? |
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
<script type="text/javascript"> | |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | |
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | |
ga('create', 'UA-55682644-1', 'auto', { | |
'allowLinker': true | |
}); | |
ga('require', 'linker'); |
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
andy@Andys-Macbook-Pro~/workspace/go.projects/src/github.com/moscn/picoshop(users-and-orders):bee run | |
2015/07/06 17:50:11 [INFO] Uses 'picoshop' as 'appname' | |
2015/07/06 17:50:11 [INFO] Initializing watcher... | |
2015/07/06 17:50:11 [TRAC] Directory(/Users/andy/workspace/go.projects/src/github.com/moscn/picoshop/Godeps/_workspace/src/github.com/astaxie/beego) | |
2015/07/06 17:50:11 [TRAC] Directory(/Users/andy/workspace/go.projects/src/github.com/moscn/picoshop/Godeps/_workspace/src/github.com/astaxie/beego/cache) | |
2015/07/06 17:50:11 [TRAC] Directory(/Users/andy/workspace/go.projects/src/github.com/moscn/picoshop/Godeps/_workspace/src/github.com/astaxie/beego/cache/memcache) | |
2015/07/06 17:50:11 [TRAC] Directory(/Users/andy/workspace/go.projects/src/github.com/moscn/picoshop/Godeps/_workspace/src/github.com/astaxie/beego/cache/redis) | |
2015/07/06 17:50:11 [TRAC] Directory(/Users/andy/workspace/go.projects/src/github.com/moscn/picoshop/Godeps/_workspace/src/github.com/astaxie/beego/config) | |
2015/07/06 17:50:11 [TRAC] Dir |
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
#!/bin/bash | |
############################################### | |
# To use: | |
# https://raw.github.com/gist/2776351/??? | |
# chmod 777 install_postgresql.sh | |
# ./install_postgresql.sh | |
############################################### | |
echo "*****************************************" | |
echo " Installing PostgreSQL" | |
echo "*****************************************" |
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
require 'mina/rails' | |
require 'mina/git' | |
require 'mina/rvm' | |
require 'mina/puma' | |
set :application_name, 'myapp' | |
set :domain, 'myapp.com' | |
set :deploy_to, '/home/admin/myapp' | |
set :repository, '[email protected]:lnikell/myapp.git' |
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> | |
<meta charset="UTF-8" /> | |
<title>Twitter Archive Browser</title> | |
<script src="https://unpkg.com/react@16/umd/react.development.js"></script> | |
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script> | |
<script src="https://unpkg.com/[email protected]/babel.min.js"></script> | |
<style> |