[shortening]FileName
- _ - директория, содерержащая другие директории
- doc - документация, справочник
- lib - библиотека
- app - приложение
- mapp - мобильное приложение
- capp - консольное приложение
def fnServer(port, N=10): | |
s = socket.socket() | |
s.bind(('0.0.0.0', port)) | |
s.listen(500) | |
q = Queue() | |
for x in xrange(N): | |
t = threading.Thread(target=fnThreadWorker, args=(q,)) | |
t.daemon = True | |
t.start() | |
print 'Ready and waiting with %d threads on port %d' % ( |
""" | |
Currently there are several options: | |
ip.42.pl | |
jsonip.com | |
httpbin.org | |
ipify.org | |
Below are exact ways you can utilize each of the above. | |
""" |
#!/usr/bin/env ruby | |
fail "[E] Usage:\n\r ruby DIR_NAME <NOP option>\n\r" unless ARGV.first | |
puts "[!] Processing images\n\r" | |
count = 0 | |
sDirectoryName = ARGV.first | |
objDirectory = Dir["#{sDirectoryName}/**/*.{jpg,jpeg,JPG,JPEG,png,PNG}"] # jpg,jpeg,JPG,JPEG, png,PNG |
'use strict'; | |
(function() { | |
window.objLibrary = { | |
"TBitArray": function() { | |
this.prototype = { | |
"aBits": [], | |
var p1 = { | |
x: 20, | |
y: 20 | |
}; | |
var p2 = { | |
x: 40, | |
y: 40 | |
}; |
#!/usr/bin/env bash | |
# ----------------------------------------------------------------------------- | |
# 1. Download SVG | |
if [ ! -f logo.svg ]; then | |
curl https://www.python.org/static/community_logos/python-logo-inkscape.svg > logo.svg | |
fi | |
# ----------------------------------------------------------------------------- |
; /usr/local/bin/nasm -f macho 32.asm && ld -macosx_version_min 10.7.0 -o 32 32.o && ./32 | |
global start | |
section .text | |
start: | |
push dword msg.len | |
push dword msg | |
push dword 1 | |
mov eax, 4 |
#!/usr/bin/python | |
# -*- coding: UTF8 -*- | |
import geoip as mGeoIP | |
import wx as mWX | |
import urllib2 as mURLLib2 | |
import copy as mCopy | |
import re as mRegularExpression | |
import threading as mThreading |
#!/usr/bin/env python | |
# found on <http://files.majorsilence.com/rubbish/pygtk-book/pygtk-notebook-html/pygtk-notebook-latest.html#SECTION00430000000000000000> | |
# simple example of a tray icon application using PyGTK | |
import gtk | |
def message(data=None): | |
"Function to display messages to the user." | |