Instantly share code, notes, and snippets.

🎯
Busy
Focusing

Sanjeev Kumar sanfx

View GitHub Profile
View rest_api_structure.txt
project
|______init__.py
|____api
| |______init__.py
| |____base
| | |______init__.py
| | |____resources.py
| |____hello
| | |______init__.py
| | |____resources.py
@sanfx
sanfx / vuetify-datepicker.vue
Created Jul 11, 2018
single file component vuetify date picket
View vuetify-datepicker.vue
<template
<v-layout row wrap>
<v-flex xs12 sm6 md4>
<v-menu
ref="menu"
:close-on-content-click="false"
v-model="menu"
:nudge-right="40"
:return-value.sync="date"
lazy
@sanfx
sanfx / devpi.json
Created May 29, 2018
devpi json result of new index
View devpi.json
{
"result": {
"bases": [
"root/pypi"
],
"pypi_whitelist": [],
"volatile": true,
"acl_upload": [
"san"
],
@sanfx
sanfx / devpi-server-article.md
Created May 28, 2018 — forked from chronossc/devpi-server-article.md
Article/how to about how install devpy-server (not finished yet)
View devpi-server-article.md

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
sanfx / vue_component.vue
Created Mar 11, 2018
standard template, script, and style sections along with the code example
View vue_component.vue
<template>
<div>
<h3>I'm a Survey Component</h3>
</div>
</template>
<script>
export default {
data() {
return {
@sanfx
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
=============================
**http://kickass.to/infiniteskills-learning-jquery-mobile-working-files-t7967156.html
**http://kickass.to/lynda-bootstrap-3-advanced-web-development-2013-eng-t8167587.html
**http://kickass.to/lynda-css-advanced-typographic-techniques-t7928210.html
**http://kickass.to/lynda-html5-projects-interactive-charts-2013-eng-t8167670.html
**http://kickass.to/vtc-html5-css3-responsive-web-design-course-t7922533.html
*http://kickass.to/10gen-m101js-mongodb-for-node-js-developers-2013-eng-t8165205.html
*http://kickass.to/cbt-nuggets-amazon-web-services-aws-foundations-t7839734.html
@sanfx
sanfx / geonames.py
Created Jul 31, 2017 — forked from pamelafox/geonames.py
Geonames Python wrapper
View geonames.py
import sys
import urllib
import urllib2
import json
import logging
class GeonamesError(Exception):
def __init__(self, status):
@sanfx
sanfx / custom_ui_docked.py
Last active Jul 25, 2017 — forked from fredrikaverpil/custom_ui_docked.py
Create custom PySide GUI and dock it into Nuke UI
View custom_ui_docked.py
import PySide.QtCore as QtCore
import PySide.QtGui as QtGui
from nukescripts import panels
## https://docs.thefoundry.co.uk/nuke/70/pythonreference/nukescripts.panels-module.html
class PanelTest(QtGui.QWidget):
def __init__(self, parent=None):
QtGui.QWidget.__init__(self, parent)
self.setLayout(QtGui.QVBoxLayout())
@sanfx
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
@sanfx
sanfx / backup_script.py
Created Jun 9, 2017 — forked from jvkersch/backup_script.py
Python wrapper around to rsync to facilitate backup
View backup_script.py
#!/usr/bin/env python
"""
A simple wrapper around rsync for backup.
Usage: create a text file with on each line a resource that you wish to
backup. Paths should be relative to the user's home directory. Entries
starting with '#' are ignored, as are blank lines. Call this script via
python backup_script.py -i [backup_files.txt] [rsync_target_folder]