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
<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'
});

Lambda: standard

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

# Executing the lambda
l.call("foo") # => Hi foo!
<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];
@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">
@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
console.log('hello kitty!')
console.log('hello kitty!')
console.log('hello WORLD!')
@WeiChiaChang
WeiChiaChang / progress.html
Created July 26, 2017 10:08
Simple Pure CSS Progress Bar
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta chatset="UTF-8" />
<title>CSS Progress Bar</title>
<style>
.wrapper {
width: 500px;
}
@WeiChiaChang
WeiChiaChang / license-badges.md
Created July 28, 2017 16:23 — forked from lukas-h/license-badges.md
License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • Badges are made with Shields.io.
  • This badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.  
  • 🇫🇷 Cette liste en français