Skip to content

Instantly share code, notes, and snippets.

View hoanganh25991's full-sized avatar

Anh Le hoanganh25991

  • https://originallyus.sg
  • Vietnam
View GitHub Profile
/*!
* Bootstrap v3.3.1 (http://getbootstrap.com)
* Copyright 2011-2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*//*! normalize.css v3.0.2 | MIT License | git.io/normalize */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-sizing:content-box
document.write('link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">')document.write('<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>')document.write('<h1>document.write work :)</h1>')
create table `opinions` (
`id` int unsigned not null auto_increment primary key,
`text` varchar(255) not null,
`is_right` int not null,
`question_id` int not null)
@hoanganh25991
hoanganh25991 / laravel_style_sheet.html
Last active January 1, 2016 15:39
laravel-style-sheet add a style sheet by class HTML
{{HTML::style('css/style.css')}}
//store 'style.css' in folder app/public/css/
//folder public store everything, user can review
@hoanganh25991
hoanganh25991 / style.html
Created January 1, 2016 15:07
add a style sheet to html
<link rel="stylesheet" type="text/css" href="mystyle.css">
@hoanganh25991
hoanganh25991 / remove-usb.txt
Created December 29, 2015 02:00
command-line remove-usb eject-usb
from cmd, run
>diskpart //go in to DevCon (device config cua Microsoft)
>list volume
>select volume x
>remove all dismount //now, DONE
@hoanganh25991
hoanganh25991 / input-val.js
Created December 29, 2015 00:59
jquery-val
$('.input[name="set_value"]').val('8080');
@hoanganh25991
hoanganh25991 / setTimeOut.js
Last active December 28, 2015 15:30
jquery-setTimeOut
function explode(){
alert("Boom!");
}
setTimeout(explode, 2000);
@hoanganh25991
hoanganh25991 / style.css
Created November 11, 2015 06:24
list with no border-right
#tabs ul {
margin-left: 0;
padding-left: 0;
display: inline;
} #tabs ul li {
margin-left: 0;
margin-bottom: 0;
padding: 2px 15px 5px;
border: 1px solid #000;
list-style: none;
@hoanganh25991
hoanganh25991 / index.html
Created November 11, 2015 06:08
javascript navigation bar
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Example: Intelligent Navigation Bars with JavaScript and CSS</title>
<style>
body {
margin: 0;
padding: 0 50px;
border-top: 10px solid #075a97;