I hereby claim:
- I am bradenmacdonald on github.
- I am bradenm (https://keybase.io/bradenm) on keybase.
- I have a public key whose fingerprint is 0832 4B93 0227 C5FA 85D3 86AD 2BDF 383C 42AB AB95
To claim this, I am signing this object:
# When changing the `SECRET_KEY` of an instance, all anonymous user ids change as well. | |
# Since #13717 the new anonymous ids are stored in the database in addition to the old | |
# ones, so both the old and the new anonymous ids can be inverted. | |
# | |
# This has the negative side effect that e.g. ORA submissions and grades for the same | |
# student are now stored under two different ids, so they don't show up correctly | |
# anymore in the web interface. For Open edX installations that are not too big, the | |
# problem can be solved by running the management command in this PR, which translates | |
# all IDs in the database to the new values. | |
# |
I hereby claim:
To claim this, I am signing this object:
CREATE TABLE instance_singlevmopenedxinstance_backup ( | |
id integer NOT NULL, | |
created timestamp with time zone NOT NULL, | |
modified timestamp with time zone NOT NULL, | |
sub_domain character varying(50) NOT NULL, | |
email character varying(254) NOT NULL, | |
name character varying(250) NOT NULL, | |
base_domain character varying(50) NOT NULL, | |
protocol character varying(5) NOT NULL, | |
branch_name character varying(50) NOT NULL, |
#include "CppSqlWrapper.h" | |
#define INFO_TABLE "CoreInfo" | |
#ifndef SQL_BLOCK | |
#define SQL_BLOCK(a) #a | |
#endif | |
class Database : public SqlDatabase { | |
public: | |
Database(); | |
virtual ~Database() {} |
#ifndef I3D_OS_S3E | |
# define I3D_OS_S3E 1 | |
#endif | |
#ifndef I3D_PLATFORM_S3E | |
# define I3D_PLATFORM_S3E 1 | |
#endif | |
#ifndef IW_APP_NAME | |
# define IW_APP_NAME "angelscript" | |
#endif | |
#ifndef IW_APP_VERSION |
import Emitter | |
Emitter.Emitter.add_gcc_ccflags_orig = Emitter.Emitter.add_gcc_ccflags | |
def my_add_gcc_ccflags(obj, flag): | |
obj.add_gcc_ccflags_orig(flag) | |
obj.add_gcc_ccflags = obj.add_gcc_ccflags_orig | |
obj.add_gcc_ccflags("--cppflag=-std=c++0x") | |
Emitter.Emitter.add_gcc_ccflags = my_add_gcc_ccflags |
$.infinitescroll.prototype.retrieve = function (pageNum) { | |
var instance = this, | |
opts = instance.options, | |
path = opts.path, | |
box, frag, desturl, method, condition, | |
pageNum = pageNum || null, | |
getPage = (!!pageNum) ? pageNum : opts.state.currPage; | |
beginAjax = function infscr_ajax(opts) { | |
// increment the URL bit. e.g. /page/3/ | |
opts.state.currPage++; |
#!/usr/bin/env python | |
# coding: utf8 | |
import numpy as np | |
import sys | |
import subprocess | |
import matplotlib as mpl | |
from matplotlib.backends.backend_pdf import PdfPages | |
from astrodendro import Dendrogram | |
from astrocube import DataCube |
#!/usr/bin/env python | |
import numpy as np | |
import pyfits | |
import math | |
import random | |
random.seed(5678) # consistent random seed | |
ri = random.randint | |
def export_data(data, desc, filename): |
import numpy as np | |
plot_sort_name = "npix" | |
cube_view.z = 212 | |
set_color_map("bone") | |
highlighters = [create_highlighter(c) for c in ["purple", "green", "orange", "brown"]] |