Skip to content

Instantly share code, notes, and snippets.

import numpy as np
from PyGMO import *
from PyGMO.problem import base
import scipy
import scipy.weave as weave
import random
import operator
import sys
c_function = r'''
@waltherg
waltherg / ac_uk_domains.json
Created July 19, 2013 08:53
Domains of British Academic Institutions and Learned Societies (http://en.wikipedia.org/wiki/.uk#Second-level_domains). Query JSON object for "institute_names" for a list of all institution names covered. Courtesy of JANET UK: https://www.whatdotheyknow.com/request/list_of_acuk_domain_names
{
"The 1994 Group": [
"1994group.ac.uk"
],
"University of Aberdeen": [
"3sixty-ucc.ac.uk",
"abdn.ac.uk",
"aberdeen.ac.uk",
"dotrural.ac.uk",
"northscotland-research.ac.uk",
@waltherg
waltherg / plos_one.json
Last active December 20, 2015 23:19
PLOS ONE time to publication analysis
{
"metadata": {
"name": "plos_one_analysis"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@waltherg
waltherg / editors_plos_one_dates_numbered.dat
Last active December 23, 2015 13:49
PLoS ONE Citation Counts pulled from CrossRef OpenURL
This file has been truncated, but you can view the full file.
@waltherg
waltherg / plos_time_to_publication.ipynb
Last active December 24, 2015 20:48
PLoS Time to Publication
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
require 'formula'
<<-COMMENTS
This is the Homebrew formula for Python.
Versions
--------
This formula is currently tracking version 2.6.x.
alert("test")
@waltherg
waltherg / query_test.sql
Last active March 4, 2016 20:45
Postgresql query test
CREATE SCHEMA IF NOT EXISTS my_test;
DROP TABLE IF EXISTS my_test.my_table;
DROP TABLE IF EXISTS my_test.a_table CASCADE;
DROP TABLE IF EXISTS my_test.a_b_relation;
CREATE TABLE my_test.my_table (
a integer,
b integer
);
@waltherg
waltherg / foo_names.md
Created July 10, 2016 08:05 — forked from mihaitodor/foo_names.md
Map slugs to course names

https://archive.org/download/archiveteam_coursera_20160627114043/coursera_20160627114043.megawarc.warc.gz

  • bigdata = Web Intelligence and Big Data
  • clinical skills = Teaching and Assessing Clinical Skills
  • comp finance = Introduction to Computational Finance and Financial Econometrics
  • data sci = Introduction to Data Science
  • dmathgen = 离散数学概论 Discrete Mathematics Generality
  • global introuslaw = The Global Student's Introduction to U.S. Law
  • global theatre = Theatre and Globalization
  • global theatre = Theatre and Globalization
  • inforiskman = Information Security and Risk Management in Context