Skip to content

Instantly share code, notes, and snippets.

View vanessa's full-sized avatar

Vanessa vanessa

View GitHub Profile
@vanessa
vanessa / config.json
Created January 31, 2017 22:48 — forked from anonymous/config.json
Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#222",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#CB2128, 6.5%)",
"@brand-success": "#5cb85c",
<?php
echo "<select>";
$hora = strtotime('00:00');
$i = 0;
$tempo = ceil($hora / (15*60)) * (15*60);
while($i < 96) {
echo '<option value="'. date('H:i', $tempo) .'">' . date('H:i', $tempo) . '</option>'."\n";
$tempo = strtotime('+15 minutes', $tempo);
$i++;
@vanessa
vanessa / .gitmessage
Created May 14, 2017 02:47 — forked from mdwheele/.gitmessage
Use this Git commit message template to write better commit messages.
Replace this line with imperative summary
An awesome description describing WHY this work over HOW/WHAT it does.
The diff attached to commit should describe implementation (HOW)
well-enough.
# [Ticket #12]
#-----------------------------------------------@----------------------#
#
@vanessa
vanessa / gist:9901373c59cfb222e56257d7cb9fee1c
Created August 31, 2017 16:37 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@vanessa
vanessa / Capybara.md
Created October 19, 2017 04:41 — forked from tomas-stefano/Capybara.md
Capybara cheatsheet

Capybara Actions

# Anchor
click_link 'Save'

# Button
click_button 'awesome'

# Both above
$ wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz

$ tar xvf Python-3.6.3.tgz

$ cd Python-3.6.3

$ ./configure --enable-optimizations

$ make -j8
@vanessa
vanessa / mixins.scss
Created June 7, 2018 04:08
Easily generate classes of buttons using SASS
$social-share-colors: (
'facebook' : '#3b5999',
'linkedin' : '#0077B5',
'googleplus' : '#dd4b39',
'twitter' : '#55acee'
);
@mixin share-button-colors {
@each $social, $value in $social-share-colors {
&.is-#{$social} {
#!/bin/bash
# Archive the boilerplate
git archive -o boilerplate.zip HEAD
echo "Created new file named boilerplate.zip"
# Go back and create a new project using the archived version
cd ..
django-admin startproject test_boilerplate \
--extension py,yml,json \