This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-field/core-field.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-input/core-input.html"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function() { | |
var Ap = Array.prototype; | |
var slice = Ap.slice; | |
var Fp = Function.prototype; | |
if (!Fp.bind) { | |
// PhantomJS doesn't support Function.prototype.bind natively, so | |
// polyfill it whenever this module is required. | |
Fp.bind = function(context) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Save it to ~/Library/Thunderbird/Profiles/*.default/chrome/userContent.css */ | |
span[_moz_quote=true] { | |
color: orange !important; | |
} | |
pre[_moz_quote=true] { | |
color: orange !important; | |
} | |
blockquote[type=cite] { | |
color: orange !important; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import caffe | |
import numpy as np | |
import sys | |
if len(sys.argv) != 3: | |
print "Usage: python convert_protomean.py proto.mean out.npy" | |
sys.exit() | |
blob = caffe.proto.caffe_pb2.BlobProto() | |
data = open( sys.argv[1] , 'rb' ).read() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys, numpy | |
categories = numpy.loadtxt(sys.argv[1], str, delimiter="\t") | |
scores = numpy.load(sys.argv[2]) | |
top_k = 10 | |
prediction = zip(scores[0].tolist(), categories) | |
prediction.sort(cmp=lambda x, y: cmp(x[0], y[0]), reverse=True) | |
for rank, (score, name) in enumerate(prediction[:top_k], start=1): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UIImage+Retina4.h | |
// StunOMatic | |
// | |
// Created by Benjamin Stahlhood on 9/12/12. | |
// Updated by noradaiko on 9/26/12. | |
// Copyright (c) 2012 DS Media Labs. All rights reserved. | |
// Copyright (c) 2012 noradaiko. All rights reserved. | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unbind C-b | |
set-option -g prefix C-t | |
#bind t send-key C-t | |
# basic settings | |
#set-option utf8-default on | |
#set-option -g mouse-select-pane | |
set-window-option -g mode-keys vi | |
#set-window-option -g utf8 on | |
# look'n feel | |
set-option -g status-fg cyan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module CookbookLogrotate | |
DIRECTIVES = %w[ | |
compress copy copytruncate daily dateext | |
delaycompress ifempty mailfirst maillast missingok | |
monthly nocompress nocopy nocopytruncate nocreate | |
nodelaycompress nodateext nomail nomissingok noolddir | |
nosharedscripts noshred notifempty sharedscripts shred | |
weekly yearly | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Version 0.0.3 - Apr/2013 | |
# Changes: summerize all disk I/O | |
# | |
# Version 0.0.2 - Jan/2009 | |
# Changes: added device verification | |
# | |
# by Takuya Matsuyama - nora@odoruinu.net | |
# by Thiago Varela - thiago@iplenix.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Read optional requirejs-config.json | |
var promise = _mergeConfig(extensionConfig).then(function (mergedConfig) { | |
// Create new RequireJS context and load extension entry point | |
var extensionRequire = brackets.libRequire.config(mergedConfig), | |
extensionRequireDeferred = new $.Deferred(); | |
contexts[name] = extensionRequire; | |
extensionRequire([entryPoint], extensionRequireDeferred.resolve, extensionRequireDeferred.reject); | |
return extensionRequireDeferred.promise(); |
OlderNewer