Skip to content

Instantly share code, notes, and snippets.

View quyen91's full-sized avatar
🌴
On vacation

quyencv quyen91

🌴
On vacation
View GitHub Profile
@quyen91
quyen91 / quyen.txt
Created November 27, 2015 02:29
test
just for test
@quyen91
quyen91 / active.md
Created December 19, 2015 09:57 — forked from paulmillr/active.md
Most active GitHub users (by contributions). http://twitter.com/paulmillr

Most active GitHub users (git.io/top)

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Mon, 01 Dec 2014 00:48:25 GMT till Tue, 01 Dec 2015 00:48:25 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
 .filter(user => user.followers > 508)
@quyen91
quyen91 / manual.md
Last active January 7, 2016 04:06
for usage of vimperator
  1. F : hiển thị link và mở trong tab mới
  2. f: hiển thị link và mở trong tab hiện tại
  3. b: hiển thị các tab đang mở -> chọn số tương ứng với tab -> chuyển đến tab đó
  4. Press G then press t to go to next tab
  5. Press d to close tab active
  6. Press z m to zoom in
  7. Press z i - to zoom out
  8. Press Ctr O to back url
  9. Press g t to next tab
  10. Ctr downkey to end page
$('#myModal').on('submit', function(e) {
var rex = /^[\w-]+(\.[\w-]+)*@([a-z0-9-]+(\.[a-z0-9-]+)*?\.[a-z]{2,6}|(\d{1,3}\.){3}\d{1,3})(:\d{4})?$/
var email = $('#email');
if(!email.val()){
$('#error-show').html("<small>* Email required</small>");
e.preventDefault();
}else{
if(!rex.test(email.val())){
$('#error-show').html("<small>* Invalid email</small>");
e.preventDefault();
.modal.fade#myModal
.modal-dialog
.modal-content
.modal-header
button.close[type="button" data-dismiss="modal" aria-hidden="true"]
| ×
h4.modal-title
|
b INPUT EMAIL YOU WANT TO SHARE FAVOURITE_COUSRSES
.modal-body
div[class="alert alert-#{message_type}"]
= message
$(function(){ /* to make sure the script runs after page load */
$('.item').each(function(event){ /* select all divs with the item class */
var max_length = 150; /* set the max content length before a read more link will be added */
if($(this).html().length > max_length){ /* check for content length */
var short_content = $(this).html().substr(0,max_length); /* split the content in two parts */
var long_content = $(this).html().substr(max_length);
// Generated on 2016-04-28 using generator-angular 0.15.1
'use strict';
var gulp = require('gulp');
var ngAnnotate = require('gulp-ng-annotate');
var $ = require('gulp-load-plugins')();
var openURL = require('open');
var lazypipe = require('lazypipe');
var rimraf = require('rimraf');
var wiredep = require('wiredep').stream;
'use strict';
/**
* @ngdoc overview
* @name angularShopingCartApp
* @description
* # angularShopingCartApp
*
* Main module of the application.
*/
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<!-- build:css(.) styles/vendor.css -->
<!-- bower:css -->