<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM0AAAD NCAMAAAAsYgRbAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5c cllPAAAABJQTFRF3NSmzMewPxIG//ncJEJsldTou1jHgAAAARBJREFUeNrs2EEK gCAQBVDLuv+V20dENbMY831wKz4Y/VHb/5RGQ0NDQ0NDQ0NDQ0NDQ0NDQ 0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0PzMWtyaGhoaGhoaGhoaGhoaGhoxtb0QGho aGhoaGhoaGhoaGhoaMbRLEvv50VTQ9OTQ5OpyZ01GpM2g0bfmDQaL7S+ofFC6x v3ZpxJiywakzbvd9r3RWPS9I2+MWk0+kbf0Hih9Y17U0nTHibrDDQ0NDQ0NDQ0 NDQ0NDQ0NTXbRSL/AK72o6GhoaGhoRlL8951vwsNDQ0NDQ1NDc0WyHtDTEhD Q0NDQ0NTS5MdGhoaGhoaGhoaGhoaGhoaGhoaGhoaGposzSHAAErMwwQ2HwRQ AAAAAElFTkSuQmCC" alt="beastie.png">
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
# Within a directory, output all c++ sources and headers that DO NOT contain the word "Copyright" | |
# (i.e., are likely missing a copyright header.) | |
# | |
# (Or use -l to find files that DO contain the word) | |
find . -name '*.[c|h]pp' -print | xargs grep -L Copyright | |
# Open a manpage in BBEdit all cleaned up | |
man $1 | col -bx | bbedit -t "manpage: $1" --clean --new-window |
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 | |
# Boost is now using git submodules, where each Boost library has its own. These are coalesced | |
# into a top-level boost repository. Grabbing a snapshot of boost, then, involves cloning the | |
# top-level repo and using bjam to build the familiar top-level boost/ headers directory. | |
git clone --recursive [email protected]:boostorg/boost.git | |
cd boost |
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
Show hidden characters
{ | |
"always_show_minimap_viewport": true, | |
"auto_complete_commit_on_tab": true, | |
"auto_match_enabled": false, | |
"caret_style": "phase", | |
"color_scheme": "Packages/Colorsublime - Themes/cache/Colorsublime-Themes-master/themes/BBEdit.tmTheme", | |
"copy_with_empty_selection": false, | |
"create_window_at_startup": false, | |
"detect_indentation": false, | |
"draw_minimap_border": true, |
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
#include <iostream> | |
struct rect_t | |
{ | |
float top_m; | |
float left_m; | |
float bottom_m; | |
float right_m; | |
float height() const { return bottom_m - top_m; } |
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
{ | |
init: function(elevators, floors) { | |
var closestToFloor = function (floor) { | |
var elevator = null; | |
var distance = 1000; | |
console.log("Call to floor " + floor + "..."); | |
elevators.forEach(function (cur_elevator) { | |
var cur_distance = Math.abs(cur_elevator.currentFloor() - floor); |
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
#include <iostream> | |
#include <typeinfo> | |
struct banana_t { | |
template <typename T> | |
explicit banana_t(const T& x) : | |
impl_m{new impl<T>(x)} | |
{ } | |
struct base_t { |
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 | |
# Original lat/long is near Azusa, California, the location of the 2016 Jun 20 | |
# Fish fire. | |
LAT=34.177043 | |
LON=-117.921503 | |
LATMIN=`bc <<< $LAT-.2` | |
LATMAX=`bc <<< $LAT+.2` |
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/sh | |
# | |
# chmodr.sh | |
# | |
# author: Francis Byrne | |
# date: 2011/02/12 | |
# | |
# Generic Script for recursively setting permissions for directories and files | |
# to defined or default permissions using chmod. | |
# |
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
/* | |
MIT License | |
Copyright 2019 Foster T. Brereton | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and | |
associated documentation files (the "Software"), to deal in the Software without restriction, | |
including without limitation the rights to use, copy, modify, merge, publish, distribute, | |
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
OlderNewer