Public Gists by mikhailov

Gravatar
Wed Nov 18 21:59:26 -0800 2009
1
2
3
#!/bin/sh
folder=/media/storage/Backup/
file=$folder/backup_$(date +"%Y_%m_%d_%H-%M")
Gravatar
Sun Nov 15 20:46:17 -0800 2009
1
2
3
require(File.dirname(__FILE__) + '/../config/environment') unless defined?(Rails)
 
class DbIndexes
Gravatar
Wed Aug 26 01:39:30 -0700 2009
1
2
3
class Page < ActiveRecord::Base
  acts_as_nested_set if table_exists?
  has_many :tasks, :dependent => :destroy
Gravatar
Sun Aug 16 23:08:52 -0700 2009
1
2
3
vim /etc/nginx/sites-available/railsapp.conf
 
upstream thin {
Gravatar
Wed Jul 29 23:32:13 -0700 2009
1
2
3
function addMarkerToMap(address,tdate) {
  geocoder.getLatLng(address, function(point) {
    if (point) {
gist: 115918 jQuery beatiful code exampl...
Gravatar
Thu May 21 20:55:15 -0700 2009
1
2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml">
Gravatar
Tue Apr 28 23:27:35 -0700 2009
1
2
3
  def set_locale
    locale = params[:locale] || cookies[:locale] || request.headers['HTTP_ACCEPT_LANGUAGE'].split(',').map { |l| l.split(';').first }
 
Gravatar
Mon Apr 27 00:53:53 -0700 2009
1
2
3
    sendfile on;
    tcp_nopush on;
    tcp_nodelay off;
Gravatar
Tue Mar 31 07:54:28 -0700 2009
1
2
3
Varify Email address Format
Matches a limited version of the RFC 2822 addr-spec form.
 
Gravatar
Mon Mar 23 03:19:12 -0700 2009
1
2
3
def get_interview_by_candidate(cond)
  case cond
    when :awaited then s = false; c = false