This file contains 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
.data | |
int_pattern: .ascii "%d\12\0" | |
string_pattern: .ascii "%s\12\0" | |
.text | |
.globl _print_int | |
_print_int: | |
pushl %ebp | |
movl %esp, %ebp | |
pushl %ebx |
This file contains 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
{ | |
'longrepr':{ | |
'sections':[ | |
], | |
'reprcrash':{ | |
'path':'/Users/felipecruz/Projects/loogica/neurotic/tests/test_report_plugin.py', | |
'message':'assert 0 == 1', | |
'lineno':9 | |
}, |
This file contains 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
{ | |
"id": 1, | |
"reports": [ | |
{ | |
"longrepr": null, | |
"when": "call", | |
"nodeid": "tests/test_domain.py::test_test_report_repository__init", | |
"duration": 0.0006470680236816406, | |
"location": [ | |
"tests/test_domain.py", |
This file contains 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
DATABASES = { | |
'default': { | |
'ENGINE': 'django.db.backends.sqlite3', | |
'NAME': '/home/meuusuario/projeto/jamboree.db', | |
'USER': '', | |
'PASSWORD': '', | |
'HOST': '', | |
'PORT': '', | |
} | |
} |
This file contains 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
import timeit | |
pickle_code = ''' | |
import pickle | |
data = {"test": "value"} | |
with open('out.pickle', 'wb') as out: | |
for i in range(10000): | |
out.write(pickle.dumps(data, pickle.HIGHEST_PROTOCOL)) |
This file contains 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 <stdint.h> | |
uint8_t next (uint8_t *data) { | |
static int running = 0; | |
static uint8_t *current; | |
switch (running) { | |
case 0: goto L0; | |
case 1: goto L1; | |
} |
This file contains 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
import re | |
''' | |
pip install flask | |
pip install coopy | |
''' | |
from coopy.base import init_persistent_system | |
from flask import Flask, request, redirect, jsonify |
This file contains 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 django.conf import settings | |
from django.db.models import get_apps, get_app, get_models | |
app = get_app('realestate') | |
source = ''' | |
class %sTest(TestCase): | |
def test_import(self): | |
from %s import %s |
This file contains 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
import ast | |
# just for convenience | |
Assign = ast.Assign | |
Store = ast.Store | |
Module = ast.Module | |
Name = ast.Name | |
Str = ast.Str | |
# creating an assignment statement -> magic = "loogica" |
This file contains 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
zmq/__init__.py:52: in <module> | |
> from zmq.sugar import backend | |
zmq/sugar/__init__.py:16: in <module> | |
> from zmq.sugar import ( | |
zmq/sugar/constants.py:16: in <module> | |
> from .backend import constants | |
zmq/sugar/backend.py:29: in <module> | |
> from zmq.cffi_core import ( | |
zmq/cffi_core/__init__.py:1: in <module> | |
> from zmq.cffi_core import (constants, error, message, context, socket, |