This file contains 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
/** | |
* Quickly scrape the API endpoints from the documentation. | |
* Open the browser console and drop the code there. Copy the JSON from the console. enjoy! | |
* | |
* @link https://developer.spotify.com/documentation/web-api/reference/ | |
* | |
* @created 21.03.2021 | |
* @author @codemasher | |
* @copyright 2021 @codemasher | |
* @license MIT |
This file contains 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
/* ==UserStyle== | |
@name github-tweaks | |
@namespace github.com/codemasher/github-tweaks | |
@version 2.0.0 | |
@description Tweaks for the "new" GitHub style 06/2020, update 06/2023, update 02/2024 | |
@author codemasher | |
@license MIT | |
@link https://gist.github.com/codemasher/e4fea480849e0f984b7fb2accd759e95 | |
==/UserStyle== */ |
This file contains 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
<?php | |
$prevTick = 0; | |
$prevPos = [0, 0]; | |
while(true){ | |
exec('python mumblelink.py', $data); | |
$json = json_decode($data[0]); | |
if($json->ui_tick !== $prevTick && $json->position !== $prevPos){ |
This file contains 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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
This file contains 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
/* limit embed height and align left */ | |
.embed { | |
height: inherit; | |
max-height: 640px; | |
overflow: inherit; | |
position: initial; | |
} | |
/* don't stretch code blocks over the whole screen */ | |
pre code { |
This file contains 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
/** | |
* Created by Smiley on 19.06.2016. | |
*/ | |
/** | |
* Class GW2GeoJSON | |
*/ | |
class GW2GeoJSON{ | |
/** |
This file contains 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
<?php | |
function x(){$t=time();$f=mktime(date('H',$t),date('i',$t),date('s',$t),date('m',$t),1,date('Y',$t));$z=date('w',$f);$s=$z===0?6:$z-1;$c=date('D j M Y H:i:s', $t).chr(10);for($w=0,$y=$s*-1;$w<ceil(($s+date('t',$f))/7);$w++){$c.=date('W',$f+$w*604800).' ';for($d=0; $d<7; $d++,$y++){$c.=date('d',$f+$y*86400).' ';}$c.=chr(10);}$c.=chr(10);return $c;}echo x(); |
This file contains 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
<?php | |
/** | |
* | |
*/ | |
// some settings | |
$config['path_background'] = 'img/background/'; // trailing slash! | |
$config['path_foreground'] = 'img/foreground/'; | |
$config['path_cache'] = 'img/cache/'; | |
$config['path_cacert'] = 'cert/cacert.pem'; |
This file contains 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
<?php | |
/** | |
* Simple GW2 chatlink class with support for IDs > 16 bit | |
* | |
* @author Smiley <@codemasher> | |
* @license http://www.wtfpl.net/about/ WTFPL 2 | |
*/ | |
class Chatlink{ | |
/** |
This file contains 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
#search-container{ | |
padding: 0 3% 0 3%; | |
background: #fff; | |
} | |
#search-text{ | |
border: 1px solid #B2B2B2; | |
box-shadow: #B2B2B2 0 0 9px inset; | |
font-size: 22px; | |
margin: 2px 0 15px; |