This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// Documentation at https://www.sublimetext.com/docs/color_schemes.html | |
{ | |
"variables": | |
{ | |
}, | |
"globals": | |
{ | |
}, | |
"rules": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_version(ctx, param, value): | |
if not value or ctx.resilient_parsing: | |
return | |
message = ( | |
"<project> %(version)s using Flask %(flask_version)s on " | |
"Python %(python_version)s" | |
) | |
click.echo( | |
message | |
% { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
from sqlalchemy import Column, Integer, DateTime, ForeignKey | |
from sqlalchemy.orm import relationship | |
from sqlalchemy.ext.declarative import declared_attr | |
from flask_security import current_user | |
class AuditMixin(object): | |
created_at = Column(DateTime, default=datetime.now) | |
updated_at = Column(DateTime, default=datetime.now, onupdate=datetime.now) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!python -u | |
import os | |
import sys | |
import glob | |
import time | |
import signal | |
import queue | |
from subprocess import Popen, getoutput, PIPE | |
from multiprocessing import Process, Queue | |
from watchdog.observers import Observer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MS Tracking | |
0.0.0.0 a.ads1.msn.com | |
0.0.0.0 a.ads2.msads.net | |
0.0.0.0 a.ads2.msn.com | |
0.0.0.0 a.rad.msn.com | |
0.0.0.0 a-0001.a-msedge.net | |
0.0.0.0 a-0002.a-msedge.net | |
0.0.0.0 a-0003.a-msedge.net | |
0.0.0.0 a-0004.a-msedge.net |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import simplejson | |
import sqlalchemy | |
from sqlalchemy import String | |
from sqlalchemy.ext.mutable import Mutable | |
class JSONEncodedObj(sqlalchemy.types.TypeDecorator): | |
"""Represents an immutable structure as a json-encoded string.""" | |
impl = String |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> Making package: lxqt-panel-git 0.7.0.45.g125dea7-1 (Sat 5 Jul 08:25:18 CEST 2014) | |
==> Checking runtime dependencies... | |
==> Checking buildtime dependencies... | |
==> Retrieving sources... | |
-> Updating lxqt-panel git repo... | |
Fetching origin | |
==> Validating source files with sha256sums... | |
lxqt-panel ... Skipped | |
==> Extracting sources... | |
-> Creating working copy of lxqt-panel git repo... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This test will use the default permissions found in | |
flaskbb.utils.populate | |
""" | |
import pytest | |
from flaskbb.user.models import User | |
from flaskbb.forum.models import Forum, Category, Topic, Post | |
from flaskbb.utils.permissions import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <limits.h> | |
int calc_total(int numbers[], int len) { | |
int total = 0; | |
for(int i = 0; i < len; i++) { | |
total += numbers[i]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask | |
from werkzeug.serving import run_simple | |
from werkzeug.wsgi import DispatcherMiddleware | |
from flaskbb.user.models import User | |
from flaskbb import create_app as flaskbb | |
from flaskbb.configs.development import DevelopmentConfig as Config | |
from flask.ext.login import LoginManager | |
from flask.ext.sqlalchemy import SQLAlchemy |
NewerOlder