Skip to content

Instantly share code, notes, and snippets.

@codrineugeniu
codrineugeniu / readingIndicator.js
Created September 12, 2017 12:51 — forked from maticrivo/readingIndicator.js
Creates a reading indicator
(function(){
var Indicator = function(){
var self = this, bar, latestKnownScrollY, ticking;
this.init = function init() {
latestKnownScrollY = window.scrollY;
ticking = false;
self.createIndicator();
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\monokai]
"Colour21"="255,255,255"
"Colour20"="245,222,179"
"Colour19"="200,240,240"
"Colour18"="0,217,217"
"Colour17"="179,146,239"
"Colour16"="174,129,255"
"Colour15"="122,204,218"
@codrineugeniu
codrineugeniu / gist:3874787
Created October 11, 2012 19:11
Pidgin Solarized Colorscheme
# Zoresvit (c) 2012 <zoresvit@gmail.com>
# Solarized colorscheme for pidgin. This file seats in
# ~/.purple/gtkrc-2.0
style "pidgin-solarized" {
font_name = "Sans 11"
base[NORMAL] = "#002B36"
text[NORMAL] = "#839496"
# Change the color of hyperlinks.
GtkIMHtml::hyperlink-color = "#268BD2"
#!/bin/bash
#Which
Grep="`/usr/bin/which grep`"
Awk="`/usr/bin/which awk`"
Cat="`/usr/bin/which cat`"
Sed="`/usr/bin/which sed`"
Curl="`/usr/bin/which curl`"
# Scrape Nagios
@codrineugeniu
codrineugeniu / lolwat.js
Created August 10, 2012 19:23 — forked from mathiasbynens/lolwat.js
Fun with v8’s Number#toString bug
var number = 0,
increment = 0.00000000000001, // smallest value that makes a difference
result,
matches,
match;
for (; number < 100; number += increment) {
result = number.toString(33);
matches = result.match(/[a-z]+/g) || [];
match = matches.indexOf('wtf');