Skip to content

Instantly share code, notes, and snippets.

.fc {
direction: ltr;
text-align: left; }
.fc table {
border-collapse: collapse;
border-spacing: 0; }
.fc .btn {
line-height: 1.2em; }
html .fc {
@paulmillr
paulmillr / active.md
Last active May 15, 2025 11:20
Most active GitHub users (by contributions). https://paulmillr.com

Most active GitHub users (git.io/top)

The list would not be updated for now. Don't write comments.

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Wed, 21 Sep 2022 till Thu, 21 Sep 2023.

Because of GitHub search limitations, only 1000 first users according to amount of followers are included. If you are not in the list you don't have enough followers. See raw data and source code. Algorithm in pseudocode:

githubUsers
@anaisbetts
anaisbetts / the original guy used autocrlf false
Created May 27, 2012 06:58
.gitattributes to solve your problems
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
@ajaxray
ajaxray / hangman.rb
Created July 13, 2012 17:48
A simple word game (hangman) for learning ruby basics
=begin Hangman
A simple word game
Date: 5th Aug, 2011
Author: Anis uddin Ahmad <[email protected]>
=end
#require SecureRandom
@lovasoa
lovasoa / README.md
Last active January 21, 2021 19:56
Compute the intersection of large arrays in javascript

WARNING : This code now lives in its own github repository: lovasoa/fast_array_intersect. It is also published on npm: fast_array_intersect

Array intersect

Fastest function to intersect a large number of big arrays in javascript, without dependencies

  • The compressed version is only 345 caracters long.
  • Faster than common libraries, even a large number of arrays, or on very big arrays. (See benchmarks)
@agnoster
agnoster / README.md
Last active May 10, 2025 17:44
My ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

@paractmol
paractmol / gspeech.rb
Created October 19, 2012 10:55
Google Speech
# encoding: UTF-8
#
# Example of usage:
# 1.9.3p125 :003 > t = GoogleSpeech.load "#{Dir.home}/text.txt"
# => #<GoogleSpeech:0x007f89e38ba690 @text="Hello World it's just a text file. Hey yey!!!", @lang="en">
# 1.9.3p125 :004 > t.save("out.mp3")
# => "out.mp3"
#
# 1.9.3p125 :005 > f = GoogleSpeech.new "Thats shit but I love it"
$VERBOSE = nil
require File.expand_path('../rooby', __FILE__)
Person = Rooby::Class.new 'Person' do
define :initialize do |name|
@name = name
end
define :name do
@livibetter
livibetter / cpubar.sh
Created December 1, 2012 15:27
Simple combined CPU utilization horizontal bar graph in terminal/console
#!/bin/bash
# Simple combined CPU utilization horizontal bar graph in terminal/console
# Written by Yu-Jie Lin
#
# Note:
# There are a lot of things can be improved. Storing history of utilization
# and redraw when window resized, coloring graph, etc.
#
# ref: http://blog.yjl.im/2010/12/cpu-utilization-calculation-in-bash.html
@acook
acook / keypress.rb
Created December 2, 2012 18:42
Read keypresses from user in terminal, including arrow keys using pure Ruby. This has since been folded into a much more robust gem called Remedy. https://rubygems.org/gems/remedy & https://github.com/acook/remedy
require 'io/console'
# Reads keypresses from the user including 2 and 3 escape character sequences.
def read_char
STDIN.echo = false
STDIN.raw!
input = STDIN.getc.chr
if input == "\e" then
input << STDIN.read_nonblock(3) rescue nil