Skip to content

Instantly share code, notes, and snippets.

Flávio Juvenal da Silva Junior fjsj

Block or report user

Report or block fjsj

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fjsj
fjsj / has_missing_migrations.py
Last active May 21, 2017 — forked from nealtodd/gist:a8f87b0d95e73eb482c5
Django management command to detect missing migration files.
View has_missing_migrations.py
import sys
from django.apps import apps
from django.conf import settings
from django.core.management.base import BaseCommand
from django.db import connections
from django.db.migrations.autodetector import MigrationAutodetector
from django.db.migrations.executor import MigrationExecutor
from django.db.migrations.state import ProjectState
from django.db.utils import OperationalError
@fjsj
fjsj / hn_seach.js
Last active Sep 21, 2015 — forked from kristopolous/hn_seach.js
hn job query search
View hn_seach.js
function query() {
var
total = 0, shown = 0,
// HN is done with very unsemantic classes.
job_list = Array.prototype.slice.call(document.querySelectorAll('.c5a,.cae,.c00,.c9c,.cdd,.c73,.c88')),
query_list = Array.prototype.slice.call(arguments);
// This traverses up the dom stack trying to find a match of a specific class
function up_to(node, klass) {
if (node.className === klass) {
You can’t perform that action at this time.