Skip to content

Instantly share code, notes, and snippets.

NotSqrt NotSqrt

Block or report user

Report or block NotSqrt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@zertosh
zertosh / README.md
Last active Sep 30, 2016
solution - super() not calling parent's constructor on IE9 - https://github.com/babel/babelify/issues/133
View README.md

https://github.com/babel/babelify/issues/133

For super calls to work in IE9, you must enable "loose" mode for the class transform. For inherited static properties to work in IE9, you must also add the babel-plugin-transform-proto-to-assign plugin.

View await.py
from IPython.core.magic import Magics, magics_class, line_magic
import asyncio
@magics_class
class AsyncMagics(Magics):
@line_magic
def await(self, line):
return asyncio.get_event_loop().run_until_complete(eval(line, self.shell.user_global_ns, self.shell.user_ns))
@NotSqrt
NotSqrt / settings_test_snippet.py
Last active Feb 13, 2020 — forked from nealtodd/settings_test_snippet.py
Another shot at this problem ..
View settings_test_snippet.py
class DisableMigrations(object):
def __contains__(self, item):
return True
def __getitem__(self, item):
return "notmigrations"
MIGRATION_MODULES = DisableMigrations()
@thm1118
thm1118 / bulk_alter_role
Last active Jun 8, 2018
bulk alter role of postgreSQL's database or table or view .etc
View bulk_alter_role
REASSIGN OWNED BY old_role [, ...] TO new_role
@aboma
aboma / ember.select2.js
Last active Feb 23, 2018
select2.js enabled select box view for ember.js
View ember.select2.js
// Select box utilizing Select2 functionality that overrides Ember.Select;
// Define view in the same way that you would an Ember.Select view.
// Additional attributes supported are: width, allowClear, and closeOnSelect;
// Example view:
// {{ view App.Select2
// viewName="fieldValueSelect2"
// prompt="Please select a value list"
// contentBinding="controller.fieldValuesLists"
// optionLabelPath="content.name"
// optionValuePath="content.id"
@m0n5t3r
m0n5t3r / generate_traffic.py
Created Nov 3, 2010
stats gathering with gunicorn; gstats.py should be run with one sync worker, gunicorn.conf.py should be in your config
View generate_traffic.py
#!/usr/bin/env python
import sys
from random import random
from time import sleep
from threading import Thread, active_count
execfile('gunicorn.conf.py')
You can’t perform that action at this time.