Skip to content

Instantly share code, notes, and snippets.

View vitqst's full-sized avatar
🎯
Focusing

vitqst

🎯
Focusing
View GitHub Profile
/**
* This code will be remove your friend from list without unfriend him/her
* <your_friend_id>
*/
setTimeout(function(){
$('li[data-id="<your_friend_id>"]').remove();
console.log('Remove Liinh From Your Friend');
}, 1000);
<?php
generalData();
function generalData()
{
$id = 26;
$max = 100000000000000000000;
$(document).ready(function(){
const regex = /(.*)(?=in)/g;
var nowUrl = window.location.href;
if(nowUrl.indexOf('/sizes/')){
$('#allsizes-photo').children('div').remove();
$('#allsizes-photo').children('img').each(function(){
var $this = $(this);
$this.wrap('<a href="' + $this.attr('src') + '" download />')
});
$(document).ready(function(){
$('#allsizes-photo').children('div').remove();
$('#allsizes-photo').children('img').each(function(){
var $this = $(this);
$this.wrap('<a href="' + $this.attr('src') + '" download />')
});
});
var srcImg = $('#allsizes-photo').children('img').attr('src');
var nowUrl = window.location.href;
if(nowUrl.indexOf('sizes/k') > 0){
if(typeof srcImg !== 'undefined'){
openInNewTab(srcImg);
}
}
function openInNewTab(url) {
var win = window.open(url, '_blank');
{
"data": [
[
"Tiger Nixon",
"System Architect",
"Edinburgh",
"5421",
"2011/04/25",
"$320,800"
],
@vitqst
vitqst / index.html
Created February 8, 2017 06:56
gui cho vi trinh
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
</head>
<body>
<table class="pricing" summary="BotDetect CAPTCHA Enterprise License information table">
<tbody><tr id="price_table_header" class="pricing">
<td id="price_table_header" class="license" style="vertical-align:middle;width:96px" rowspan="2">License<br>Type</td>
<td id="price_table_header" class="license" colspan="4">Technologies<br>(select one or more)</td>
<td id="price_table_header" class="license" colspan="4" style="vertical-align:middle;">Annual License Subscription<br>(including Support &amp; Maintenance)</td>
package com.the360lifechange;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
public class MainActivity extends AppCompatActivity {
public static String TAG = MainActivity.class.getSimpleName().toUpperCase();
@Override
protected void onCreate(Bundle savedInstanceState) {
package com.the360lifechange.service;
/**
* Created by thanhcs94 on 8/1/2016.
*/
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.media.RingtoneManager;
import android.net.Uri;
@vitqst
vitqst / gist:a461c5cb86a6d3b09af3b89d7eceb0a2
Created July 31, 2016 11:03 — forked from prime31/gist:5675017
Simple PHP script showing how to send an Android push notification. Be sure to replace the API_ACCESS_KEY with a proper one from the Google API's Console page. To use the script, just call scriptName.php?id=THE_DEVICE_REGISTRATION_ID
<?php
// API access key from Google API's Console
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' );
$registrationIds = array( $_GET['id'] );
// prep the bundle
$msg = array