Skip to content

Instantly share code, notes, and snippets.

@Holek
Holek / dabblet.css
Created February 1, 2012 14:51 — forked from anonymous/dabblet.css
CSS3 rotation with transform-origin working with IE 7+
/**
* CSS3 rotation with transform-origin working with IE 7+
*/
#some_block{
-webkit-transform: rotate(-90deg);
-webkit-transform-origin: 100% 100%;
/* Saf3.1+, Chrome */
-moz-transform: rotate(-90deg);
@Holek
Holek / bash-autocomplete-script
Created November 25, 2011 09:16
Git autocomplete for bash on a Mac script
curl https://raw.github.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash
echo "source ~/.git-completion.bash" >> ~/.bash_profile
@Holek
Holek / birthday_console
Created October 17, 2011 09:48
Birthday gem examples
> User.find_birthdays_for(Date.parse('04-04-2000'))
=> [#<User id: 23, birthday: "1961-04-04">, #<User id: 34, birthday: "1985-04-04">]
@Holek
Holek / git-clone.txt
Created March 7, 2011 15:04
How to clone a repository into another repository from a specific point
$ git init
Initialized empty Git repository in .git/
$ git remote add origin git@repository.com:to/copy/to.git
$ git remote add to-clone git@repository.com:to/copy.git
$ git fetch to-clone
remote: Counting objects: 1584, done.
remote: Compressing objects: 100% (1505/1505), done.
remote: Total 1584 (delta 936), reused 0 (delta 0)
Receiving objects: 100% (1584/1584), 843.34 KiB | 623 KiB/s, done.
Resolving deltas: 100% (936/936), done.
@Holek
Holek / example_4.html.erb
Created February 22, 2011 16:44
More instructions and examples for facebook_share gem
<script type="text/javascript">
<%= facebook_share :name => "Some Fancy Title",
:picture => "http://pic.tu.re/of/awesomeness.png",
:description => "I am the awesome description of this page, how cool is that?" %>
</script>
@Holek
Holek / application_helper.rb
Created February 22, 2011 14:42
Instructions and examples for facebook_share gem
module ApplicationHelper
include FacebookShare
end
@Holek
Holek / transliteration_controller.rb
Created December 11, 2010 16:48
Transliteration controller with Unicode class problem
# coding: utf-8
class TransliterationController < ApplicationController
def view
end
def result
if request.post?
@errors = []