Skip to content

Instantly share code, notes, and snippets.

View Teino1978-Corp's full-sized avatar

Teino Boswell Teino1978-Corp

  • Ocho Rios, Jamaica
View GitHub Profile
@Teino1978-Corp
Teino1978-Corp / 8 lines (7 sloc) 65 Bytes
Created November 11, 2015 01:24
jupyter-js-terminal-plugin/LICENSE
*.suo
*.user
.DS_Store
node_modules
npm-debug.log
test/build
lib
@Teino1978-Corp
Teino1978-Corp / style_notebook.py
Created November 11, 2015 01:09
Style Jupyter Notebook using CSS - http://jupyter.org/
# style the notebook
from IPython.core.display import HTML
import urllib.request
# this link is to my Kalman filter book CSS file.
response = urllib.request.urlopen('http://bit.ly/1LC7EI7')
HTML(response.read().decode("utf-8"))
@Teino1978-Corp
Teino1978-Corp / 02-Scraping-CNET-Reviews.ipynb
Created November 11, 2015 00:35
Scraping CNET Reviews
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Teino1978-Corp
Teino1978-Corp / 使用.h
Created November 10, 2015 09:45
Protocol
@interface RootTableViewController : UITableViewController <delegation1, delegation2>
...
@end
@Teino1978-Corp
Teino1978-Corp / app.html
Created November 10, 2015 04:58
intel xdk application with leaflet.js
<!DOCTYPE html>
<html>
<head>
<title>AppFramework leafletJS</title>
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0;" />
<link rel="stylesheet" type="text/css" href="http://cdn.app-framework-software.intel.com/2.0/af.ui.css" />
<link rel="stylesheet" type="text/css" href="http://cdn.app-framework-software.intel.com/2.0/icons.css" />
<script type="text/javascript" charset="utf-8" src="http://cdn.app-framework-software.intel.com/2.0/appframework.ui.min.js"></script>
/*
* L.TileLayer is used for standard xyz-numbered tile layers.
*/
L.Google = L.Class.extend({
includes: L.Mixin.Events,
options: {
minZoom: 0,
maxZoom: 18,
@Teino1978-Corp
Teino1978-Corp / gist:6f33463b46dbeec6f469
Last active November 10, 2015 04:45
Applying context of functions to javascript variable
var foo = {
a: function() {
alert(this.a);
},
b: function() {
this._b +=;
alert (this._b);
}
var moo = new Something(); // some object
@Teino1978-Corp
Teino1978-Corp / Using underscore in node.js
Created November 10, 2015 04:36
Using underscore in node.js
var _ = require('underscore');
var a = {
foo: 'foo'
};
var b = {
moo: 'moo'
};
@Teino1978-Corp
Teino1978-Corp / Interpolation in JavaScript
Created November 10, 2015 04:32
Applying context of functions to JavaScript variable
String.prototype.interpolate = function(props) {
return this.replace(/\{(\w+)\}/g, function(match, expr) {
return (props || window)[expr];
});
};
// Test:
// Using the parameter (advised approach)
document.getElementById("resultA").innerText = "Eruption 1: {eruption1}".interpolate({ eruption1: 112 });
@Teino1978-Corp
Teino1978-Corp / versions.txt
Created November 9, 2015 22:46
pkgsrc trunk package versions as of today
9term-1.6.3nb1
xaos-3.5nb1
Xaw-Xpm-1.1nb4
Xaw3d-1.5Enb4
Xbae-4.51.01nb3
Xcomposite-1.0.1nb3
Xfixes-2.0.1nb5
XmHTML-1.1.7nb14
Xrender-0.9.0nb2
alacarte-0.13.1nb22