Skip to content

Instantly share code, notes, and snippets.

View fliptheweb's full-sized avatar
🎯
Focusing

Artur Kornakov fliptheweb

🎯
Focusing
View GitHub Profile
@fliptheweb
fliptheweb / main.js
Created July 16, 2015 07:05
Slack bot for disappointed women
var Session = require('slackr-bot');
var token = 'token for slack';
var session = new Session({
token: token,
webhookClient: {
token: 'token for webhook client',
team: 'aviasales',
username: 'emergency_bot'
}
@fliptheweb
fliptheweb / SassMeister-input.scss
Created April 25, 2014 14:13
Generated by SassMeister.com.
// ----
// Sass (v3.3.5)
// Compass (v1.0.0.alpha.18)
// ----
$color-map: (1: red, 2: blue, 3: green);
@each $color-i, $color-val in $color-map {
.foo-#{$color-i} {
color: $color-val
@fliptheweb
fliptheweb / .gitconfig
Created April 12, 2013 23:53
Alias for downloading repo from github or smthg else without git files, just raw. Sad, but command git --archive dont work on github (https://help.github.com/articles/can-i-archive-a-repository) Usage: git download [email protected]:some-repo.git
[alias]
download = "!f() { git clone --depth 1 $1 ./git-download-tmp/; rm -rf git-download-tmp/.git/; cp -r git-download-tmp/* ./; rm -rf git-download-tmp; }; f"
@fliptheweb
fliptheweb / config.rb
Created November 30, 2012 06:01
Make Sassy classes from png images
# Incude imageList function
require File.join(File.dirname(__FILE__), 'image-list.rb')
@fliptheweb
fliptheweb / dabblet.css
Created November 22, 2012 13:17
Untitled
div {
height: 100px;
}
.with-transform {
background: red;
transform: rotate(1deg);
}
.without-transform {
background: blue;
/* position: relative; */
@fliptheweb
fliptheweb / dabblet.css
Created November 22, 2012 13:17
Untitled
div {
height: 100px;
}
.with-transform {
background: red;
transform: rotate(1deg);
}
.without-transform {
background: blue;
/* position: relative; */
@fliptheweb
fliptheweb / dabblet.css
Created November 20, 2012 04:15
Untitled
body {
padding-top: 100px;
}
.container {
float:left;
height: 300px;
width: 100px;
border: 1px solid #000;
margin-right: 100px;
}
# по модулю реврайте лучше это почитай http://sysoev.ru/nginx/docs/http/ngx_http_rewrite_module.html
# там есть директивы насчет $request_filename
location /events/i/ {
root /path/to/events/i/;
index index.php index.html;
# а если не существует
if (!-f $request_filename) {
rewrite ^(.*)$ /index.php?q=$1 break;
break;
}