Skip to content

Instantly share code, notes, and snippets.

View tranquangchau's full-sized avatar

Trần Quang Châu tranquangchau

View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>HTML5 File API</title>
<style>
body {
font: 14px/1.5 helvetica-neue, helvetica, arial, san-serif;
padding:10px;
}
<?php function vb_registration_form() { ?>
<div class="vb-registration-form">
<form class="form-horizontal registraion-form" role="form">
<div class="form-group">
<label for="vb_name" class="sr-only">Your Name</label>
<input type="text" name="vb_name" id="vb_name" value="" placeholder="Your Name" class="form-control" />
</div>
@tranquangchau
tranquangchau / page-Signup.php
Created March 4, 2017 17:02
wp Signup basic
<?php
// Template Name: -- Signup
// get header.php
get_header();
// get theme customizer data
$comments_general = get_option('royal_comments_general');
if ( is_user_logged_in() ) {
//echo 'Welcome, registered user!';
//wp_redirect(get_site_url() ); exit;
@tranquangchau
tranquangchau / function.php
Last active March 4, 2017 15:12
wp login page
<?php
add_action("wp_ajax_c_check_login", "c_check_login");
add_action("wp_ajax_nopriv_c_check_login", "c_check_login");
function c_check_login(){
//echo 'syvmit';
//var_dump($_POST);die;
$username=$_POST['uname'];
@tranquangchau
tranquangchau / canvast update img.html
Created February 16, 2017 09:53
zoom + zoom - rotation right rotation left flip H flip W effect1 effect2 effect3
<style>
#canvas{border: 1px solid;}
</style>
<button id="zoomplus" onclick="change(1)">zoom +</button>
<button id="zoomsub" onclick="change(2)">zoom -</button>
<button id="rotation_r" onclick="change(3)">rotation right</button>
<button id="rotation_l" onclick="change(4)">rotation left</button>
<button id="flipH" onclick="change(5)">flip H</button>
<button id="flipW" onclick="change(6)">flip W</button>
@tranquangchau
tranquangchau / go.js
Created February 9, 2017 04:48
full version :) 414
This file has been truncated, but you can view the full file.
/*
* GoJS v1.6.24 JavaScript Library for HTML Diagrams
* Northwoods Software, https://www.nwoods.com/
* GoJS and Northwoods Software are registered trademarks of Northwoods Software Corporation.
* Copyright (C) 1998-2017 by Northwoods Software Corporation. All Rights Reserved.
* THIS SOFTWARE IS LICENSED. THE LICENSE AGREEMENT IS AT: https://gojs.net/1.6.24/doc/license.html.
*/
(function(window) {
var g, ea = {};
if (!window.document || void 0 === window.document.createElement("canvas").getContext) throw window.console && window.console.log("The HTML Canvas element is not supported in this browser,or this browser is in Compatibility mode."), Error("The HTML Canvas element is not supported in this browser,or this browser is in Compatibility mode.");
<link crossorigin="anonymous" href="https://assets-cdn.github.com/assets/github-ac9c637b29122a4699fcd4d205b2d09efa4d4962d369158f7d907123061143f1.css" rel="stylesheet">
<link crossorigin="anonymous" href="https://assets-cdn.github.com/assets/frameworks-a44e0bdd1666101af23963e4027cd7a0a1eea1339e0e7422524f2e7f3900e86b.css" rel="stylesheet">
<marquee direction="up" SCROLLDELAY=0>
<div itemprop="text" class="blob-wrapper data type-javascript">
</marquee>
This file has been truncated, but you can view the full file.
/*
* GoJS v1.6.24 JavaScript Library for HTML Diagrams
* Northwoods Software, https://www.nwoods.com/
* GoJS and Northwoods Software are registered trademarks of Northwoods Software Corporation.
* Copyright (C) 1998-2017 by Northwoods Software Corporation. All Rights Reserved.
* THIS SOFTWARE IS LICENSED. THE LICENSE AGREEMENT IS AT: https://gojs.net/1.6.24/doc/license.html.
*/
(function(window) {
var g, ea = {};
if (!window.document || void 0 === window.document.createElement("canvas").getContext) throw window.console && window.console.log("The HTML Canvas element is not supported in this browser,or this browser is in Compatibility mode."), Error("The HTML Canvas element is not supported in this browser,or this browser is in Compatibility mode.");
<html>
<head>
<script type="text/javascript">
// Your Client ID can be retrieved from your project in the Google
// Developer Console, https://console.developers.google.com
// var CLIENT_ID = '731293669843-6un5751kqk48jep4floe46qpdehbeh3n.apps.googleusercontent.com';
var CLIENT_ID = '131875730015-bpooifah4pvg2gj60rq2i11gkivdiup6.apps.googleusercontent.com';
var SCOPES = ['https://www.googleapis.com/auth/drive.metadata.readonly'];
@tranquangchau
tranquangchau / README.md
Created January 7, 2017 19:25 — forked from nicerobot/README.md
Create Google Drive webViewLink folders via JavaScript.

Create Google Drive webViewLink folders via JavaScript (You must change CLIENT_ID before this will work.)

These folders are suitable for publishing websites. Once the folder is created, simply upload index.html and other resources to the folder.