Skip to content

Instantly share code, notes, and snippets.

@midu
midu / input.js
Created June 11, 2013 16:37
$ uglifyjs file.js -c -m > output.js
// my license is
// the first block
// of commented lines
console.log('some code')
// not a license, will disappear
@midu
midu / favorite.rb
Last active December 16, 2015 21:29
# UserVideo
# reference :user
# reference :video
# boolean :favorite
class UserVideo < ActiveRecord::Base
belongs_to :user
belongs_to :video
end
class Video < ActiveRecord::Base
@midu
midu / new chrome ui.md
Last active December 16, 2015 16:00
##

New Tab

New Omnibox

Google search from Omnibox

/* http://tjvantoll.com/2013/04/15/list-of-pseudo-elements-to-style-form-controls/?utm_source=html5weekly&utm_medium=email */
::-webkit-color-swatch {
-webkit-filter: invert(100%);
}
::-webkit-color-swatch-wrapper {
padding: 0;
}
/* http://tjvantoll.com/2013/04/15/list-of-pseudo-elements-to-style-form-controls/?utm_source=html5weekly&utm_medium=email */
::-webkit-color-swatch {
-webkit-filter: invert(100%);
}
::-webkit-color-swatch-wrapper {
padding: 0;
}
@midu
midu / dabblet.css
Created March 29, 2013 17:10
Untitled
.stefano {
width: 25px;
height: 25px;
border: 2px solid red;
}
.stefano {
margin: 0 auto;
margin-top: 12px;
}
@midu
midu / dabblet.css
Created March 25, 2013 21:30
Untitled
#superilya:focus:-ms-input-placeholder {
color: red;
}
@midu
midu / dabblet.css
Created March 19, 2013 16:17
Untitled
ul { list-style-type: disc; }
ul ul {
list-style-type: -webkit-toggle(disc, circle, square, box);
list-style-type: -ms-toggle(disc, circle, square, box);
list-style-type: -moz-toggle(disc, circle, square, box);
list-style-type: -o-toggle(disc, circle, square, box);
list-style-type: toggle(disc, circle, square, box);
}
@midu
midu / dabblet.css
Created March 19, 2013 16:17
Untitled
ul { list-style-type: disc; }
ul ul {
list-style-type: -webkit-toggle(disc, circle, square, box);
list-style-type: -ms-toggle(disc, circle, square, box);
list-style-type: -moz-toggle(disc, circle, square, box);
list-style-type: -o-toggle(disc, circle, square, box);
list-style-type: toggle(disc, circle, square, box);
}
@midu
midu / post-install.txt
Created February 13, 2013 16:47
ey gem post install message
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
Post-install message from engineyard:
Thank you for downloading engineyard gem version 2!
############ NOTICE when upgrading from 1.x to 2.x ############
First, if you have any trouble, you can uninstall this version to downgrade.
This version of the CLI does not affect the web deploy system.
Please file a support ticket if you have any issues at: support.cloud.engineyard.com