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
Cause | |
java.lang.IllegalStateException: Google properties not yet initialised | |
at com.atlassian.agmp.integration.common.enablement.impl.GooglePropertiesHolder.getGoogleProperties(GooglePropertiesHolder.java:40) | |
Stack Trace:[hide] | |
java.lang.IllegalStateException: Google properties not yet initialised | |
at com.atlassian.agmp.integration.common.enablement.impl.GooglePropertiesHolder.getGoogleProperties(GooglePropertiesHolder.java:40) | |
at sun.reflect.GeneratedMethodAccessor3946.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | |
at java.lang.reflect.Method.invoke(Method.java:597) | |
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) |
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
Q: How many lawyers does it take to change a light bulb? | |
A: Whereas the party of the first part, also known as "Lawyer", and the | |
party of the second part, also known as "Light Bulb", do hereby and forthwith | |
agree to a transaction wherein the party of the second part shall be removed | |
from the current position as a result of failure to perform previously agreed | |
upon duties, i.e., the lighting, elucidation, and otherwise illumination of | |
the area ranging from the front (north) door, through the entryway, terminating | |
at an area just inside the primary living area, demarcated by the beginning of | |
the carpet, any spillover illumination being at the option of the party of the | |
second part and not required by the aforementioned agreement between the |
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
#!/usr/bin/python | |
# | |
# To run: `python crackle.py` | |
# To run tests: `python -m unittest crackle` | |
from collections import defaultdict | |
import unittest | |
def crackle_popper(): |
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
jay@gillespie:~/celery$ celery -A tasks worker --loglevel=info -c 1 | |
[2014-03-11 16:49:53,468: INFO/MainProcess] Received task: mytask[9d6b1e2c-aae7-4314-a7fe-90810b0bd4ac] | |
[2014-03-11 16:49:53,471: WARNING/Worker-1] hi there | |
[2014-03-11 16:50:23,502: INFO/MainProcess] Task mytask[9d6b1e2c-aae7-4314-a7fe-90810b0bd4ac] succeeded in 30.031816568s: hello world |
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
In [9]: months = list(rrule.rrule( | |
rrule.MONTHLY, | |
dtstart=datetime(2013, 4, 1), | |
until=datetime.now() + timedelta(days=31), | |
bymonthday=1, | |
bysetpos=1, | |
)) | |
In [10]: months | |
Out[10]: |
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
<!-- POST https://wwwcie.ups.com/ups.app/xml/Track --> | |
<?xml version="1.0"?> | |
<AccessRequest> | |
<AccessLicenseNumber>LICENSE</AccessLicenseNumber> | |
<Password>PASSWORD</Password> | |
<UserId>USERID</UserId> | |
</AccessRequest> | |
<?xml version="1.0"?> |
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 common import APIException | |
from database import db | |
from flask import request | |
required_fields = ['name', 'subject', 'text', 'html'] | |
def _template_to_api(template): | |
return template | |
def _validate_template(template): |
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
--- | |
- hosts: api | |
user: root | |
tasks: | |
- name: Set up github private key | |
copy: src=FOO dest=/root/.ssh/github mode=0600 |
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> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script> | |
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js"></script> | |
<script type="text/javascript"> | |
var samplePage = angular.module('samplePage', []); |
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
<!-- | |
Download this and name it "angular.html". (If you don't, this demo won't work.) | |
This gives me the console error: "query function not defined for Select2 tags". whyyyyy. | |
--> | |
<html> | |
<head> | |
<link href="https://rawgithub.com/ivaynberg/select2/master/select2.css" rel="stylesheet"> |