Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Braden Simpson bradens

🏠
Working from home
  • Leanpub
  • Edmonton
Block or report user

Report or block bradens

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View cvimrc
set scalehints
set linkanimations
set hintcharacters='aoeusnthid'
@bradens
bradens / gmail.css
Created Dec 8, 2017
gmail dark userstyle
View gmail.css
.nH,
.iY .Bu,
.bt0 {
background: #1e2127;
}
.zA,
.kv .Bk .G2,
.kQ .Bk .G2 {
background: #282c34;
@bradens
bradens / slack-dark-theme.css
Last active Feb 1, 2019
Dark theme for slack
View slack-dark-theme.css
#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 Nov 25, 2015
demo sass bug
View test.scss
%button {
background: red;
}
@media (max-width: 500px) {
@extend %button;
}
View paperclip_migration.rake
# 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|
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
margin: 0;
}
.link {
fill: none;
stroke: #cc3333;
@bradens
bradens / emailSniffer.js
Created Mar 29, 2012
Gmail Email grabber
View emailSniffer.js
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 = "";
You can’t perform that action at this time.