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
{ | |
"editor.cursorBlinking": "phase", | |
"editor.cursorStyle": "block", | |
"editor.emptySelectionClipboard": false, | |
"editor.fontFamily": "Iosevka, Consolas, 'Courier New', monospace", | |
"editor.fontLigatures": true, | |
"editor.fontSize": 14, | |
"editor.fontWeight": "500", | |
"editor.mouseWheelZoom": true, | |
"editor.renderControlCharacters": true, |
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
<div id="search-component"> | |
<h4>User Search</h4> | |
<input #searchBox id="search-box" (keyup)="search(searchBox.value)" /> | |
<div> | |
<div *ngFor="let user of users | async" (click)="gotoDetail(user)" class="search-result"> | |
{{user.name}} | |
</div> | |
</div> |
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
<scheme name="Dawn+" version="142" parent_scheme="Default"> | |
<option name="LINE_SPACING" value="1.0" /> | |
<option name="EDITOR_FONT_SIZE" value="14" /> | |
<option name="EDITOR_LIGATURES" value="true" /> | |
<option name="CONSOLE_FONT_NAME" value="Iosevka Slab" /> | |
<option name="CONSOLE_FONT_SIZE" value="12" /> | |
<option name="CONSOLE_LIGATURES" value="true" /> | |
<option name="EDITOR_FONT_NAME" value="Iosevka Slab" /> | |
<colors> | |
<option name="CARET_ROW_COLOR" value="dfe6f0" /> |
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
<scheme name="XC++" version="142" parent_scheme="Default"> | |
<metaInfo> | |
<property name="created">2016-12-11T20:24:33</property> | |
<property name="ide">CLion</property> | |
<property name="ideVersion">2016.3.0.0</property> | |
<property name="modified">2016-12-25T13:11:59</property> | |
<property name="originalScheme">Default</property> | |
<property name="rainbow Default language">true</property> | |
</metaInfo> | |
<option name="LINE_SPACING" value="0.92" /> |
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
function im = zonenplatte(radius, type, func) | |
%ZONENPLATTE Summary of this function goes here | |
% Detailed explanation goes here | |
if nargin < 3 | |
func = 'sin'; | |
end | |
if nargin < 2 | |
type = 'cos'; |
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
def is_close(x: float, y: float, tol=1e-16) -> bool: | |
from math import (fabs, isfinite) | |
assert tol >= 0.0 | |
if isfinite(x) and isfinite(y): | |
if x == y: | |
return True | |
else: | |
abs_diff = fabs(x - y) |
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
#!/usr/bin/env bash | |
root_dir="${PWD}" | |
num_bundles="$(ls *'.hg.bundle' | wc -l)" | |
echo "There are ${num_bundles} hgbundles total" | |
|> 'unbundle.log' | |
for bundle_name in *'.hg.bundle' do |
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
#!/usr/bin/env bash | |
## 7/18/16 | |
[[ "${1}" ]] || { echo "${0}: missing argument" 1>&2; return 1; } | |
[[ -r "${1}" ]] || { echo "${0}: file \`${1}' does not exist or is not readable" 1>&2; return 1; } | |
input="${1}" | |
width="${2:-1280}" | |
quality="${3:-90}" | |
format='jpg' |
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
#!/usr/bin/env bash | |
# url='http://rit-mcsl.org/fairchild/HDR.html' | |
url='http://rit-mcsl.org/fairchild/HDRPS/HDRthumbs.html' | |
# url='http://www.example.com' | |
# url='' | |
log_path="${url}.log" | |
# tries='inf' | |
tries=20 | |
max_redirect=20 |
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
"use strict"; | |
const EventEmitter = require ("events"); | |
class Application extends EventEmitter { | |
constructor (logger = console) { | |
super (); | |
this.logger = logger; | |
this._configureEventListeners (); |