Skip to content

Instantly share code, notes, and snippets.

The time is up

Douglas Brunal Frankity

The time is up
View GitHub Profile
Frankity /
Created Sep 2, 2020 — forked from emil2k/
Android utility class for checking device's network connectivity and speed.
* Copyright (c) 2017 Emil Davtyan
* 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:
View radios.json
"name":"Radio Tiempo Barranquilla",
"name":"Radio Tiempo Cucuta",
Frankity / Python3 Virtualenv
Created Nov 23, 2018 — forked from pandafulmanda/Python3 Virtualenv
Setting up and using Python3 Virtualenv on Mac
View Python3 Virtualenv

Python3 Virtualenv Setup

  • Python 3
  • Pip 3
$ brew install python3
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
from flask import Flask, jsonify
from flask_cors import CORS, cross_origin
from flask_mail import Mail
from flask_sqlalchemy import SQLAlchemy
import os
app = Flask(__name__)
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
from api import db
from flask import jsonify
from datetime import datetime
class TodoList(db.Model):
__tablename__ = 'todolist'
from flask import Blueprint, request, jsonify, make_response
from api import db
from api.todos.models import TodoList
mod_todo = Blueprint('todo', __name__, url_prefix='/rest')
@mod_todo.route('/addtodo', methods=['POST'])
def addnewTodo():
if request.method == 'POST':
from flask import Blueprint, request, jsonify, make_response
from flask_cors import CORS, cross_origin
from flask_login import session
import hashlib, os, binascii
from api import db
from api.users.models import Users
mod_users = Blueprint('users', __name__, url_prefix='/rest')
View snip.js
<div style="width: 100%;height: 100%" id="modals" class="modal fade" role="dialog">
<div style="width: 100%;height: 100%" id="aws"></div>
<script type="text/javascript">
url: './views/test.php',
type: 'get',
data: {videoid: id},
Frankity / main.vala
Created Oct 7, 2016 — forked from rickybassom/main.vala
Simple Gtk.Application example in vala
View main.vala
using Gtk;
public class MyApplication : Gtk.Application {
public MyApplication () {
Object(application_id: "",
flags: ApplicationFlags.FLAGS_NONE);
protected override void activate () {
from flask import Flask, render_template, redirect, json, request, url_for, jsonify
from flask.ext.sqlalchemy import SQLAlchemy
from werkzeug import generate_password_hash, check_password_hash
from flask.ext.login import login_user , logout_user , current_user , login_required, session, flash
import hashlib
app = Flask(__name__)
db = SQLAlchemy(app)
class Users(db.Model):