#Mac OS X
object Nullable { | |
sealed trait NullableTag | |
type Nullable[A] = A with NullableTag | |
def nullAs[B]: Nullable[B] = | |
null.asInstanceOf[Nullable[B]] | |
implicit class ToNullable[A](val a: A) extends AnyVal { | |
def `?`: Nullable[A] = a.asInstanceOf[Nullable[A]] | |
} |
#!/bin/bash | |
# Summary: | |
# Bash script repoints all inbound access for a given AWS EC2 security group | |
# to your current IP addr(v4) as provided by ifconfig.me/ip | |
# To use this script: | |
# Pass the name of a security group as a command line argument | |
# e.g. $ aws_repoint_to_my_ip.sh SECURITYGROUPNAME |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:math="http://exslt.org/math" | |
extension-element-prefixes="math"> | |
<xsl:template name="makeHash"> | |
<xsl:param name="length">8</xsl:param> | |
<xsl:param name="count" select="$length"/> | |
<xsl:param name="hash"/> | |
<xsl:variable name="possibleFirst">xABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz</xsl:variable> |
""" | |
traits_ndarray | |
-------------- | |
I was taking the IPython.utils.traitlets for a spin; | |
the only really useful thing missing was an NDArray | |
which validates on certain shape and type constraints | |
and notifies for interesting kinds of inequalities | |
id(x)==id(y), (x==y).all(), allclose(x, y). |
The Google Drive API supports these MIME types, but if you try to filter using them, you may find you're not getting the document types back that you expect. Especially when using setMimeTypes()
with Google's JavaScript Picker.
Here are the poorly documented or completely undocumented MIME types I discovered:
If you want application/vnd.google-apps.document
, also use application/vnd.google-apps.kix
. Source.
If you want application/vnd.google-apps.spreadsheet
, also use application/vnd.google-apps.ritz
. Via a private email from a Google employee.
If you want application/vnd.google-apps.presentation
, also use application/vnd.google-apps.punch
. Source.
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
/**= | |
* User: zircote | |
* Date: 16/10/2013 | |
* Time: 08:59 | |
*/ | |
var SERVICE_HOST = 'http://aws.amazon.com' | |
var data_sources = { | |
"linux-od": { |
13:15 <xQuasar> | HASKELL IS FOR FUCKIN FAGGOTS. YOU'RE ALL A BUNCH OF | |
| FUCKIN PUSSIES | |
13:15 <xQuasar> | JAVASCRIPT FOR LIFE FAGS | |
13:16 <luite> | hello | |
13:16 <ChongLi> | somebody has a mental illness! | |
13:16 <merijn> | Wow...I suddenly see the error of my ways and feel | |
| compelled to write Node.js! | |
13:16 <genisage> | hi | |
13:16 <luite> | you might be pleased to learn that you can compile | |
| haskell to javascript now |