Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Steven Mercatante steven-mercatante

🎯
Focusing
Block or report user

Report or block steven-mercatante

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
@steven-mercatante
steven-mercatante / Pagination.js
Created Sep 12, 2019
stevemercatante.com Pagination styled component
View Pagination.js
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 Jun 15, 2016
Helper function to quickly fill out inputs using Selenium
View gist:f4ff72b7d9a20b04146eed8e977dab65
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')
View README.md

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 Mar 17, 2015
A Sublime Text 2 snippet for inserting console.log()
View Sublime Snippet - 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>
View solarized.md

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.

View solarized.md

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 Sep 2, 2014
[Sublime snippet] Quick python pretty print
View quick-pprint.sublime-snippet
<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>
View lat,lng,timezone
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
You can’t perform that action at this time.