Instantly share code, notes, and snippets.

View rest_api_structure.txt
project
|______init__.py
|____api
| |______init__.py
| |____base
| | |______init__.py
| | |____resources.py
| |____hello
| | |______init__.py
| | |____resources.py
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
View devpi.json
{
"result": {
"bases": [
"root/pypi"
],
"pypi_whitelist": [],
"volatile": true,
"acl_upload": [
"san"
],
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
View vue_component.vue
<template>
<div>
<h3>I'm a Survey Component</h3>
</div>
</template>
<script>
export default {
data() {
return {
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
View geonames.py
import sys
import urllib
import urllib2
import json
import logging
class GeonamesError(Exception):
def __init__(self, status):
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())
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
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]