Skip to content

Instantly share code, notes, and snippets.

View nulltier's full-sized avatar
💭
on my way

Alexander Zonov nulltier

💭
on my way
  • Yandex
View GitHub Profile
from fabric.api import *
import os
import fabric.contrib.project as project
# Local path configuration (can be absolute or relative to fabfile)
env.theme = 'themes/your-theme'
env.deploy_path = '/absolute/path/for/generated/output'
# Remote server configuration
prod = '[email protected]:22'
<?php
/**
* Formats decimal numbers with the PHP's number_format().
* Use it as output filter like: [[+decimalNumber:NumberFormat=`d=2&ds=,&ts=.`]]
*
* Parameters:
* d - Decimals. The number of decimals to show. Default to 2
* ds - Decimal seperator. Default to '.'
* ts - Thousands separator. Default empty
*
@nulltier
nulltier / 0_reuse_code.js
Last active August 29, 2015 14:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@nulltier
nulltier / .htaccess
Created December 28, 2015 06:55
Header set Access-Control-Allow-Origin in .htaccess
Header add Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type"
Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"