Skip to content

Instantly share code, notes, and snippets.

View qs.py
import jwt
from jwt import PyJWKClient
class AuthError(Exception):
def __init__(self, error, status_code):
self.error = error
self.status_code = status_code
@classmethod
View auth0-assign-roles.py
import http.client
conn = http.client.HTTPSConnection("https://YOUR_DOMAIN")
payload = "{ \"roles\": [ \"ROLE_ID\", \"ROLE_ID\" ] }"
headers = {
'authorization': "Bearer MGMT_API_ACCESS_TOKEN",
'cache-control': "no-cache",
'content-type': "application/json"
View gist:c12d60803b5998bc1e6f291dd8342ee4
01/30 09:25 AM (1h)
Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
01/30 09:25 AM (1h)
Collecting idna<2.9,>=2.5 (from requests)
01/30 09:25 AM (1h)
Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB)
01/30 09:25 AM (1h)
Collecting certifi>=2017.4.17 (from requests)
01/30 09:25 AM (1h)
Downloading https://files.pythonhosted.org/packages/9f/e0/accfc1b56b57e9750eba272e24c4dddeac86852c2bebd1236674d7887e8a/certifi-2018.11.29-py2.py3-none-any.whl (154kB)
@jpadilla
jpadilla / CODE_OF_CONDUCT.md
Created Nov 6, 2018
Greater Hartford Python Group - Code of Conduct
View CODE_OF_CONDUCT.md

Greater Hartford Python Group is dedicated to providing a respectful, harassment-free community for everyone. We do not tolerate harassment or bullying of any community member in any form. This does not only extend to members to local Greater Hartford Python Group communities, but to anyone who chooses to become involved in the larger Greater Hartford Python Group community of users, developers and integrators through events or interactions.

Harassment includes offensive verbal/electronic comments related to personal characteristics or choices, sexual images or comments in public or online spaces, deliberate intimidation, bullying, stalking, following, harassing photography or recording, sustained disruption of talks, IRC chats, electronic meetings, physical meetings or other events, inappropriate physical contact, or unwelcome sexual attention. Participants asked to stop any harassing or bullying behavior are expected to comply immediately.

If a participant engages in harassing behavior, representatives of

View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View components.amount-input.js
import Ember from 'ember';
import { computed } from '@ember/object';
import { createNumberMask } from 'ember-text-mask-addons';
const numberMask = createNumberMask({
prefix: "$"
})
export default Ember.Component.extend({
mask: numberMask,
View finding-records.md

The Ember Data store provides an interface for retrieving records of a single type.

Retrieving a Single Record

Use store.findRecord() to retrieve a record by its type and ID. This will return a promise that fulfills with the requested record:

// GET /blog-posts/1
this.get('store').findRecord('blog-post', 1)
View DeclarationStrings.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>af</key>
<string>a á â b c d e é è ê ë f g h i î ï j k l m n o ô ö p q r s t u û v w x y z</string>
<key>agq</key>
<string>a à â ǎ ā b c d e è ê ě ē ɛ ɛ̀ ɛ̂ ɛ̌ ɛ̄ f g h i ì î ǐ ī ɨ ɨ̀ ɨ̂ ɨ̌ ɨ̄ k l m n ŋ o ò ô ǒ ō ɔ ɔ̀ ɔ̂ ɔ̌ ɔ̄ p s t u ù û ǔ ū ʉ ʉ̀ ʉ̂ ʉ̌ ʉ̄ v w y z ʔ</string>
<key>ak</key>
<string>a b d e ɛ f g h i k l m n o ɔ p r s t u w y</string>