Skip to content

Instantly share code, notes, and snippets.

Rodrigo Figueroa bidah

Block or report user

Report or block bidah

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
View node-and-npm-in-30-seconds.sh
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
View gist:34f6f613e33c7c2d0bb3
<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>
View gist:6b3b2b5f79e2db48688b

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
View dabblet.css
.one {
background-color:red;
position:relative;
width: 100px;
height:100px;
}
.two {
View vim_cheatsheet.md

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
@bidah
bidah / dabblet.css
Created Mar 13, 2013
centering with absolute position
View dabblet.css
/**
* centering with absolute position
*/
div {
width: 130px;
height: 130px;
background-color: blue;
position: absolute;
top:0;
View sass-compass-resources.txt
Sass and Compass Resources
=====================================================
***ONLINE***
> Official: http://sass-lang.com
> Official: http://compass-style.org
> http://thesassway.com
View dabblet.css
/**
* 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 Oct 16, 2013
form ni para mailchimp cn design ni
View gist:7001558
<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>
View renaca call.json
[{"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
You can’t perform that action at this time.