Skip to content

Instantly share code, notes, and snippets.

View echarles's full-sized avatar
🎯
focussing

Eric Charles echarles

🎯
focussing
View GitHub Profile
{
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"id": "57b265f3",
"metadata": {},
"outputs": [
{
"data": {
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Altair"
]
},
{
@echarles
echarles / 4170-static.diff
Created December 1, 2019 17:07
Diff to resolve https://github.com/Zsailer/nbclassic/issues/2 Jupyter Kernel name is not displayed with Kernel Manager
diff --git a/notebook/static/notebook/js/kernelselector.js b/notebook/static/notebook/js/kernelselector.js
index 58f71d3233..aec4e08657 100644
--- a/notebook/static/notebook/js/kernelselector.js
+++ b/notebook/static/notebook/js/kernelselector.js
@@ -74,18 +74,19 @@ define([
.click( function () {
that.set_kernel(ks.name);
})
- .text(ks.spec.display_name)
+ .text(ks.spec.display_name + " (" + ks.name + ")")
@echarles
echarles / 4170-static.diff
Created December 1, 2019 17:07
Diff to resolve https://github.com/Zsailer/nbclassic/issues/2 Jupyter Kernel name is not displayed with Kernel Manager
diff --git a/notebook/static/notebook/js/kernelselector.js b/notebook/static/notebook/js/kernelselector.js
index 58f71d3233..aec4e08657 100644
--- a/notebook/static/notebook/js/kernelselector.js
+++ b/notebook/static/notebook/js/kernelselector.js
@@ -74,18 +74,19 @@ define([
.click( function () {
that.set_kernel(ks.name);
})
- .text(ks.spec.display_name)
+ .text(ks.spec.display_name + " (" + ks.name + ")")
@echarles
echarles / lab01.ipynb
Created July 6, 2018 15:24
lab01.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@echarles
echarles / config.py
Created May 23, 2018 11:09 — forked from oinume/config.py
Flask + python-oauth2 + python-twitter sample
# app/config.py
# -*- coding: utf-8 -*-
import os
class Config(object):
DEBUG = False
SQLALCHEMY_ECHO = False
SECRET_KEY = 'dev_key_h8hfne89vm'
CSRF_ENABLED = True
CSRF_SESSION_LKEY = 'dev_key_h8asSNJ9s9=+'
@echarles
echarles / gist:8348680
Created January 10, 2014 08:42
hs_err_pid12385.log
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f5f8e78e9d0, pid=12385, tid=140048933148416
#
# JRE version: Java(TM) SE Runtime Environment (8.0-b99) (build 1.8.0-ea-b99)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.0-b41 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libglib-2.0.so.0+0x389d0] g_str_hash+0x0
#
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] eclipse-platform-parent ........................... SUCCESS [0.199s]
[INFO] rt.equinox.framework .............................. SUCCESS [0.010s]
[INFO] org.eclipse.osgi .................................. SUCCESS [26.614s]
[INFO] rt.equinox.bundles ................................ SUCCESS [0.013s]
[INFO] org.eclipse.equinox.util .......................... SUCCESS [4.468s]
[INFO] org.eclipse.equinox.io ............................ SUCCESS [4.364s]
[INFO] org.eclipse.osgi.services ......................... SUCCESS [2.554s]
eric:java eric$ vertx version
2.0.0-final (built 2013-07-17 22:04:19)
eric:java eric$ vertx httpperf/PerfClient.java -instances 6 -cluster
vertx run <main> [-options]
runs a verticle called <main> in its own instance of vert.x.
<main> can be a JavaScript script, a Ruby script, A Groovy script,
a Java class, a Java source file, or a Python Script.
valid options are:
-conf <config_file> Specifies configuration that should be provided
@echarles
echarles / gist:5813448
Created June 19, 2013 10:53
List of ElasticSearch REST commands (retrieved from source code with grep)
DELETE
DELETE _template/{name}
DELETE {index}
DELETE {index}/_alias/{name}
DELETE {index}/_query
DELETE {index}/_warmer
DELETE {index}/_warmer/{name}
DELETE {index}/{type}
DELETE {index}/{type}/_mapping
DELETE {index}/{type}/_query