Skip to content

Instantly share code, notes, and snippets.

View bidah's full-sized avatar

Rodrigo Figueroa bidah

View GitHub Profile
@bidah
bidah / dabblet.css
Created May 19, 2012 03:13
Untitled
.one {
background-color:red;
position:relative;
width: 100px;
height:100px;
}
.two {
@bidah
bidah / dabblet.css
Created March 13, 2013 15:16
centering with absolute position
/**
* centering with absolute position
*/
div {
width: 130px;
height: 130px;
background-color: blue;
position: absolute;
top:0;
Sass and Compass Resources
=====================================================
***ONLINE***
> Official: http://sass-lang.com
> Official: http://compass-style.org
> http://thesassway.com
/**
* Loading animation like the one seen on http://www.freeger.com/projects/contextad/ with CSS
* Caveat: Not DRY. The content needs to be repeated in a data- attribute (or directly in the CSS).
*/
body {
background: #ccc51c;
min-height: 100%;
}
@bidah
bidah / gist:7001558
Created October 16, 2013 02:06
form ni para mailchimp cn design ni
<form action="http://colaboractive.us7.list-manage1.com/subscribe/post" method="POST">
<input type="hidden" name="u" value="99b3688f0acc5c3138908d9fd">
<input type="hidden" name="id" value="4effd1e32d">
<input type="email" autocapitalize="off" autocorrect="off" name="MERGE0" id="MERGE0" class="input" placeholder="Tu correo electrónico">
<input class="submit" type="submit" value="Suscribir">
</form>
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://npmjs.org/install.sh | sh
<section id="todoapp">
<header id="header">
<h1>todos</h1>
<form accept-charset="UTF-8" action="/todos" class="new_todo" data-remote="true" id="new_todo" method="post">
<div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" />
</div>
<input autocomplete="off" autofocus="autofocus" id="new-todo" name="todo[title]" placeholder="What needs to be done?" type="text" />
</form>
</header>

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after
@bidah
bidah / vim_cheatsheet.md
Created November 19, 2015 18:29 — forked from awidegreen/vim_cheatsheet.md
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
[{"timestamp":1462762800,"localTimestamp":1462741200,"issueTimestamp":1462752000,"fadedRating":1,"solidRating":1,"swell":{"minBreakingHeight":0.8,"absMinBreakingHeight":0.84,"maxBreakingHeight":1.3,"absMaxBreakingHeight":1.32,"unit":"m","components":{"combined":{"height":1.2,"period":12,"direction":69.93,"compassDirection":"WSW"},"primary":{"height":0.9,"period":12,"direction":66.47,"compassDirection":"WSW"},"secondary":{"height":0.6,"period":5,"direction":46.31,"compassDirection":"SW"}}},"wind":{"speed":11,"direction":18,"compassDirection":"SSW","chill":14,"gusts":11,"unit":"kph"},"condition":{"pressure":1015,"temperature":15,"weather":10,"unitPressure":"mb","unit":"c"},"charts":{"swell":"http:\/\/hist-2.msw.ms\/wave\/750\/27-1462762800-1.gif","period":"http:\/\/hist-2.msw.ms\/wave\/750\/27-1462762800-2.gif","wind":"http:\/\/hist-2.msw.ms\/gfs\/750\/27-1462762800-4.gif","pressure":"http:\/\/hist-2.msw.ms\/gfs\/750\/27-1462762800-3.gif","sst":"http:\/\/hist-2.msw.ms\/sst\/750\/27-1462762800-10.gif"}},{"times