Skip to content

Instantly share code, notes, and snippets.

Avatar
🏳️‍🌈

smiley codemasher

🏳️‍🌈
View GitHub Profile
View github.css
/* ==UserStyle==
@name github-tweaks
@namespace github.com/codemasher/github-tweaks
@version 1.0.0
@description Tweaks for the "new" GitHub style (06/2020)
@author codemasher
@license MIT
==/UserStyle== */
/**
@codemasher
codemasher / mumblelink.php
Last active Oct 15, 2019
Guild Wars 2 Mumble link stuff
View mumblelink.php
@codemasher
codemasher / LICENSE.txt
Created Nov 8, 2017 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
View LICENSE.txt
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
@codemasher
codemasher / gitter-fixes.css
Created Jul 28, 2016
embed fixes for gitter.im
View gitter-fixes.css
/* 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 {
View gw2-geojson.js
/**
* Created by Smiley on 19.06.2016.
*/
/**
* Class GW2GeoJSON
*/
class GW2GeoJSON{
/**
View calendar-code-golf.php
<?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();
View guildemblems.php
<?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';
@codemasher
codemasher / chatlink.class.php
Created Feb 10, 2015
A simple GW2 chatlink class with support for IDs > 16 bit
View chatlink.class.php
@codemasher
codemasher / gw2-forumsearch.css
Last active Aug 29, 2015
GW2 Forum search fix using the Google custom search engine (WIP)
View gw2-forumsearch.css
#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;
@codemasher
codemasher / ws-forumtweak-nexus.css
Last active Aug 29, 2015
Some tweaks to the official WildStar forums (https://forums.wildstar-online.com/) for use with Stylebot/Tampermonkey (Chrome) or Stylish/Greasemonkey (Firefox) or any other CSS/JS injector for the browser of your choice. See also: https://forums.wildstar-online.com/forums/index.php?/topic/90619-try-a-new-forum-style/?p=919042
View ws-forumtweak-nexus.css
/* hyperlinks */
a, a:link {
cursor: pointer;
transition-property: all;
transition-duration: 0.5s;
}
.breadcrumb a, .ipsList_inline a, .ipsPad_top_slimmer a {
/* color: rgb(119, 119, 119);*/