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
asdf |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>ofCode</title> | |
<meta name="google-site-verification" content="mNd96hqqJrfLl0D_QwRfLby5MWWqxHS1pZqqr92aJSQ" / | |
<!--[if IE]> | |
<script src="http://assets1.ofcode.org/javascripts/html5.js"></script> | |
<![endif]--> | |
% if c.sub_domain == 'paste': |
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 inspect | |
import re | |
class run_before(object): | |
"""Takes a function, and returns a class/method decorator""" | |
def __init__(self, func, name_descriminator=r'[^_]+'): | |
"""Initialize the run_before decorator | |
Takes a func that will be called every time before any of the | |
classes methods (or a function itself if directly decorated). |
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
html { | |
background-color: -moz-dialog; | |
} | |
body { | |
margin: 0; | |
overflow: auto; | |
font-family: Lucida Grande, sans-serif; | |
font-size: 11px; | |
border-top: 1px solid #BBB9BA; |
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
@view_config(context=Page, name="edit", route_name="pages", permission="admin") | |
@view_config(context=Page, name="edit", route_name="pages_by_url", permission="admin") | |
def view_page_edit(context, request): | |
return Response("edit '%s'" % context.title) | |
# would be nice if... | |
@view_config(context=Page, name="edit", route_name="*", permission="admin") | |
def view_page_edit(context, request): | |
return Response("edit '%s'" % context.title) |
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
{-# LANGUAGE QuasiQuotes #-} | |
{-# LANGUAGE TemplateHaskell #-} | |
{-# LANGUAGE TypeFamilies #-} | |
module Main | |
( | |
main | |
) where | |
import Conduit |
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
Configuring hashable-1.2.2.0... | |
Building hashable-1.2.2.0... | |
Preprocessing library hashable-1.2.2.0... | |
[1 of 3] Compiling Data.Hashable.Class ( Data/Hashable/Class.hs, dist/dist-sandbox-921acbd0/build/Data/Hashable/Class.o ) | |
Data/Hashable/Class.hs:201:11: Warning: | |
In the use of ‘bitSize’ (imported from Data.Bits): | |
Deprecated: "Use 'bitSizeMaybe' or 'finiteBitSize' instead" | |
Data/Hashable/Class.hs:224:11: Warning: |
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
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
module Main | |
( | |
main | |
) where | |
import Control.Concurrent | |
import qualified Control.Exception as E |
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": null, | |
"title": "Grafana", | |
"originalTitle": "Grafana", | |
"tags": [], | |
"style": "dark", | |
"timezone": "browser", | |
"editable": true, | |
"hideControls": false, | |
"rows": [ |
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
First, checkout the code: | |
$ git clone https://github.com/mozilla-services/autopush.git | |
$ git clone https://github.com/mozilla-services/simplepush_test.git | |
Setup the tester (assumes virtualenv is on the path): | |
$ cd simplepush_test | |
(simplepush_test/) $ make | |
Setup the autopush app: |
OlderNewer