python3 setup.py build
Output: build/lib.macosx-10.11-x86_64-3.5/hello.cpython-35m-darwin.so
# An example to get the remaining rate limit using the Github GraphQL API. | |
import requests | |
headers = {"Authorization": "Bearer YOUR API KEY"} | |
def run_query(query): # A simple function to use requests.post to make the API call. Note the json= section. | |
request = requests.post('https://api.github.com/graphql', json={'query': query}, headers=headers) | |
if request.status_code == 200: |
import json | |
import requests | |
# Authentication for user filing issue (must have read/write access to | |
# repository to add issue to) | |
USERNAME = 'CHANGEME' | |
PASSWORD = 'CHANGEME' | |
# The repository to add this issue to | |
REPO_OWNER = 'CHANGEME' |
The MIT License | |
Copyright © 2010-2016 three.js authors | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
var express = require('express'); | |
var router = express.Router(); | |
var passport = require('passport'); | |
var FacebookStrategy = require('passport-facebook').Strategy; | |
var AWS = require('aws-sdk'); | |
var colors = require('colors'); | |
var AWS_ACCOUNT_ID = 'XXXXXXXXXXX'; |
var xmpp = require('node-xmpp'); | |
//Set node-xmpp options. | |
//Replace with your projectID in the jid and your API key in the password | |
//The key settings for CCS are the last two to force SSL and Plain SASL auth. | |
var options = { | |
type: 'client', | |
jid: 'XXXXXXXXX@gcm.googleapis.com', | |
password: 'XXXXXXXX', | |
port: 5235, |