Skip to content

Instantly share code, notes, and snippets.


Robin Gruenke eimfach

View GitHub Profile
p3t3r67x0 /
Last active Aug 22, 2021
A CSS pseudo-element is used to style specified parts of an element. In some cases you can style native HTML controls with vendor specific pseudo-elements. Here you will find an list of cross browser specific pseudo-element selectors.

Styling native elements

Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element or the /deep/ path selector.

video::webkit-media-controls-timeline {
  background-color: lime;

video /deep/ input[type=range] {
g-P / print_gitbook.js
Last active Jun 27, 2021
Print Git Books
View print_gitbook.js
If you try to print a gitbook directly, you get nothing but the contents because of their *just* use of `@media print` styling to hide away the content section of the books.
Fret not, here is the codez:
$(".book.with-summary .book-body").css('left', '0px');
$("*").css('position', 'static');
staltz /
Last active Sep 25, 2021
The introduction to Reactive Programming you've been missing
jeffmo / gist:054df782c05639da2adb
Last active Nov 24, 2020
ES Class Property Declarations
View gist:054df782c05639da2adb
marianposaceanu /
Last active Jun 21, 2021
How to have some fun using the terminal.

Linux fun-o-matic

How to have some fun using the terminal.

  1. Install cowsay [0] via : sudo apt-get install cowsay
  2. Install fortune [1] via : sudo apt-get install fortune
  3. Make sure you have Ruby installed via : ruby -v
  4. Install the lolcat [2] via : gem gem install lolcat
  5. Profit!
dustintheweb / stock-android-browser-check.js
Created Jul 8, 2013
Check if the browser user agent is the stock android browser.
View stock-android-browser-check.js
// Stock Android Browser Check >>>>>>>>>>>>>>>>
var ua = navigator.userAgent.toLowerCase();
var isAndroid = ua.indexOf("android") > -1 && ua.indexOf("mobile") && ua.indexOf("chrome")==-1
if(isAndroid) {
// stuff
dciccale /
Created May 11, 2013
Bash script to get the current git branch and last commit
#!/usr/bin/env bash
# checks if branch has something pending
function parse_git_dirty() {
git diff --quiet --ignore-submodules HEAD 2>/dev/null; [ $? -eq 1 ] && echo "*"
# gets the current git branch
function parse_git_branch() {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/\1$(parse_git_dirty)/"
bergantine / gist:5243223
Last active Sep 27, 2018
CSS grayscale filter (go from grayscale to full color on hover) #css #sethneilson
View gist:5243223
img:hover {
-webkit-filter: grayscale(0%);
-webkit-transition: .5s ease-in-out;
-moz-filter: grayscale(0%);
-moz-transition: .5s ease-in-out;
-o-filter: grayscale(0%);
-o-transition: .5s ease-in-out;
img {
jonfalcon / object-keys-polyfill.js
Created Feb 5, 2013
Javascript: Object keys polyfill
View object-keys-polyfill.js
* Polyfill for Object.keys
* @see:
if (!Object.keys) {
Object.keys = (function () {
var hasOwnProperty = Object.prototype.hasOwnProperty,
hasDontEnumBug = !({toString: null}).propertyIsEnumerable('toString'),
dontEnums = [
nickbudi /
Last active Aug 29, 2021
Budi's Counter-Strike: Global Offensive config

Budi's CS:GO Config

This is my constantly updated CS:GO autoexec config. Changelogs can be found under revisions here

Put autoexec.cfg in ...\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg or take what you want from it and add to your autoexec config!

After the Wild West Simulator 2015 update, video.txt needs to be put in ...\Steam\userdata\<Steam3 ID>\730\local\cfg

Launch Options