Skip to content

Instantly share code, notes, and snippets.

View alexshk's full-sized avatar
🙊
Forking from home

Alex S. alexshk

🙊
Forking from home
  • WB
  • Sydney
View GitHub Profile
@alexshk
alexshk / deploy.rb
Created June 2, 2010 06:19
my rails template
# set up the databases
rake "db:create", :env => 'development'
rake "db:create", :env => 'test'
# bundler
file 'Gemfile', %{
source :gemcutter
gem "mysql", "2.8.1"
gem "rails", "~> 2.3.8"
xml file:
---
<match>
<id>1053</id>
<name>Южная Африка - Мексика</name>
<start>2010-06-11 18:00:00</start>
<status>finished</status>
<stage>Групповой этап</stage>
<stadium>Соккер Сити</stadium>
<judge>Равшан Ирматов</judge>
# set up the databases
rake "db:create", :env => 'development'
# bundler
file 'Gemfile', %{
source :gemcutter
gem "mysql", "2.8.1"
gem "rails", "~> 2.3.8"
gem "authlogic"
@alexshk
alexshk / pp_error.txt
Created June 7, 2011 19:00
Lion DP 4 Passenger PrefPane error
Process: System Preferences [785]
Path: /Applications/System Preferences.app/Contents/MacOS/System Preferences
Identifier: com.apple.systempreferences
Version: 11.0 (11.0)
Build Info: SystemPrefsApp-208000000000000~1
Code Type: X86 (Native)
Parent Process: ??? [1]
Date/Time: 2011-06-07 22:59:44.506 +0400
OS Version: Mac OS X 10.7 (11A480b)
@alexshk
alexshk / styles.sass
Created September 17, 2011 19:04
Sassy boilerplate2 styles (-print)
/*
* HTML5 ✰ Boilerplate
*
* What follows is the result of much research on cross-browser styling.
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
* Kroc Camen, and the H5BP dev community and team.
*
* Detailed information about this CSS: h5bp.com/css
*
* ==|== normalize ==========================================================
@alexshk
alexshk / gist:1234559
Created September 22, 2011 11:17
.osx
# Show indicator lights for open applications in the Dock
defaults write com.apple.Dock show-process-indicators -bool true
# Don’t animate opening applications from the Dock
defaults write com.apple.Dock launchanim -bool false
# Expand save panel by default
defaults write -g NSNavPanelExpandedStateForSaveMode -bool true
# Expand print panel by default
@alexshk
alexshk / README.markdown
Created December 9, 2011 11:02 — forked from marijn/README.markdown
List of countries in YAML, CSV and TXT format
@alexshk
alexshk / layout.haml
Created March 5, 2012 07:41
boilerplate haml layout
!!! 5
/[if lt IE 7] <html lang="en" class="no-js lt-ie9 lt-ie8 lt-ie7">
/[if IE 7 ] <html lang="en" class="no-js lt-ie9 lt-ie8">
/[if IE 8 ] <html lang="en" class="no-js lt-ie9">
<!--[if gt IE 8]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
%head
%meta(charset="utf-8")
%meta(http-equiv="X-UA-Compatible" content="IE=edge,chrome=1")
%title
%meta(name="description" content="")
@alexshk
alexshk / hamlhtml5boilerplate.html.haml
Created May 13, 2012 18:17 — forked from neiled/hamlhtml5boilerplate.html.haml
My haml version of the html 5 boiler plate code
!!! 5
/[if lt IE 7] <html lang="en" class="no-js ie6">
/[if IE 7 ] <html lang="en" class="no-js ie7">
/[if IE 8 ] <html lang="en" class="no-js ie8">
/[if IE 9 ] <html lang="en" class="no-js ie9">
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
%head
%meta{:charset => "utf-8"}/
/
Always force latest IE rendering engine (even in intranet) &amp; Chrome Frame
@alexshk
alexshk / movie.json
Created June 4, 2012 11:39
How it works

Вот кусок кода плеера:

`

`

В $('#playerProgress').data('current-position') пишется текущее положение прогресс-бара при просмотре фильма в процентах. В $('#playerProgress').data('current-timeframe') пишется положение прогресс-бара в секундах с начала фильма.