Skip to content

Instantly share code, notes, and snippets.

View plasx's full-sized avatar
🧭
👁️

Daniel Plas Rivera plasx

🧭
👁️
View GitHub Profile
@plasx
plasx / instantclientguide.md
Last active December 12, 2018 03:15
Installing instant client 12 on macOS Sierra
import sqlite3
from flask import Flask, render_template
app = Flask(__name__)
conn = sqlite3.connect('example.db')
c = conn.cursor()
c.execute('''CREATE TABLE emails
(name text, email text)''')
c.execute("INSERT INTO emails VALUES ('melinda gates', '[email protected]')")
import sqlite3
from flask import Flask, render_template
app = Flask(__name__)
conn = sqlite3.connect('example.db')
c = conn.cursor()
c.execute("SELECT * FROM emails")
conn.commit()
@app.route("/")
@plasx
plasx / gist:397d7833f556f96007d1
Created November 28, 2015 22:15
php curl work
function getUserID($userName){
$url = 'https://api.instagram.com/v1/users/search?q='. $userName . '&client_id=' .clientID;
$instagramInfo = connectToInstagram($url);
$results = json_decode($instagramInfo, true);
//return $results['data'][0]['id';]
return $results['data'][0]['id'];
}
function printImages($userID){