Skip to content

Instantly share code, notes, and snippets.

View bradens's full-sized avatar
🖥️
Working from home

Braden Simpson bradens

🖥️
Working from home
View GitHub Profile
@bradens
bradens / api-lolesports-com_docs.md
Created November 6, 2019 17:35 — forked from brcooley/api-lolesports-com_docs.md
lolesports.com unofficial api docs

Unofficial documentation

This is an unofficial documentation for the internal lolesports.com api.

This documentation is uncomplete and currently only show all information I got so far. Please help me complete and correct this documentation.

Top level domain

The domain for the intern lolesports.com api is http://api.lolesports.com/api/.

@bradens
bradens / cvimrc
Last active December 8, 2017 10:57
cvimrc
set scalehints
set linkanimations
set hintcharacters='aoeusnthid'
@bradens
bradens / gmail.css
Created December 8, 2017 10:47
gmail dark userstyle
.nH,
.iY .Bu,
.bt0 {
background: #1e2127;
}
.zA,
.kv .Bk .G2,
.kQ .Bk .G2 {
background: #282c34;
@bradens
bradens / slack-dark-theme.css
Last active February 1, 2019 07:56
Dark theme for slack
#msgs_scroller_div::-webkit-scrollbar-track, #client_body::before, .client_container,
#search_terms, #client_body, #footer, ts-message, .channel_header, ts-jumper ts-jumper-container,
ts-jumper input[type="text"] {
background: #282c34 !important;
}
#client_body::before {
border-bottom: 1px solid #1a2129 !important;
}
@bradens
bradens / test.scss
Created November 25, 2015 21:08
demo sass bug
%button {
background: red;
}
@media (max-width: 500px) {
@extend %button;
}
# First configure your models to use Amazon s3 as storage option and setup the associated S3 config.
# Then add the classes your want to migrate in the klasses array below.
# Then run rake paperclip_migration:migrate_to_s3
# Should work but this is untested and may need some tweaking - but it did the job for me.
namespace :paperclip_migration do
desc "migrate files from filesystem to s3"
task :migrate_to_s3 => :environment do
klasses = [:product] # Replace with your real model names. If anyone wants to this could be picked up from args or from configuration.
klasses.each do |klass_key|
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
margin: 0;
}
.link {
fill: none;
stroke: #cc3333;
@bradens
bradens / emailSniffer.js
Created March 29, 2012 09:17
Gmail Email grabber
javascript:var script = document.createElement('script');
script.src = 'http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js';
script.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(script);
function printEmails() {
$("#canvas_frame").contents().find(".yX.xY").each(
function(i, data) {
var contactsArr = $(data).find("[email]");
var contactsStr = "";