Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
fdbbc79
+Update READMe.md
usernamealreadyis Dec 31, 2015
e183140
Merge pull request #16 from GistIcon/kupret.inc-3
usernamealreadyis Dec 31, 2015
58c8c13
Create .dirs
usernamealreadyis Dec 31, 2015
eeddc31
Merge pull request #21 from GistIcon/usernamealreadyis-patch-3
usernamealreadyis Dec 31, 2015
7f3b9fe
Merge pull request #22 from GistIcon/master
usernamealreadyis Dec 31, 2015
1fbc9da
Update LICENSE
usernamealreadyis Dec 31, 2015
db2298f
Merge pull request #23 from GistIcon/usernamealreadyis-patch-4
usernamealreadyis Dec 31, 2015
f00f972
Create .JSON
usernamealreadyis Jan 1, 2016
ac86e7e
Merge pull request #24 from GistIcon/kupret.inc-5
usernamealreadyis Jan 1, 2016
9afad26
Merge branch 'master' into usernamealreadyis-patch-3
usernamealreadyis Jan 1, 2016
9bf910d
Merge pull request #25 from GistIcon/usernamealreadyis-patch-3
usernamealreadyis Jan 1, 2016
614bd24
Create ,JSON
usernamealreadyis Jan 1, 2016
b9cb396
Merge pull request #27 from GistIcon/usernamealreadyis-patch-5
usernamealreadyis Jan 1, 2016
ff1af93
Update .travis.yml
usernamealreadyis Jan 1, 2016
ad4305c
Merge branch 'master' into kupret.inc-5
usernamealreadyis Jan 1, 2016
a8fea32
Create .md
usernamealreadyis Jan 2, 2016
9cc4500
Update .md
usernamealreadyis Jan 2, 2016
aa84d57
Merge branch 'master' into master
usernamealreadyis Jan 2, 2016
374ba40
Merge pull request #29 from usernamealreadyis/master
usernamealreadyis Jan 2, 2016
02417d9
Merge pull request #4 from GistIcon/master
usernamealreadyis Jan 2, 2016
547c341
Merge pull request #32 from usernamealreadyis/koplak.inc
usernamealreadyis Jan 2, 2016
dc1b239
Merge pull request #33 from GistIcon/gh-pages
usernamealreadyis Jan 2, 2016
ca8d4ce
Merge pull request #5 from GistIcon/kupret.inc-5
usernamealreadyis Jan 2, 2016
eb4b7d0
Delete .md
usernamealreadyis Jan 2, 2016
8746054
Merge pull request #35 from GistIcon/usernamealreadyis-patch-6
usernamealreadyis Jan 2, 2016
05b3fba
Merge branch 'master' into usernamealreadyis-patch-5
usernamealreadyis Jan 2, 2016
6c8ccf8
Merge pull request #3 from usernamealreadyis/gh-pages
usernamealreadyis Jan 2, 2016
e2fd3e1
Merge pull request #6 from GistIcon/master
usernamealreadyis Jan 2, 2016
82aadc1
Merge pull request #8 from GistIcon/usernamealreadyis-patch-5
usernamealreadyis Jan 2, 2016
a41f831
Add a Bitdeli badge to README
bitdeli-chef Jan 8, 2016
2f51e9e
Merge pull request #10 from bitdeli-chef/master
usernamealreadyis Jan 8, 2016
68f18e9
Create .pem
usernamealreadyis Jan 8, 2016
a5b38d2
mixpanel-php.php
usernamealreadyis Jan 15, 2016
827ce4a
Merge pull request #63 from usernamealreadyis/master
usernamealreadyis Jan 15, 2016
e672718
event.php
usernamealreadyis Jan 15, 2016
cdd865e
Merge pull request #64 from usernamealreadyis/master
usernamealreadyis Jan 15, 2016
16eab2f
README.md
usernamealreadyis Feb 2, 2016
35f6c5e
rdf.JSON
usernamealreadyis Feb 3, 2016
a5d8c98
Merge pull request #221 from usernamealreadyis/master
usernamealreadyis Feb 18, 2016
57e42f6
Merge pull request #22 from GistIcon/kupret.inc-5
usernamealreadyis Feb 18, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .csr/.md/.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
-----BEGIN RSA PRIVATE KEY-----
MIICjjCCAXYCAQAwSTELMAkGA1UEBhMCVVMxFjAUBgNVBAoTDUp1bmVjbG91ZCBM
TEMxIjAgBgNVBAMTGUtvcGxhayBMTEMgU2lnbmF0dXJlIDIwMTQwggEiMA0GCSqG
SIb3DQEBAQUAA4IBDwAwggEKAoIBAQDMoWeDSnx0iXjjtI7WMqoAxngxBjCPLAcH
rqO6cyD0o9652WER9A424N/G1qyAxHt4NmXeRffxyQi7xhpPU0IHRySrZ9Ki2BqM
M1cCQU0xmKWYYTx1juD11Cw33t6FiD4cMUtuosbRxG4UqIkmUpl0xE3HtUGFprpD
itocYmQm4HgTW1rapIVpgaTF5oQMGAFK+/QEa6Cb2DdXH7Ru1KvDuzrhx8ZXx2Yw
nlrt9pL8zE8UPaQuLfklAuuRYkcPXG1CrI+KLmtB81H16j0AdXGR2EV/h2ALQEey
PMVz8vumeUJnulrw/LtdPlZ+QCHixa66NNOftFfhxqf95x7lp9xtAgMBAAGgADAN
BgkqhkiG9w0BAQUFAAOCAQEApzINaRsLx8QT6Rm0ssYIW9EGwOUVrmTKFG5WG/on
lMWgzHm3V8757kyhDp0mwbSnS7QI5CztBxwhVjyy8U1Cwo3Wi6xuZHviyyz2cA4n
llQ1JHM9F7qbAjk7NmGzBgOHfQrkoMsS/B4B+AF2in9dyBAVENOmQl3b9Fy3wz1g
x7u1dhDtDyewwHaZr0tlMIV+DTFLX+/quTQs2grwJO4oCU9CqKU/3Y4wecCBX4xc
50gXYRkwdPtquS7iMCrISjeznSpicm5NCbP3/R9vXl0TZK4+ZwEKzcGM3pMVFlbI
Bx9YjbcgucjOEaVHc5UIBcrsB+KAfeZQdgTPCXmuBnsX+g==
-----END RSA PRIVATE KEY-----
1 change: 0 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,3 @@ LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# md.md
# lua:gist
# git@gist.github.com:513f350a093a85fc3395.git
# $~git@github.com:GistIcon/md.md.git


[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/usernamealreadyis/md.md/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

'\uf000': '\u00a9'
8 changes: 8 additions & 0 deletions api/rdf.JSON
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"format":"linked-data-api",
"version":"0.0",
"results":[
{ ... RDF is here ... }
],
"context":{ ... }
}
37 changes: 37 additions & 0 deletions credentials/,JSON
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# create a client object from the client_secrets.json file
# flow_from_clientsecrets function

from oauth2client import client

flow = client.flow_from_clientsecrets(
'client_secrets.json',
scope='https://www.googleapis.com/auth/drive.metadata.readonly',
redirect_uri='urn:ietf:wg:oauth:2.0:oob')

import json
import webbrowser

import httplib2

from apiclient import discovery
from oauth2client import client


if __name__ == '__main__':
flow = client.flow_from_clientsecrets(
'client_secrets.json',
scope='https://www.googleapis.com/auth/drive.metadata.readonly',
redirect_uri='urn:ietf:wg:oauth:2.0:oob')

auth_uri = flow.step1_get_authorize_url()
webbrowser.open(auth_uri)

auth_code = raw_input('Enter the auth code: ')

credentials = flow.step2_exchange(auth_code)
http_auth = credentials.authorize(httplib2.Http())

drive_service = discovery.build('drive', 'v2', http_auth)
files = drive_service.files().list().execute()
for f in files['items']:
print f['title']
12 changes: 12 additions & 0 deletions credentials/event.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
// import dependencies (using composer's autoload)
// if not using Composer, you'll want to require the
// lib/Mixpanel.php file here
require 'vendor/autoload.php';

// get the Mixpanel class instance, replace with your
// project token
$mp = Mixpanel::getInstance("MIXPANEL_PROJECT_TOKEN");

// track an event
$mp->track("button clicked", array("label" => "sign-up"));
5 changes: 5 additions & 0 deletions credentials/mixpanel-php.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"require": {
...
"mixpanel/mixpanel-php" : "2.*"
...
}
1 change: 1 addition & 0 deletions md/.dirs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

4 changes: 3 additions & 1 deletion md/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ rvm:
- rbx
# uncomment this line if your project needs to run something other than `rake`:
# script: bundle exec rspec spec

environment:
my_variable:
secure: QNOpwG+YKnvIjHTCEG3A8gOE0mv4TMMmFP/BniXoNwDBiB7mtXOYekDzXw9EXGQZ
49 changes: 49 additions & 0 deletions md/li/.JSON
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@

import json
Consider the [kupret.inc](https://gist.github.com/9b8f97b54f493e1fa295.git).
import flask
import httplib2

from apiclient import discovery
from oauth2client import client


app = flask.Flask(__name__)


@app.route('/')
def index():
if 'credentials' not in flask.session:
return flask.redirect(flask.url_for('oauth2callback'))
credentials = client.OAuth2Credentials.from_json(flask.session['credentials'])
if credentials.access_token_expired:
return flask.redirect(flask.url_for('oauth2callback'))
else:
http_auth = credentials.authorize(httplib2.Http())
drive_service = discovery.build('drive', 'v2', http_auth)
files = drive_service.files().list().execute()
return json.dumps(files)


@app.route('/oauth2callback')
def oauth2callback():
flow = client.flow_from_clientsecrets(
'client_secrets.json',
scope='https://www.googleapis.com/auth/drive.metadata.readonly',
redirect_uri=flask.url_for('oauth2callback', _external=True),
include_granted_scopes=True)
if 'code' not in flask.request.args:
auth_uri = flow.step1_get_authorize_url()
return flask.redirect(auth_uri)
else:
auth_code = flask.request.args.get('code')
credentials = flow.step2_exchange(auth_code)
flask.session['credentials'] = credentials.to_json()
return flask.redirect(flask.url_for('index'))


if __name__ == '__main__':
import uuid
app.secret_key = str(uuid.uuid4())
app.debug = False
app.run()