Skip to content

Instantly share code, notes, and snippets.

/*
PNotify 3.0.0 sciactive.com/pnotify/
(C) 2015 Hunter Perrin; Google, Inc.
license Apache-2.0
*/
(function(b,k){"function"===typeof define&&define.amd?define("pnotify",["jquery"],function(q){return k(q,b)}):"object"===typeof exports&&"undefined"!==typeof module?module.exports=k(require("jquery"),global||b):b.PNotify=k(b.jQuery,b)})("undefined"!==typeof window?window:this,function(b,k){var q=function(l){var k={dir1:"down",dir2:"left",push:"bottom",spacing1:36,spacing2:36,context:b("body"),modal:!1},g,h,n=b(l),r=function(){h=b("body");d.prototype.options.stack.context=h;n=b(l);n.bind("resize",
function(){g&&clearTimeout(g);g=setTimeout(function(){d.positionAll(!0)},10)})},s=function(c){var a=b("<div />",{"class":"ui-pnotify-modal-overlay"});a.prependTo(c.context);c.overlay_close&&a.click(function(){d.removeStack(c)});return a},d=function(c){this.parseOptions(c);this.init()};b.extend(d.prototype,{version:"3.0.0",options:{title:!1,title_escape:!1,text:!1,text_escape:!1,styling:"brighttheme",addclass:"",cornercl
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 26, 2024 20:47
Complete Recent Discord Quest

Complete Recent Discord Quest

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
  2. Join a vc
  3. Stream any window (can be notepad or something)
  4. Press Ctrl+Shift+I to open DevTools
  5. Go to the Console tab
  6. Paste the following code and hit enter:
let wpRequire;
@HerringtonDarkholme
HerringtonDarkholme / nihongo.cpp
Last active April 26, 2024 20:46
g++ nihongo.cpp
#define エスティーディー std
#define アイオーストリーム <iostream>
#define ユージング using
#define イフ if
#define インクルード #include
#define イント int
#define シーアウト cout
#define シーイン cin
#define ネームスペース namespace
#define ブール bool
!function(e,n){"function"==typeof define&&define.amd?define(n):"object"==typeof exports?module.exports=n():e.NProgress=n()}(this,function(){var n,t,o={version:"0.2.0"},a=o.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function u(e,n,t){return e<n?n:t<e?t:e}function c(e){return 100*(-1+e)}o.configure=function(e){var n,t;for(n in e)void 0!==(t=e[n])&&e.hasOwnProperty(n)&&(a[n]=t);return this},o.status=null,o.set=function(n){var e=o.isStarted();n=u(n,a.minimum,1),o.status=1===n?null:n;var t=o.render(!e),r=t.querySelector(a.barSelector),i=a.speed,s=a.easing;return t.offsetWidth,l(function(e){""===a.positionUsing&&(a.positionUsing=o.getPositioningCSS()),f(r,function(e,n,t){var r;r="translate3d"===a.positionUsing?{transform:
!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):a.moment=b()}(this,function(){"use strict";function a(){return le.apply(null,arguments)}
// This is done to register the method called with moment()
// without creating circular dependencies.
function b(a){le=a}function c(a){return a instanceof Array||"[object Array]"===Object.prototype.toString.call(a)}function d(a){
// IE8 will treat undefined and null as object if it wasn't for
// input != null
return null!=a&&"[object Object]"===Object.prototype.toString.call(a)}function e(a){var b;for(b in a)
// even if its not own property I'd still call it non-empty
return!1;return!0}function f(a){return"number"==typeof a||"[object Number]"===Object.prototype.toString.call(a)}function g(a){return a instanceof Date||"[object Date]"===Object.prototype.toString.call(a)}function h(a,b){var c,d=[];for(c=0;c<a.length;++c)d.push(b(a[c],c));return d}function i(a,b){return Object.prototype.hasOw
!function(){"use strict";function c(i,t){var e;if(t=t||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=t.touchBoundary||10,this.layer=i,this.tapDelay=t.tapDelay||200,this.tapTimeout=t.tapTimeout||700,!c.notNeeded(i)){for(var n=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],o=this,r=0,a=n.length;r<a;r++)o[n[r]]=function(t,e){return function(){return t.apply(e,arguments)}}(o[n[r]],o);s&&(i.addEventListener("mouseover",this.onMouse,!0),i.addEventListener("mousedown",this.onMouse,!0),i.addEventListener("mouseup",this.onMouse,!0)),i.addEventListener("click",this.onClick,!0),i.addEventListener("touchstart",this.onTouchStart,!1),i.addEventListener("touchmove",this.onTouchMove,!1),i.addEventListener("touchend",this.onTouchEnd,!1),i.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(i.removeEventListener=function(t,e,n){var o=Node.
var CURRENT_URL=window.location.href.split("?")[0],$BODY=$("body"),$MENU_TOGGLE=$("#menu_toggle"),$SIDEBAR_MENU=$("#sidebar-menu"),$SIDEBAR_FOOTER=$(".sidebar-footer"),$LEFT_COL=$(".left_col"),$RIGHT_COL=$(".right_col"),$NAV_MENU=$(".nav_menu"),$MENU=$("#meumenu"),$FOOTER=$("footer");function mouseEventos(){960<$(window).width()&&($MENU.on("mouseenter",function(e){e.stopPropagation(),$BODY.hasClass("nav-sm")&&(console.log("entrou"),0==$(".modal-dialog").is(":visible")&&($MENU_TOGGLE.trigger("click"),console.log("executou")))}),$MENU.on("mouseleave",function(e){e.stopPropagation(),0==$(".modal-dialog").is(":visible")&&$BODY.hasClass("nav-md")&&(0<$SIDEBAR_MENU.find("li.active").length?($(".left_col").find(".mCSB_scrollTools").css("width","0px"),$SIDEBAR_MENU.find("li.active ul").slideUp(),$SIDEBAR_MENU.find("li.active").removeClass("active active-sm"),setTimeout(function(){$MENU_TOGGLE.trigger("click")},500),console.log("entrou2")):$MENU_TOGGLE.trigger("click"))}))}$("body").ready(function(){960<$(window).widt
Interessante...
Roda esses roles pra mim:
- https://hs-librespeed-embratel.hotsoft.com.br/speedtest/
- https://hs-librespeed-vivo.hotsoft.com.br/speedtest/
- https://hs-librespeed.hotsoft.com.br/speedtest/
Uma vez sem VPN e outra com VPN.
@msmuenchen
msmuenchen / README.md
Last active April 26, 2024 20:45
Flying a drone in Germany

This article intends to provide a quick refresher and reference guide for aspiring drone pilots in German territory, particularly those from outside the EU.

Disclaimer: The author is not a law professional and assumes no liability, but strives to keep this guide up-to-date and factually correct. Please check the laws yourself before conducting a flight. No commission, referrals or similar awards have been provided to the author. The guide only applies to actual EU member states and Germany specifically, unless noted otherwise. The author has no knowledge about the edge cases Switzerland, Norway, Iceland, Liechtenstein and the UK - they may or may not have adopted the EU regulations. Please file a comment if you have corrections, questions, new edge cases or links to state-specific information.

Basic EU-wide rules

German drone law follows the basic EU harmonized rules:

Drone classes

  • Drones are classified by weight and capabilities by the manufacturer:
  • C0 drones weigh below 250g (e.g. the DJ
'use strict';
// iframe.contentWindow
if (
window !== top &&
location.href === 'about:blank'
) {
try {
top.document; // are we on the same frame?