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.PageWork=function(){function Q(){E=Main.stage.width-r*(p+t)-t;Utils.transform2(k,E-0.75*p,0);setTimeout(function(){Utils.transform2(k,0,0);Utils.transition(k,"transform","2500ms cubic-bezier(0.35,0,0.105,1)")},50);for(var a=r;a--;){var b=f[a];b.el.style.opacity=0;Utils.transform2(b.el,1.05*b.x,b.y,0.0175);var d=740*(1-a/(r-1));setTimeout(Utils.delegate(this,function(a){a.el.style.opacity=1;Utils.transform2(a.el,a.x,a.y,1);Utils.transition(a.el,"all","740ms ease-in-out")},b),d)}G=setTimeout(R, | |
2600)}function R(){Utils.resetTransition(k);g.activate(!0);v(!1)}function y(){if(!z&&(m.style.width=Main.stage.width+"px",m.style.height=Main.stage.height+"px",A=0.5*Main.stage.height,k.style.top=A+"px",g.resize(),-1!=h)){var a=w(h);g.slideTo(a.scrollX,0,1,"linear");for(var b=n.length;b--;){var d=n[b];Utils.resetTransition(d.el);Utils.transform2(d.el,d.x+a.othersOff*(d.index>h?1:-1),0)}if(q==B){var F=c.el.style[Utils.transitionName];Utils.resetTransition(c.el);a=H();Utils.transform2(c.el,a.x,a.y- | |
3,a.scale,a.angl |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Hammer.js</title> | |
<meta content='True' name='HandheldFriendly' /> | |
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css" rel="stylesheet"> | |
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1"> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<style> | |
body { padding: 0; overflow: hidden;} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Hammer.js</title> | |
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css" rel="stylesheet"> | |
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1"> | |
<style> | |
html, body, #carousel, #carousel ul, #carousel li { | |
min-height: 100%; |
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
/** To edit this background, follow this link: | |
http://svgeneration.com/generate/Ziggy?height=7&width=7&background=f6f2fa&foreground=000000&foreground-opacity=0.03& | |
*/ | |
background-color: #f6f2fa | |
background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHhtbG5zOnhsaW5rPSdodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rJyB3aWR0aD0nNycgaGVpZ2h0PSc3Jz4KCTxyZWN0IHdpZHRoPScxMDAlJyBoZWlnaHQ9JzEwMCUnIGZpbGw9JyNmNmYyZmEnLz4KCTxlbGxpcHNlIGN4PSc1MCUnIGN5PScwJScgcng9JzUwJScgcnk9JzUwJScgZmlsbC1vcGFjaXR5PScwLjAzJyBmaWxsPScjMDAwMDAwJy8+Cgk8ZWxsaXBzZSBjeD0nMCUnIGN5PScxMDAlJyByeD0nNTAlJyByeT0nNTAlJyBmaWxsLW9wYWNpdHk9JzAuMDMnIGZpbGw9JyMwMDAwMDAnLz4KCTxlbGxpcHNlIGN4PScxMDAlJyBjeT0nMTAwJScgcng9JzUwJScgcnk9JzUwJScgZmlsbC1vcGFjaXR5PScwLjAzJyBmaWxsPScjMDAwMDAwJy8+Cjwvc3ZnPg==') |
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
/** To edit this background, follow this link: | |
http://svgeneration.com/generate/Oriental-Roof?scale=5&color-1=efd5f5&fill-1=ffffff&color-2=e3c7f5&fill-2=ffffff&color-3=eac5f0&fill-3=ffffff&color-4=e5d6f0&fill-4=ffffff&color-5=e9d7f2&fill-5=ffffff& | |
*/ | |
background-color: #e9d7f2 | |
background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHhtbG5zOnhsaW5rPSdodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rJyB3aWR0aD0nMTQwJyBoZWlnaHQ9JzI1Jz4KCTxkZWZzPgoJCTxnIGlkPSdjdXJ2ZXMnPgoJCQk8cGF0aCBmaWxsPScjZmZmZmZmJyBzdHJva2U9JyNlZmQ1ZjUnIGQ9J00wIDIwYzIwLDIwLCA1MCwyMCA3MCwwdi0xMDBoLTcweicvPgoJCQk8cGF0aCBmaWxsPScjZmZmZmZmJyBzdHJva2U9JyNlM2M3ZjUnIGQ9J00wIDE1YzIwLDIwLCA1MCwyMCA3MCwwJy8+CgkJCTxwYXRoIGZpbGw9JyNmZmZmZmYnIHN0cm9rZT0nI2VhYzVmMCcgZD0nTTAgMTBjMjAsMjAsIDUwLDIwIDcwLDAnLz4KCQkJPHBhdGggZmlsbD0nI2ZmZmZmZicgc3Ryb2tlPScjZTVkNmYwJyBkPSdNMCA1YzIwLDIwLCA1MCwyMCA3MCwwJy8+CgkJCTxwYXRoIGZpbGw9JyNmZmZmZmYnIHN0cm9rZT0nI2U5ZDdmMicgZD0nTTAgMGMyMCwyMCwgNTAsMjAgNzAsMCcvPgoJCTwvZz4KCTwvZGVmcz4KCTxyZWN0IHdpZH |
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
upstream imc_backend { | |
server unix:/data/app/imc/current/tmp/sockets/unicorn.sock fail_timeout=0; | |
} | |
server { | |
listen 8081; | |
server_name imc.unionpaysmart.com; | |
access_log /var/log/nginx/imc-uionpaysmart-com-access.log main; | |
error_log /var/log/nginx/imc-unionpaysmart-com-error.log; |
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
/** To edit this background, follow this link: | |
http://svgeneration.com/generate/Eave-Light Tiles?size=65&fill=e8bff5&edge-size=2&edge=ba7cd6&shadow=712dad& | |
*/ | |
background-color: #e8bff5 | |
background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxMDAlJyBoZWlnaHQ9JzEwMCUnPgoJPGRlZnM+CgkJPHBhdHRlcm4gaWQ9J3RpbGUnIHBhdHRlcm5Vbml0cz0ndXNlclNwYWNlT25Vc2UnIHdpZHRoPSc2NScgaGVpZ2h0PSc2NScgdmlld0JveD0nMCAwIDUwIDUwJz4KCQkJPGxpbmUgeDE9JzEnIHkxPScwJyB4Mj0nNTEnIHkyPSc1MCcgc3Ryb2tlPScjNzEyZGFkJyBzdHJva2Utd2lkdGg9JzInLz4KCQkJPGxpbmUgeDE9JzQ5JyB5MT0nMCcgeDI9Jy0xJyB5Mj0nNTAnIHN0cm9rZT0nIzcxMmRhZCcgc3Ryb2tlLXdpZHRoPScyJy8+CgkJCTxsaW5lIHgxPSc1MCcgeTE9JzAnIHgyPScwJyB5Mj0nNTAnIHN0cm9rZT0nI2JhN2NkNicgc3Ryb2tlLXdpZHRoPScyJy8+CgkJCTxsaW5lIHgxPScwJyB5MT0nMCcgeDI9JzUwJyB5Mj0nNTAnIHN0cm9rZT0nI2JhN2NkNicgc3Ryb2tlLXdpZHRoPScyJy8+CgkJPC9wYXR0ZXJuPgoJCTxyYWRpYWxHcmFkaWVudCBpZD0nbCcgY3g9JzUwJScgY3k9JzIwMCUnIGZ5PScwJyByPScyMDElJz4KCQkJPHN0b3Agb2Zmc2V0PScwJScgc3R5bGU9J3N0b3AtY29sb3I6I2ZmZjsgc3 |
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
def self.bing(text) | |
url = "http://cn.bing.com/dict/search?q=#{text}" | |
@client = Mechanize.new{ |agent| | |
agent.user_agent_alias = "Mac Safari" #"Windows Mozilla" | |
} | |
@client.get(url) do |page| | |
#p (page/'div.sen_en').collect{|x| x.text} | |
p (page/'div.se_li1').map{|x| | |
{ | |
en: x.at(".sen_en").text, |
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
$(".leaf").transition | |
scale: '0.5' | |
background: "#999" | |
800 | |
"easeOutBack" | |
.transition | |
perspective: '800px' | |
scale: '0.6' | |
transition: "1s" | |
rotateY: "-20deg" |
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 window.Melody extends AudioletGroup | |
constructor: (audiolet, frequency) -> | |
AudioletGroup.apply(@, [audiolet, 2, 1]) | |
@sine = new Sine(@audiolet, frequency) | |
@modulator = new Saw(@audiolet, 2 * frequency) | |
@modulatorMulAdd = new MulAdd(@audiolet, frequency / 2,frequency) | |
@triangle = new Triangle(@audiolet, frequency) | |
@gain = new Gain(@audiolet) |