I hereby claim:
- I am jphalip on github.
- I am julienphalip (https://keybase.io/julienphalip) on keybase.
- I have a public key whose fingerprint is 2D00 16F9 CC71 853B 0A39 70A5 41F0 C351 4608 56BC
To claim this, I am signing this object:
diff --git a/restless/dj.py b/restless/dj.py | |
index 9af449d..d963699 100644 | |
--- a/restless/dj.py | |
+++ b/restless/dj.py | |
@@ -6,7 +6,7 @@ from django.core.exceptions import ObjectDoesNotExist | |
from django.http import HttpResponse | |
from django.views.decorators.csrf import csrf_exempt | |
-from .exceptions import NotFound | |
+from .exceptions import NotFound, Unauthorized |
I hereby claim:
To claim this, I am signing this object:
from django.test import TestCase | |
from django_webtest import WebTest | |
""" | |
WebTest rocks. You should check it out: | |
http://webtest.readthedocs.org/en/latest/ | |
https://pypi.python.org/pypi/django-webtest | |
""" | |
from locust import HttpLocust, TaskSet, task | |
from locust import events | |
class UserBehavior(TaskSet): | |
@task | |
def google(self): | |
self.client.get("/") |
vagrant@djangocore:~$ runtests3.3-sqlite | |
Testing against Django installed in '/django/django' | |
Creating test database for alias 'default'... | |
Creating test database for alias 'other'... | |
.........................................................................................................................................................................................s........................................................................................................................................x..........................................................................................................................................................................................................................................................ssssssssssss.sssssssss....................................................................................................................................................................ss........................................................................sssssss |
// Version 1: | |
// MyApp first gets rendered with empty "data", then gets re-rendered with | |
// ajax-fetched data after the stores gets hydrated and triggers the update. | |
import Reflux from 'reflux'; | |
import React from 'react' | |
import $ from 'jQuery' | |
var Actions = Reflux.createActions([ | |
'hydrate' |
$ terraform apply | |
google_compute_network.cloud: Refreshing state... (ID: cloud) | |
google_compute_address.cloud: Refreshing state... (ID: projects/XXXXXXXX/regions/us-central1/addresses/cloud-static-ip) | |
google_compute_subnetwork.cloud_subnet: Refreshing state... (ID: us-central1/cloud-subnet) | |
An execution plan has been generated and is shown below. | |
Resource actions are indicated with the following symbols: | |
+ create | |
Terraform will perform the following actions: |
Schema: map[string]*schema.Schema{ | |
"name": &schema.Schema{ | |
Type: schema.TypeString, | |
Required: true, | |
}, | |
"region": &schema.Schema{ | |
Type: schema.TypeString, | |
Optional: true, | |
Computed: true, |
# Takes two parameters: target branch and commit message. | |
# Does a hard reset on the target branch then adds a single commit with the diff | |
# between the two branches. Sort of simulates a rebase but without having to | |
# resolve potential conflicts in intermediary commits. | |
function git-hard-rebase() { | |
# Parameter validation | |
if [ "$#" -ne 2 ]; then | |
echo "Usage: git-hard-rebase <branch-to-rebase-on> <commit-message>" | |
return 1 | |
fi |
public static void main(String[] args) throws IOException { | |
System.setProperty("java.net.preferIPv4Stack", "true"); | |
int PORT = 1900; | |
String MULTICAST_GROUP_IPV4 = "239.172.243.75"; | |
InetAddress LOCALHOST = Inet4Address.getByName("127.0.0.1"); | |
byte[] requestBytes = SEARCH_MESSAGE; | |
MulticastSocket socket = new MulticastSocket(new InetSocketAddress(LOCALHOST, 0)); | |
socket.setLoopbackMode(false); | |
socket.setInterface(LOCALHOST); | |
DatagramPacket packet = new DatagramPacket( |