Skip to content

Instantly share code, notes, and snippets.

View fnnzzz's full-sized avatar

Vlad Feninets fnnzzz

View GitHub Profile
@fnnzzz
fnnzzz / package.json
Created January 15, 2017 01:04
node-sass, browserify
{
"name": "npm-node-sass",
"version": "0.0.1",
"devDependencies": {
"autoprefixer": "^6.3.3",
"browserify": "^13.0.0",
"cssnano": "^3.5.2",
"jshint": "^2.9.1",
"node-sass": "^3.4.2",
"postcss": "^5.0.16",
@fnnzzz
fnnzzz / bash.sh
Created December 5, 2016 09:26
extension files delete recursively
find . -name "*.pyc" -type f -print0 | xargs -0 /bin/rm -f
@fnnzzz
fnnzzz / function-bind.js
Created October 29, 2016 14:07 — forked from Daniel-Hug/function-bind.js
Polyfill for Function.prototype.bind
Function.prototype.bind=(function(){}).bind||function(b){if(typeof this!=="function"){throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");}function c(){}var a=[].slice,f=a.call(arguments,1),e=this,d=function(){return e.apply(this instanceof c?this:b||window,f.concat(a.call(arguments)));};c.prototype=this.prototype;d.prototype=new c();return d;};
@fnnzzz
fnnzzz / hack.js
Created October 24, 2016 21:04
trigger event
window.dispatchEvent(new Event('resize'));
@fnnzzz
fnnzzz / command.py
Created October 13, 2016 15:45
django_custom_command
from django.core.management.base import BaseCommand, CommandError
from apps.mainpage.models import Contacts
class Command(BaseCommand):
def handle(self, *args, **options):
Contacts.objects.create(name="Social")
self.stdout.write(self.style.SUCCESS('Successfully creeate Contacts Obj'))
@fnnzzz
fnnzzz / gunicorn.sh
Created September 25, 2016 10:15
run gunicorn
gunicorn woodshed.wsgi --bind=localhost:8001 --daemon
@fnnzzz
fnnzzz / viewport.html
Created September 9, 2016 09:22
meta_viewport
<meta name="viewport" content="width=device-width, initial-scale=0.6, maximum-scale=1.0, user-scalable=1">
@fnnzzz
fnnzzz / MaskedTextField.jsx
Created August 29, 2016 15:57 — forked from coderberry/MaskedTextField.jsx
MaskedTextField with material-ui
/** @jsx React.DOM */
var React = require('react')
, mui = require('material-ui')
, { TextField } = mui
, $ = require('jquery');
require('jquery.inputmask');
var MaskedTextField = React.createClass({
@fnnzzz
fnnzzz / git-config.conf
Created August 25, 2016 11:46
git-config
git config --global user.name "Vlad Feninets"
git config --global user.email v.feninets@gmail.com
git config --global color.ui true
git config --global core.autocrlf input
@fnnzzz
fnnzzz / create_virtualenv.sh
Created August 23, 2016 14:48
create virtualenv with djanga
1) mkdir venv_new
2) virtualenv venv_new/ --always-copy
3) source ./bin/activate
4) pip install Django