from slacker import Slacker | |
import json | |
import argparse | |
import os | |
import shutil | |
import copy | |
from datetime import datetime | |
# This script finds all channels, private channels and direct messages | |
# that your user participates in, downloads the complete history for |
/** | |
* Using Operator Mono in Atom | |
* | |
* 1. Open up Atom Preferences. | |
* 2. Click the “Open Config Folder” button. | |
* 3. In the new window’s tree view on the left you should see a file called “styles.less”. Open that up. | |
* 4. Copy and paste the CSS below into that file. As long as you have Operator Mono SSm installed you should be golden! | |
* 5. Tweak away. | |
* | |
* Theme from the screenshot (http://cdn.typography.com/assets/images/blog/operator_ide2.png): |
print("UPDATE AUG 2023: this script is beyond old and broken") | |
print("You may find interesting and more up to date resources in the comments of the gist") | |
exit() | |
from slacker import Slacker | |
import json | |
import argparse | |
import os | |
# This script finds all channels, private channels and direct messages |
1.gravatar.com | |
127.0.0.1:9010 | |
2003---el-oro-de-moscu-xvid-avi.foldforper7.appspot.com | |
a.tracker.thepiratebay.org | |
a2.l3-images.myspacecdn.com | |
a248.e.akamai.net | |
acyd-karpathicus.deviantart.com | |
ads.exoclick.com | |
agentoftrickery.deviantart.com | |
airinya.deviantart.com |
Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets
“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important
or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”
You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
die "Usage: rename <expression> <files>\n" unless (@ARGV >= 2); | |
my $op = eval 'sub { ' . shift . ' }'; # crazily dangerous - type carefully! | |
die $@ if $@; |
# Given a string of uppercase characters in the range A-Z, | |
# replace runs of sequential characters with a single | |
# instance of that value preceded by the number of items | |
# in the run. | |
defmodule RunLengthEncoder do | |
def encode(string) do | |
encode_aux(String.codepoints(string), []) | |
end |
# config/routes.rb | |
resources :documents do | |
scope module: 'documents' do | |
resources :versions do | |
post :restore, on: :member | |
end | |
resource :lock | |
end | |
end |
#!/bin/bash | |
############################################################################## | |
# | |
# Easy Qiniu Bash SDK | |
# | |
# www.qiniu.com | |
# | |
# Module: utils/crc32.sh | |
# |