Skip to content

Instantly share code, notes, and snippets.

View resure's full-sized avatar

Gadzhi Gadzhiev resure

View GitHub Profile
SELECT "S"."ФИО"
FROM "Студент" AS "S", "Результат" AS "R",
(SELECT "Код" FROM "Ведомость"
WHERE "Предмет" = 3 AND "Дата" >= {D '2007-01-01' }
AND "Дата" <= {D '2007-06-01' }
) AS "V"
c() { cd ~/code/$1; }
_c() { _files -W ~/code -/; }
compdef _c c
h() { cd ~/$1; }
_h() { _files -W ~/ -/; }
compdef _h h
export EDITOR='mate -w'
/*!
* Bootstrap v2.1.1
*
* Copyright 2012 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
*/
.clearfix{*zoom:1;}.clearfix:before,.clearfix:after{display:table;content:"";line-height:0;}
@resure
resure / gist:4134330
Last active October 13, 2015 03:47
Скрипты для MATLAB
@resure
resure / Capfile
Created June 26, 2013 13:15
Hatbot deploy Capfile
require 'railsless-deploy'
server 'scpfoundation.net', :web, :app, :db, primary: true
set :application, "hatbot"
set :user, "deployer"
set :use_sudo, false
set :scm, :git
set :ssh_options, { forward_agent: true }
set -g default-terminal 'screen-256color'
# act like vim
setw -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
class Logger
include Cinch::Plugin
listen_to :connect, method: :setup
# listen_to :disconnect, method: :cleanup
listen_to :channel, method: :log_message
listen_to :topic, method: :log_topic
listen_to :action, method: :log_action
listen_to :leaving, method: :log_leaving
listen_to :join, method: :log_join
require "bundler/capistrano"
server 'scpfoundation.net', :web, :app, :db, primary: true
set :application, "scpfoundation"
set :user, "deployer"
set :deploy_to, "/home/#{user}/apps/#{application}"
set :deploy_via, :remote_cache
set :use_sudo, false
var count = function (data) {
var left = 0,
right = data.length - 1,
result = 0;
for (i = left + 1; i < right; i++) {
if (data[i] < data[left])
result += data[left] - data[i];
else
left = i;
@resure
resure / keymap.json
Created November 10, 2013 00:11
sublimetext config files
[
{ "keys": ["home"], "command": "move_to", "args": {"to": "hardbol", "extend": false} },
{ "keys": ["end"], "command": "move_to", "args": {"to": "hardeol", "extend": false} },
{ "keys": ["ctrl+a"], "command": "move_to", "args": {"to": "bol", "extend": false}},
{ "keys": ["ctrl+e"], "command": "move_to", "args": {"to": "eol", "extend": false}},
{ "keys": ["ctrl+x","a"], "command": "select_all"},
{ "keys": ["ctrl+b"], "command": "move", "args": {"by": "characters", "forward": false} },
{ "keys": ["ctrl+f"], "command": "move", "args": {"by": "characters", "forward": true} },
{ "keys": ["ctrl+x", "f"], "command": "show_panel", "args": {"panel": "find", "reverse": false} },