This file contains 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> | |
<meta name="description" content="Coursera clone" /> | |
<script src="http://code.jquery.com/jquery.min.js"></script> | |
<link href="http://getbootstrap.com/2.3.2/assets/css/bootstrap.css" rel="stylesheet" type="text/css" /> | |
<link href="http://getbootstrap.com/2.3.2/assets/css/bootstrap-responsive.css" rel="stylesheet" type="text/css" /> | |
<script src="http://getbootstrap.com/2.3.2/assets/js/bootstrap.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> |
This file contains 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> | |
<meta name="description" content="Coursera clone" /> | |
<script src="http://code.jquery.com/jquery.min.js"></script> | |
<link href="http://getbootstrap.com/2.3.2/assets/css/bootstrap.css" rel="stylesheet" type="text/css" /> | |
<link href="http://getbootstrap.com/2.3.2/assets/css/bootstrap-responsive.css" rel="stylesheet" type="text/css" /> | |
<script src="http://getbootstrap.com/2.3.2/assets/js/bootstrap.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> |
This file contains 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
/** | |
* Shiny modified this file. | |
* Change Log: | |
* 1. Support TAB indent/outdent | |
* 2. Remote marked from this file | |
* | |
* EpicEditor - An Embeddable JavaScript Markdown Editor (https://github.com/OscarGodson/EpicEditor) | |
* Copyright (c) 2011-2012, Oscar Godson. (MIT Licensed) | |
*/ |
This file contains 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
<?php | |
function __fgetcsv(&$handle, $length = null, $d = ",", $e = '"') { | |
$d = preg_quote($d); | |
$e = preg_quote($e); | |
$_line = ""; | |
$eof=false; | |
while ($eof != true) { | |
$_line .= (empty ($length) ? fgets($handle) : fgets($handle, $length)); | |
$_line = mb_convert_encoding($_line, "UTF-8", "BIG-5"); // convert big5 to utf8 | |
$itemcnt = preg_match_all('/' . $e . '/', $_line, $dummy); |
This file contains 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
+(function(){ | |
"use strict"; | |
// only for google.com | |
if (!window.location.host.match(/google.com/)) { | |
return; | |
} | |
var input = document.querySelector("input[name=q]"); |
This file contains 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> | |
<script src="http://blueimp.github.io/JavaScript-MD5/js/md5.js"></script> | |
<script src="http://fb.me/react-with-addons-0.13.1.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> |
This file contains 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
Show hidden characters
{ | |
"added_words": // 新增到字典的單字 | |
[ | |
"php", | |
"href", | |
"td" | |
], | |
"always_show_minimap_viewport": true, // 永遠顯示 minimap 目前顯示的區域 | |
"binary_file_patterns": | |
[ |
This file contains 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
<?php | |
header('Access-Control-Allow-Origin: *'); | |
header('Cache-Control: private'); | |
header('Pragma: no-cache'); | |
Header('Connection: Keep-Alive'); | |
Header('Proxy-Connection: Keep-Alive'); | |
Header('Content-Type: application/json;charset=UTF-8'); | |
// generate 2k garbage data | |
foreach (range(0, 2048) as $key => $value) { |
This file contains 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
brew install mkcert | |
brew install nss | |
mkcert -install |
This file contains 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
mkcert --cert-file localhost.pem --key-file localhost-key.pem localhost |
OlderNewer