100, :continue
This file contains hidden or 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
http { | |
passenger_root /home/apps/.rvm/gems/ruby-2.3.7/gems/passenger-5.3.7; | |
passenger_ruby /home/apps/.rvm/gems/ruby-2.3.7/wrappers/ruby; | |
include mime.types; | |
default_type application/octet-stream; | |
sendfile on; | |
keepalive_timeout 65; |
This file contains hidden or 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
<div id="how-to"> | |
<div class="mobile-tab fixed-menu"> | |
<div class="rent-steps-tab">租借步驟</div> | |
<div class="why-spinwear-tab">WHY SPINWEAR</div> | |
<div class="physical-store-tab">實體店&優惠</div> | |
</div> | |
<div class="rent-steps"> | |
<div class="step1"> | |
<div class="step1-texts"> | |
<div class="title">STEP1 線上挑選</div> |
This file contains hidden or 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
window.setInterval(() => { | |
let b = parseInt($(".arrow-down").css("bottom")) - 1; | |
let o = parseFloat($(".arrow-down").css("opacity")) - 1 / 30; | |
if(b < 0){ | |
b = 30; | |
o = 1; | |
} | |
$(".arrow-down").css({ | |
bottom: b + "px", | |
opacity: o |
This file contains hidden or 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 User | |
has_many :photos | |
end | |
class Photo | |
belongs_to :user | |
def next | |
user.photos.where("id > ?", id).first |
This file contains hidden or 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
// https://fonts.google.com/earlyaccess#Noto+Sans+TC | |
// 思源中文字體 | |
@import url(//fonts.googleapis.com/earlyaccess/notosanstc.css); | |
@import url(//fonts.googleapis.com/earlyaccess/notosanssc.css); | |
* { | |
font-family: 'Noto Sans TC', 'Noto Sans SC', 'Helvetica'; | |
line-height: 1.5; | |
} |
This file contains hidden or 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
;| | |
TLEN.LSP - Total LENgth of selected objects | |
(c) 1998 Tee Square Graphics | |
|; | |
(defun C:TLEN (/ ss tl n ent itm obj l) | |
(setq ss (ssget) | |
tl 0 |
This file contains hidden or 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
;;POLYAREA.LSP - (c) 1997-2001 Tee Square Graphics | |
;; | |
;; Calculates the area of one or more closed polylines and | |
;; displays the result in an AutoCAD Alert Window. | |
;; | |
(defun C:POLYAREA (/ a ss n du) | |
(setq a 0 | |
du (getvar "dimunit") | |
ss (ssget '((0 . "*POLYLINE")))) | |
(if ss |
This file contains hidden or 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
How to setup Heroku Hostname SSL with GoDaddy SSL Certificate and Zerigo DNS | |
Heroku recently added an exciting new 'Hostname SSL' option. This option offers the broad compatibility of IP-based SSL, but at 1/5 the price ($20 / month at the time of this writing). | |
The following tutorial explains how to use Heroku's new 'Hostname SSL' option on your Heroku project. Before we begin, let's list what we're using here: | |
* Heroku Hostname SSL | |
* GoDaddy Standard SSL Certificate | |
* Zerigo DNS |
This file contains hidden or 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
# dfsdf | |
def gogogo | |
puts 'hello' | |
end |
NewerOlder