Skip to content

Instantly share code, notes, and snippets.

View andreimoment's full-sized avatar

Andrei Andreev andreimoment

View GitHub Profile
@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
@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 / 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 / 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
<textarea name="my-xml-editor" data-editor="xml" rows="15"></textarea>
...
<textarea name="my-markdown-editor" data-editor="markdown" rows="15"></textarea>
...
<script src="//d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js"></script>
<script>
// Hook up ACE editor to all textareas with data-editor attribute
$(function () {
@andreimoment
andreimoment / .gitconfig
Last active December 26, 2015 04:39 — forked from orj/.gitconfig
gitconfig settings for p4merge
[merge]
keepBackup = false
tool = custom
[mergetool "custom"]
cmd = /Applications/p4merge.app/Contents/Resources/launchp4merge "$BASE" "$REMOTE" "$LOCAL" "$MERGED"
keepTemporaries = false
trustExitCode = false
keepBackup = false
class RomanNumeral
def self.add_roman(roman_number)
result = 0
roman_number.each_char do |c|
result += roman_lookup(c)
end
@andreimoment
andreimoment / SassMeister-input.scss
Created December 10, 2012 21:15
Generated by SassMeister.com, the Sass playground.
// Sass v3.2.3
$menu-text-color: #333;
$menu-bg-color: #ccc;
#navbar {
width: 80%;
height: 23px;
@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)
@andreimoment
andreimoment / webdev-tools.md
Created October 15, 2012 17:03 — forked from poteto/webdev-tools.md
Web tools directory