Skip to content

Instantly share code, notes, and snippets.

View vitqst's full-sized avatar
🎯
Focusing

vitqst

🎯
Focusing
View GitHub Profile
$(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
@vitqst
vitqst / asb
Last active May 14, 2016 20:44
{"status":0,"value":7,"msg":"OK","gift_id":"10","arrGift":{"1":"6","2":"2","3":"10","4":"5","5":"7","6":"3","7":"8","8":"4","9":"9","10":"1"},"nextTime":"2016\/05\/16 00:00:00","type":"buy","timesBuy":0,"typeGift":"1","totalAbalone":14,"startTime":"2016-05-15 03:35:40"}
set mypath=%~dp0
REM Create DIR
for %%f in (AI IMAGES PSD ICON DOC APP RAR EXE OTHER) do (if not exist "%mypath%%%f" mkdir "%mypath%%%f")
REM do move
for %%a in (AI svg eps) do (for /R %mypath% %%f in (*.%%a) do move "%%f" "%mypath%AI")
for %%a in (jpg jpeg gif tif cr2) do (for /R %mypath% %%f in (*.%%a) do move "%%f" "%mypath%IMAGES")
for %%a in (ico png) do (for /R %mypath% %%f in (*.%%a) do move "%%f" "%mypath%ICON")
for %%a in (doc docx pdf) do (for /R %mypath% %%f in (*.%%a) do move "%%f" "%mypath%DOC")
for %%a in (mp4 ts) do (for /R %mypath% %%f in (*.%%a) do move "%%f" "%mypath%VIDEO")
for %%a in (rar zip) do (for /R %mypath% %%f in (*.%%a) do move "%%f" "%mypath%RAR")