Skip to content

Instantly share code, notes, and snippets.

View WeiChiaChang's full-sized avatar
🐻
How bear you

WesleyZen WeiChiaChang

🐻
How bear you
  • Planet Earth
  • Tainan, Taiwan
View GitHub Profile
console.log('hello WORLD!')
console.log('hello kitty!')
console.log('hello kitty!')
@WeiChiaChang
WeiChiaChang / media-query.css
Created June 24, 2017 08:23 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@WeiChiaChang
WeiChiaChang / index.html
Created May 14, 2017 02:37
JS Bin [Vue 打 API] // source http://jsbin.com/rivuboy
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="[Vue 打 API]">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<div id="watch-example">
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/assets/css/department-guide.css">
<style>.guide img { max-width: 380px;margin-bottom: 15px;}</style>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script>
/*
(function(t,u,r,b,o,s){
o=document.createElement(u);
o.setAttribute('data-turbojs', b);
o.async=1;o.src=r;
s=t.getElementsByTagName(u)[0];

Lambda: standard

# Creating a lambda
l = lambda { |name| "Hi #{name}!" }

# Executing the lambda
l.call("foo") # => Hi foo!
<script>
<!--
$('#you').before("<iframe src='http://www.youtube.com/embed/y9tyxrg0rxg' id='ytplayer' type='text/html' width='100%' height='500' frameborder='0'/>");
var id = setInterval(function() {
$('#ytplayer').attr({
'width': '100%',
'height': '500'
});