This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#SingleInstance, Force | |
#include, lib\gdip_all.ahk | |
; https://github.com/tariqporter/Gdip | |
; https://github.com/tariqporter/Gdip/blob/master/Gdip.ahk | |
IfNotExist, Screenshots | |
FileCreateDir, Screenshots | |
PrintScreen:: | |
FormatTime, TimeString, , yyyy-MM-dd HHmmss |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SOURCE: https://webapps.stackexchange.com/questions/90238/delete-all-videos-on-my-liked-videos-youtube-automatic-playlist | |
// visit: https://www.youtube.com/playlist?list=LL | |
// open console, copy + paste | |
// obs: deleted videos just wont disappear from youtube... | |
// scroll down the list as much as possible because the default list size is just 100. | |
function sleep(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
type: 'POST', // Use POST with X-HTTP-Method-Override | |
dataType: 'json', // Set datatype - affects Accept header | |
url: "http://example.com/people/1", // A valid URL | |
headers: {"X-HTTP-Method-Override": "PUT"}, // X-HTTP-Method-Override set to XXX. | |
data: {"name": "John Doe"} | |
}); | |
/* | |
Some clients do not support PUT or other method beyond GET/POST. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<ui version="4.0"> | |
<class>MainWindow</class> | |
<widget class="QMainWindow" name="MainWindow"> | |
<property name="geometry"> | |
<rect> | |
<x>0</x> | |
<y>0</y> | |
<width>454</width> | |
<height>507</height> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<span> | |
<select name="month"> | |
<option value="January">January</option> | |
<option value="February">February</option> | |
<option value="March">March</option> | |
<option value="April">April</option> | |
<option value="May">May</option> | |
<option value="June">June</option> | |
<option value="July">July</option> | |
<option value="August">August</option> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pad = function (number, digits) { | |
return Array(Math.max(digits - String(number).length + 1, 0)).join(0) + number; | |
}; | |
var d = new Date(); | |
var utc = d.getTime() + (d.getTimezoneOffset() * 60000); | |
var offset = 9; | |
var nd = new Date(utc + (3600000 * offset)); | |
var year = nd.getFullYear(), | |
month = pad(nd.getMonth() + 1, 2), | |
day = pad(nd.getDate(), 2); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# require | |
# https://ffmpeg.org/download.html | |
# to convert to .mp3 | |
from __future__ import unicode_literals | |
import youtube_dl | |
class MyLogger(object): | |
def debug(self, msg): | |
pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inputs = document.querySelectorAll("input") | |
inputs.forEach(i => {i.checked = true}) | |
button = document.querySelector("#remove-selected"); | |
button.disabled = false; | |
button.click() | |
alertOverlayOk.click() | |
// OR | |
var inputs = document.getElementsByTagName('input'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name userscript boilerplate | |
// @namespace userscriptnamespace | |
// @version 1 | |
// @description Script description | |
// @author Author | |
// @match http://asdf.com/* | |
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js | |
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery-popup-overlay/2.1.1/jquery.popupoverlay.min.js | |
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery.serializeJSON/2.9.0/jquery.serializejson.min.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* https://jsfiddle.net/3bcz5jav/5/ | |
* required: | |
* - moment.js https://momentjs.com/ | |
*/ | |
var Boleto = { | |
barcodeNumber: '', | |
bankSlipNumber: '', // bankSlipNumber | |
errors: [], |