This file contains hidden or 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 | |
| export COPYRIGHT="(c) 1967 J. Random User" | |
| [ -d thumbs ] || mkdir thumbs & mogrify -format jpg -path thumbs -thumbnail 100x *.jpg | |
| #mogrify -fill white -undercolor '#00000080' -gravity South -annotate +0+5 '$COPYRIGHT' *.jpg | |
| for img in *.jpg; | |
| do | |
| #exif --ifd=0 --tag=0x010e --set-value='Holiday in Somewhere' -o $img $img | |
| TITLE=$(exif -m --ifd=0 --tag=0x010e $img) |
This file contains hidden or 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
| INTERFACE=$(ifconfig en0 | grep 'inet ' | cut -f2 | awk '{ print $2}') | |
| PUBLIC=$(curl -s http://ifconfig.co) | |
| [ $INTERFACE = $PUBLIC ] || echo NAT |
This file contains hidden or 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 sys | |
| import argparse | |
| from HTMLParser import HTMLParser | |
| file_list = [] | |
| class AssetFinder(HTMLParser): | |
| def handle_starttag(self, tag, attrs): |
This file contains hidden or 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
| <html lang="en" > | |
| <head> | |
| <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/angular_material/1.0.0/angular-material.min.css"> | |
| <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> | |
| <style type="text/css"> | |
| .location-item { padding: 0.5em; cursor: pointer; } | |
| .level-2 { padding-left: 1.5em; } | |
| .level-3 { padding-left: 2.5em; } | |
| .level-4 { padding-left: 3.5em; } |
This file contains hidden or 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
| process.env.NODE_PATH || (process.env.NODE_PATH = __dirname) |
This file contains hidden or 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
| DOUBLE_LINE = '=' * 80 | |
| OUTPUT_TEMPLATE = "{0:32}{1:>6}" | |
| DEVICE_TEMPLATE = "{0:35}{1:22}{2:>12}" | |
| CHECK_SIGN = u'✔'.encode('utf-8') | |
| FAIL_SIGN = u'✘'.encode('utf-8') | |
| class Colors: | |
| """ Colors for console putput as ANSI code. |
This file contains hidden or 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
| /* | |
| * Calendar calculations | |
| * | |
| * The following enhancements on the standard JavaScript Date object | |
| * allow advanced calculations for calendars, especially the | |
| * calculation of the calendar weeks. | |
| * | |
| * @author Karsten Kroesch | |
| */ |
This file contains hidden or 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
| /* | |
| * Copyright © 2005 by Karsten Kroesch. | |
| */ | |
| import java.util.List; | |
| import java.awt.Toolkit; | |
| import java.awt.datatransfer.*; | |
| import java.io.IOException; | |
| import javax.swing.event.UndoableEditListener; | |
| import javax.swing.table.AbstractTableModel; |
This file contains hidden or 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 numpy as np | |
| def GEPP(A, b, doPricing = True): | |
| ''' | |
| Gaussian elimination with partial pivoting. | |
| input: A is an n x n numpy matrix | |
| b is an n x 1 numpy array | |
| output: x is the solution of Ax=b | |
| with the entries permuted in |
This file contains hidden or 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
| { | |
| "query": { | |
| "bool": { | |
| "must": [ | |
| { | |
| "range": { | |
| "_default_.nf_f_event_time_msec": { | |
| "from": "1436140797628", | |
| "to": "1436140797628" | |
| } |