Skip to content

Instantly share code, notes, and snippets.

View steven-mercatante's full-sized avatar
🎯
Focusing

Steven Mercatante steven-mercatante

🎯
Focusing
View GitHub Profile
@steven-mercatante
steven-mercatante / Pagination.js
Created September 12, 2019 23:38
stevemercatante.com Pagination styled component
import styled from 'styled-components'
const Pagination = styled.div`
margin-bottom: 60px;
display: flex;
width: 100%;
@media (max-width: 760px) {
flex-direction: column;
}
@steven-mercatante
steven-mercatante / gist:f4ff72b7d9a20b04146eed8e977dab65
Last active June 15, 2016 13:09
Helper function to quickly fill out inputs using Selenium
def fill_inputs(driver, inputs):
"""
Fill out one or many input fields.
Usage:
inputs = {'#title': 'foo', '.age': 42}
fill_inputs(driver, inputs)
This is meant to replace repetitive and verbose calls like:
title_input = driver.find_element_by_id('title')
@steven-mercatante
steven-mercatante / README.md
Created April 9, 2016 14:57 — forked from agnoster/README.md
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

@steven-mercatante
steven-mercatante / Sublime Snippet - console.log()
Created March 17, 2015 18:24
A Sublime Text 2 snippet for inserting console.log()
<snippet>
<content><![CDATA[
console.log(${1});
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>cl</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>

iTerm2

http://www.iterm2.com/#/section/downloads

Get the iTerm color settings

https://raw.github.com/altercation/solarized/master/iterm2-colors-solarized/Solarized%20Dark.itermcolors

Apply them in iTerm through iTerm -> preferences -> profiles -> -> colors -> load presets -> import. You can create a different profile, other than Default if you wish to do so.

iTerm2

http://www.iterm2.com/#/section/downloads

Get the iTerm color settings

https://raw.github.com/altercation/solarized/master/iterm2-colors-solarized/Solarized%20Dark.itermcolors

Apply them in iTerm through iTerm -> preferences -> profiles -> -> colors -> load presets -> import. You can create a different profile, other than Default if you wish to do so.

@steven-mercatante
steven-mercatante / quick-pprint.sublime-snippet
Created September 2, 2014 15:43
[Sublime snippet] Quick python pretty print
<snippet>
<content><![CDATA[
from pprint import pprint
pprint(${1:stmt})
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>pprint</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.python</scope>
</snippet>
42.50729 1.53414 Europe/Andorra
42.50779 1.52109 Europe/Andorra
25.56473 55.55517 Asia/Dubai
25.78953 55.9432 Asia/Dubai
25.33132 56.34199 Asia/Dubai
25.25817 55.30472 Asia/Dubai
25.61955 56.27291 Asia/Dubai
25.35731 55.4033 Asia/Dubai
24.11028 52.73056 Asia/Dubai
25.11641 56.34141 Asia/Dubai