Skip to content

Instantly share code, notes, and snippets.

@wandererbear
wandererbear / 00-A-PHP Tag
Last active July 7, 2017 21:12
วิธีการแทรก tag <?php ?> แต่ละแบบใน file.php
_
@wandererbear
wandererbear / 0_reuse_code.js
Created July 6, 2017 00:40
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@import compass
$icons: sprite-map("icons/*.png")
$icons-hd: sprite-map("icons-hd/*.png")
i
background: $icons
display: inline-block
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi)
background: $icons-hd
<input id="ch" type="radio" name="r" class="ch" /> <label for="ch"></label><input id="ch2" type="radio" name="r" class="ch" /><label for="ch2"></label>
<snippet>
<content><![CDATA[
<!-- Run in full-screen mode. -->
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Make the status bar black with white text. -->
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<!-- Customize home screen title. -->
<meta name="apple-mobile-web-app-title" content="Web App">
<!doctype html>
<html>
<head>
<!-- Run in full-screen mode. -->
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Make the status bar black with white text. -->
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="edu-tutors" />
<link rel="apple-touch-icon" href="wimages/touch-icon-iphone.png">
<link rel="apple-touch-icon" sizes="76x76" href="wimages/touch-icon-ipad.png">
<link rel="apple-touch-icon" sizes="120x120" href="wimages/touch-icon-iphone-retina.png">
<link rel="apple-touch-icon" sizes="152x152" href="wimages/touch-icon-ipad-retina.png">
@wandererbear
wandererbear / gist:aaca337bc6f7871d7db9
Created June 12, 2014 19:37
CSS: Normalize v3.0.1
normalize.css v3.0.1
.container {
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}
@media (min-width: 768px) {
.container {
width: 750px;
}
.center-block {
display: block;
margin-right: auto;
margin-left: auto;
}
.pull-right {
float: right !important;
}
.pull-left {
float: left !important;