start new:
tmux
start new with session name:
tmux new -s myname
| import urllib2, urllib, sys | |
| from BeautifulSoup import BeautifulSoup | |
| import re | |
| class VisaVale(): | |
| def get_visavale_informations(self,visa): | |
| url = 'http://www.cbss.com.br/inst/convivencia/SaldoExtrato.jsp' | |
| data = urllib.urlencode([('numeroCartao',visa),('primeiroAcesso','S')]) | |
| request = urllib2.Request(url) |
| from django.contrib import admin | |
| from django.contrib.auth.admin import UserAdmin | |
| from django.contrib.auth.models import User | |
| from userprofiles.models import UserProfile | |
| class UserProfileInline(admin.StackedInline): | |
| model = UserProfile | |
| fk_name = 'user' | |
| max_num = 1 |
| """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| " a lot of this was stolen from: http://amix.dk/vim/vimrc.html " | |
| """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| " => VIM user interface | |
| """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| " Set 7 lines to the curors - when moving vertical.. | |
| set so=2 | |
| set wildmenu "Turn on WiLd menu |
| from django.template.loader import add_to_builtins | |
| add_to_builtins('django.contrib.staticfiles.templatetags.staticfiles') | |
| add_to_builtins('django.templatetags.i18n') | |
| add_to_builtins('django.templatetags.future') |
| " Vim color file | |
| " | |
| " Author: André Terra <[email protected]> | |
| " | |
| " Note: Anthony Carapetis original version of github's syntax thmee | |
| " with a few changes, like better .py highlighting and line #s. | |
| " Used Brian Mock's darkspectrum as a starting point/template | |
| " Thanks to Ryan Heath for an easy list of some of the colours: | |
| " http://rpheath.com/posts/356-github-theme-for-syntax-gem |
| import re | |
| import markdown | |
| from markdown.util import etree | |
| class AdmonitionExtension(markdown.Extension): | |
| def extendMarkdown(self, md, md_globals): | |
| md.registerExtension(self) |
| Option Explicit | |
| Function GetBrighterPlanetApiKey() | |
| GetBrighterPlanetApiKey = ActiveWorkbook.Worksheets("Setup").Range("C2").Value | |
| End Function | |
| Function IsEmissionEstimateServiceOnline() | |
| If LCase(ActiveWorkbook.Worksheets("Setup").Range("C3").Value) = "online" And ThisWorkbook.HasFinishedWorkbookOpen() = True Then | |
| IsEmissionEstimateServiceOnline = True | |
| Else |
| ; | |
| ; AutoHotkey Version: 1.x | |
| ; Language.........: English | |
| ; Platform.........: NT/XP/Vista | |
| ; Author...........: mrBTK | |
| ; | |
| ; Script Function..: Make Apple Wireless Keyboard useful in MS Windows: | |
| ; - EJECT = Delete with repeat deleting on long pressing. Shift-DEL and other combinations works too. | |
| ; - Swap FN & left Control | |
| ; - FN-functions оn F3-F12 keys and arrow keys (use new-FN) |
| # | |
| # Copyright (C) 2013-2020 Vinay Sajip. New BSD License. | |
| # | |
| import os | |
| import os.path | |
| from subprocess import Popen, PIPE | |
| import sys | |
| from threading import Thread | |
| from urllib.parse import urlparse | |
| from urllib.request import urlretrieve |