Skip to content

Instantly share code, notes, and snippets.

View andreimoment's full-sized avatar

Andrei Andreev andreimoment

View GitHub Profile
@andreimoment
andreimoment / Gemfile
Created July 3, 2014 21:37
rake db:migrate error
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.1'
# Use sqlite3 as the database for Active Record
# gem 'sqlite3'
gem 'pg'
# Use SCSS for stylesheets
@andreimoment
andreimoment / SassMeister-input-HTML.html
Last active August 29, 2015 14:04
Generated by SassMeister.com.
<div class="parent">
<div class="child">
<p>child 1</p>
<div class="grandchild">Grandchild 1</div>
<div class="grandchild last">Grandchild 2</div>
</div>
<div class="child last">child 2</div>
</div>
@andreimoment
andreimoment / SassMeister-input-HTML.html
Created August 12, 2014 00:53
Generated by SassMeister.com.
<div class="parent">
<div class="child one">Spaceflights cannot be stopped. This is not the work of any one man or even a group of men. It is a historical process which mankind is carrying out in accordance with the natural laws of human development.</div>
<div class="child two">The Earth was small, light blue, and so touchingly alone, our home that must be defended like a holy relic. The Earth was absolutely round. I believe I never knew what the word round meant until I saw Earth from space.</div>
<div
</div>
@andreimoment
andreimoment / Git
Created December 22, 2014 21:05
Git and Textmate Settings
[merge]
tool = p4merge
[mergetool "p4merge"]
path = C:\\Program Files\\Perforce\\p4merge.exe
[alias]
s = status
aa = add --all
ap = add --patch
ca = commit --amend
ci = commit -v

Custom Twitter Stylesheet

Craig Mod does a bigger overhaul with Twitter for Minimalists, but this will only do the following:

  • Hides promoted tweets and trends
  • Hides the useless “Expand” link that appears under every tweet
  • Tones down the blue conversation line to a barely-visible gray
  • Hides all numbers

You can add this CSS in Safari with this extension. The URL to target is twitter.com/*.

@andreimoment
andreimoment / dabblet.css
Created January 27, 2012 06:35 — forked from chriscoyier/dabblet.css
Animate to natural width
/* Animate to natural width */
body { background: black; padding: 100px; margin: 0; }
.progress-bar {
border: 2px solid red;
border-radius: 14px;
}
.progress-bar > div {
@andreimoment
andreimoment / gist:2143516
Created March 21, 2012 01:41 — forked from JeanMertz/gist:1885444
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (PC)

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

Editing

Ctrl+X delete line
Ctrl+↩ insert line after
Ctrl+⇧+↩ insert line before
Ctrl+⇧+↑ move line (or selection) up
@andreimoment
andreimoment / gist:3835668
Created October 4, 2012 18:58
Everyday Keyboard shortcuts

Outlook

Switch to Mail. CTRL+1
Switch to Calendar. CTRL+2
Switch to Contacts. CTRL+3
Switch to Folder List in Navigation Pane. CTRL+6
Switch to Shortcuts. CTRL+7
Move between the Navigation Pane, the main Outlook window, the Reading Pane, and the To-Do Bar. F6 or CTRL+SHIFT+TAB

ZenCoding

@andreimoment
andreimoment / webdev-tools.md
Created October 15, 2012 17:03 — forked from poteto/webdev-tools.md
Web tools directory
@andreimoment
andreimoment / classes.sass
Created November 5, 2012 23:23 — forked from OutThisLife/classes.sass
classes.sass
/**
* Sass mixins
*/
@charset "UTF-8"
// Force output of above line by adding a unicode character. ♫
// -----------------------------------------------
@mixin textFillColor($type)