This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Description='A wpa_supplicant configuration file based wireless connection' | |
Interface=wlp2s0 | |
Connection=wireless | |
Security=wpa-config | |
WPAConfigFile='/etc/wpa_supplicant/wpa_supplicant.conf' | |
IP=dhcp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wlp2s0 IEEE 802.11bgn ESSID:"ASDF" | |
Mode:Managed Frequency:2.437 GHz Access Point: 123 | |
Bit Rate=54 Mb/s Tx-Power=16 dBm | |
Retry long limit:7 RTS thr:off Fragment thr:off | |
Encryption key:off | |
Power Management:off | |
Link Quality=57/70 Signal level=-53 dBm | |
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 | |
Tx excessive retries:0 Invalid misc:28 Missed beacon:0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MetaA(type): | |
def __call__(cls, *args, **kwargs): | |
for name, class in cls.__dict__.iteritems(): | |
if issubclass(class.__class__, B): | |
# Do something | |
return # class A with modified fields | |
class B(object): | |
.... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#include <cstdlib> | |
#include <cassert> | |
#include <ctime> | |
#include <cmath> | |
#include <cstring> | |
#include <algorithm> | |
#include <vector> | |
using namespace std; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "<console>", line 1, in <module> | |
File "/home/lion/.virtualenvs/test/lib/python2.6/site-packages/django/db/models/query.py", line 69, in __repr__ | |
data = list(self[:REPR_OUTPUT_SIZE + 1]) | |
File "/home/lion/.virtualenvs/test/lib/python2.6/site-packages/django/db/models/query.py", line 84, in __len__ | |
self._result_cache.extend(self._iter) | |
File "/home/lion/.virtualenvs/test/lib/python2.6/site-packages/django/db/models/query.py", line 273, in iterator | |
for row in compiler.results_iter(): | |
File "/home/lion/.virtualenvs/test/lib/python2.6/site-packages/django/db/models/sql/compiler.py", line 680, in results_iter | |
for rows in self.execute_sql(MULTI): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from base import Language, StaffMember, Faq, FaqTranslation, Testimonial, TestimonialTranslation, Address, Branch, CityPart, District | |
from cms import Page, ContentName, OneColumnRow, TwoColumnRow, ThreeColumnRow, EmptyRow, ThreePictureRow, FourPictureRow, RealMedia, TabbedMedia | |
from news import NewsLetterSubscription, NewsLetter, EmailAlert | |
from property import PropertyDescription, PropertyThumbnail, PropertyCoordinate, Property | |
from static_translation import TextElement, TextElementTranslation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
events { | |
worker_connections 1024; | |
use epoll; | |
} | |
http { | |
server { | |
listen 80; | |
server_name 127.0.0.1; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
google.maps.event.addListener(marker, 'click', function() { | |
alert('bubba'); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from django.core.management import execute_manager | |
import imp | |
try: | |
imp.find_module('settings') # Assumed to be in the same directory. | |
except ImportError: | |
import sys | |
sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n" % __file__) | |
sys.exit(1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Django settings for testsite project. | |
import os | |
ProjectDir = os.getcwd() | |
print 'ProjectDir', ProjectDir | |
DEBUG = True | |
TEMPLATE_DEBUG = DEBUG | |
ADMINS = ( |