Skip to content

Instantly share code, notes, and snippets.

View briansanchez's full-sized avatar

Brian Sanchez briansanchez

View GitHub Profile
@bseib
bseib / vue-datatables-example.html
Created December 13, 2017 13:48
Vue + DataTables + load once
<!DOCTYPE html>
<html>
<head>
<title>Example Vue + DataTables</title>
<!-- I happened to be using the bootstrap styling w/ DataTables. You may not need this. -->
<link rel="stylesheet" href="/path/to/datatables/DataTables-1.10.16/css/dataTables.bootstrap4.min.css">
</head>
<body>
<div id="example-page">
@janakagamini
janakagamini / ParseProxyObject.java
Last active January 4, 2016 11:01 — forked from jamiechapman/ParseProxyObject.java
Since ParseObject is not Parcelable or Serializable this class makes a best effort to make a copy of a given ParseObject that is Serializable
// By Janaka Jayasuriya, @pinkydoe
// Original By Jamie Chapman, @chappers57
// License: open, do as you wish, just don't blame me if stuff breaks ;-)
package us.peripl.app.util;
import com.parse.ParseFile;
import com.parse.ParseGeoPoint;
import com.parse.ParseObject;
@tclancy
tclancy / expire_all_sessions.py
Last active May 9, 2022 12:07 — forked from playpauseandstop/gist:1818351
Django management command to expire all sessions
import datetime
from django.conf import settings
from django.contrib.auth import logout
from django.contrib.auth.models import User
from django.contrib.sessions.models import Session
from django.core.management.base import NoArgsCommand
from django.http import HttpRequest
from django.utils.importlib import import_module