Skip to content

Instantly share code, notes, and snippets.


Sanjeev Kumar sanfx

Block or report user

Report or block sanfx

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
sanfx /
Last active May 3, 2019
callable object class and magic methods __call__, __getitem__
class BaseClass(object):
def __init__(self):
"""Initialise newly created object.
super(BaseClass, self).__init__()
print "Constructor called."
def __call__(self, storage):
"""Implements function call operator.
View rest_api_structure.txt
| |
| |____base
| | |
| | |
| |____hello
| | |
| | |
sanfx / vuetify-datepicker.vue
Created Jul 11, 2018
single file component vuetify date picket
View vuetify-datepicker.vue
<v-layout row wrap>
<v-flex xs12 sm6 md4>
sanfx / devpi.json
Created May 29, 2018
devpi json result of new index
View devpi.json
"result": {
"bases": [
"pypi_whitelist": [],
"volatile": true,
"acl_upload": [
sanfx /
Created May 28, 2018 — forked from chronossc/
Article/how to about how install devpy-server (not finished yet)

dev-pi install howto

This guide follow instructions in the devpi quickstart server guide. We will install in own user home using virtualenvs, than, will setup a nginx instance. Server used here is Ubuntu Server 12.04 LTS in one virtualbox instance.

Create devpi user

root ~ # useradd -m -U -s /bin/bash devpi
root ~ # passwd devpi
sanfx / vue_component.vue
Created Mar 11, 2018
standard template, script, and style sections along with the code example
View vue_component.vue
<h3>I'm a Survey Component</h3>
export default {
data() {
return {
sanfx / Galaxy Of Tutorial Torrents
Created Sep 25, 2017 — forked from iHassan/Galaxy Of Tutorial Torrents
Ultimate Galaxy Of Tutorial Torrents
View Galaxy Of Tutorial Torrents
sanfx /
Created Jul 31, 2017 — forked from pamelafox/
Geonames Python wrapper
import sys
import urllib
import urllib2
import json
import logging
class GeonamesError(Exception):
def __init__(self, status):
sanfx /
Last active Jul 25, 2017 — forked from fredrikaverpil/
Create custom PySide GUI and dock it into Nuke UI
import PySide.QtCore as QtCore
import PySide.QtGui as QtGui
from nukescripts import panels
class PanelTest(QtGui.QWidget):
def __init__(self, parent=None):
QtGui.QWidget.__init__(self, parent)
sanfx / docker commands
Created Jun 10, 2017
useful docker commands
View docker commands
# will forcibly remove the docker container by stopping it and then build new from current location
docker rm -f `docker ps -q -a` ; docker build -t armin:v1 .
# will run the newly built container and then enter container's bash shell of container.
docker exec -it `docker run -itd armin:v1` bash
You can’t perform that action at this time.