Skip to content

Instantly share code, notes, and snippets.

View wisetara's full-sized avatar

Tara Scherner de la Fuente wisetara

  • Portland, OR
View GitHub Profile
@bazzargh
bazzargh / ublock
Created February 27, 2018 22:04
ublock rules for twitter misfeatures
! Block friends favourited tweets
twitter.com##.tweet-has-context:not([data-retweeter])
! fake activity
twitter.com##li[data-component-context="generic_activity"]
! since you were away
twitter.com##.TimelineTweetsModule
! don't care what's trending
twitter.com##.trends.Trends.module
@user512
user512 / clone_dbc_repo.rb
Last active December 28, 2017 20:50
clone dbc repo
require 'json'
def clone_repo
page_num = 1
loop do
# replace sf-grasshoppers-2015 with your cohort name
json = %x[curl 'https://api.github.com/orgs/sf-grasshoppers-2015/repos?per_page=100&page=#{page_num}' -u <username>:<personal_access_token>]
json = JSON.parse(json)
break if json.empty?
json.each { |repo| %x[git clone #{repo["ssh_url"]} ] }
page_num += 1
package auth
import (
"context"
"net/http"
"strings"
"google.golang.org/grpc/metadata"
"github.com/andela/micro-api-gateway/pb/authorization"
@starkcoffee
starkcoffee / gist:f822f1804852dcb39dbc1419b59cdd14
Last active September 5, 2016 10:51
Font tips for code in presentations
I got some nice tips from my soundcloud colleagues on what font they used for code in presentations:
http://input.fontbureau.com/
http://hivelogic.com/articles/top-10-programming-fonts/
https://madmalik.github.io/mononoki/
I think Consolas looks good
@gaearon
gaearon / connect.js
Last active November 14, 2024 08:35
connect.js explained
// connect() is a function that injects Redux-related props into your component.
// You can inject data and callbacks that change that data by dispatching actions.
function connect(mapStateToProps, mapDispatchToProps) {
// It lets us inject component as the last step so people can use it as a decorator.
// Generally you don't need to worry about it.
return function (WrappedComponent) {
// It returns a component
return class extends React.Component {
render() {
return (
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active November 14, 2024 15:40
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')