Skip to content

Instantly share code, notes, and snippets.

View monodyle's full-sized avatar
🙊
Out of money

Monody Le monodyle

🙊
Out of money
View GitHub Profile
@monodyle
monodyle / youtube-playlist-maker.js
Created March 23, 2018 08:08 — forked from J2TEAM/youtube-playlist-maker.js
Code thêm nhiều video Youtube vào một playlist.
/* Developed by Juno_okyo */
(function(e, b) {
function f(a, b) {
var d = fetch,
e = "sej=" + encodeURIComponent(JSON.stringify({
playlistEditEndpoint: {
playlistId: a,
actions: [{
addedVideoId: b,
action: "ACTION_ADD_VIDEO"
@monodyle
monodyle / Spin2WinWheel_doc_v0.1.md
Created February 13, 2018 15:21 — forked from chrisgannon/Spin2WinWheel_doc_v0.7.md
Documentation for Spin2Win Wheel, a responsive, flexible, customisable, resolution independent spin wheel game whose outcomes you control.
Release notes for updates can be found in the comments
FAQs can be found here here

Documentation for Spin2Win Wheel by Chris Gannon

Built using Scalable Vector Graphics Spin2Win Wheel is a responsive, flexible, customisable, resolution independent spin wheel game whose outcomes you control.

Spin results, prizes, win/lose, number of spins, custom data and more can be controlled using JSON data. You can set the winning probabilty for each segment and customise the look and feel of Spin2Win Wheel to bring it in line with your brand or color scheme - it even has an anti-cheat mechanism to prevent players placing the wheel on a chosen segment.

You can purchase Spin2Win Wheel by Chris Gannon from CodeCanyon here
@monodyle
monodyle / ProfileJsonResponse.php
Created January 10, 2018 04:41 — forked from khoinv/ProfileJsonResponse.php
Laravel Api profiling with duplication queries information.
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\JsonResponse;
class ProfileJsonResponse
{
/**
@monodyle
monodyle / Stop auto load imges when parseHTML in jQuery
Created August 25, 2017 00:31 — forked from lelinhtinh/Stop auto load imges when parseHTML in jQuery
Chặn tải ảnh khi dùng parseHTML trong jQuery
// http://stackoverflow.com/a/15217348
$.get(URL).done(function (responseText) {
responseText = responseText.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/gi, function (match, capture) {
return '<img data-src="' + capture + '" />';
});
console.log($(responseText).find('img'));
});
@monodyle
monodyle / GarenaMinus.bat
Created August 25, 2017 00:30 — forked from lelinhtinh/GarenaMinus.bat
Toggle Garena+ Plugin Host Service
:: Open this bat-file to toggle Garena+ Plugin Host Service
:: Written by Zzbaivong - baivong.github.io
:: 24/08/2016
:: Note! Updating the directory path depending on your game folder location
@ECHO OFF
TASKLIST /FI "IMAGENAME eq ggdllhost.exe" 2>NUL | find /I /N "ggdllhost.exe">NUL
@monodyle
monodyle / index.php
Created August 25, 2017 00:27 — forked from tuanxuong/index.php
Update Status Follow LIKE,LOVE
<?php
header("Refresh:120");
date_default_timezone_set('asia/ho_chi_minh');
$id = ''; // ID post Status mới nhất
$facebook_access_token=''; // Token full quyền
// -- Bắt đầu -- Đoạn dưới đây dùng để đếm LẤY REACTION MỚI NHẤT
$url = 'https://graph.facebook.com/v2.8/?ids='.$id.'&fields=reactions.limit(1)&access_token='.$facebook_access_token;
function getBase64Image(img) {
// Create an empty canvas element
var canvas = document.createElement("canvas");
canvas.width = img.width;
canvas.height = img.height;
// Copy the image contents to the canvas
var ctx = canvas.getContext("2d");
ctx.drawImage(img, 0, 0);
@monodyle
monodyle / wp-query-ref.php
Created July 29, 2017 07:53 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php
*/
$args = array(