Here is some text that has rudimentary formatting
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
<gconfentryfile> | |
<entrylist base="/apps/gnome-terminal"> | |
<entry> | |
<key>global/active_encodings</key> | |
<schema_key>/schemas/apps/gnome-terminal/global/active_encodings</schema_key> | |
<value> | |
<list type="string"> | |
<value> | |
<string>UTF-8</string> | |
</value> |
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
[Background] | |
Color=0,0,0 | |
Transparency=false | |
[BackgroundIntense] | |
Color=20,44,27 | |
Transparency=false | |
[Color0] | |
Color=0,0,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
4 < Jerub> antihero: the api would eventually look like: def render_GET(self, request): return deferToProcess(convert_image, request.args('imageid')).addCallback(lambda image: | |
(request.write(image), request.close())); return NOT_DONE_YET |
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
void* | |
memmove(void *vdst, void *vsrc, int n) | |
{ | |
char *dst, *src; | |
dst = vdst; | |
src = vsrc; | |
if(*vdst > *vsrc) { | |
*vdst += n; | |
*vsrc += n; |
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
<?php $args = array( | |
'post_type' => 'attachment', | |
'orderby' => 'menu_order', | |
'order' => 'ASC', | |
'post_mime_type' => 'image', | |
'post_status' => null, | |
'post_parent' => get_the_ID() | |
); | |
$attachments = get_posts($args); | |
$count=0; $i=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
""" Excuse the horrendous code """ | |
COUNT = 90 | |
WORDS = ['pug', 'user', 'group'] | |
from collections import namedtuple | |
from copy import copy | |
g = [] |
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
# Some sample "models" | |
class Model(object): | |
id = None | |
def save(self, *args, **kwargs): | |
# Here would be some code that would get a list of objects to call | |
# invalidate() on when it is saved, based on self.id |
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
var search_for_address = function(element, o, e_lat, e_lon) { | |
var address = $('#id_address_1').val() + ', ' | |
+ $('#id_city option:selected').text() + ', ' | |
+ $('#id_postcode').val(); | |
var gc = new google.maps.Geocoder(); | |
var request = { | |
address: address | |
} | |
gc.geocode(request, function(result, status) { | |
if (status != 'OK') { |
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
server { | |
listen 80; | |
server_name %(name)s %(aliases)s; | |
client_max_body_size 4G; | |
keepalive_timeout 5; | |
gzip on; | |
gzip_static on; | |
gzip_min_length 1000; | |
gzip_types text/css text/plain text/javascript application/x-javascript application/x-json; |