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
<?xml version="1.0" encoding="ISO-8859-1"?> | |
<log> | |
<habitat_version>1.4.0</habitat_version> | |
<rasterman_version>6.4.0</rasterman_version> | |
<run_timestamp>2017-05-16T23:12:41</run_timestamp> | |
<simulations> | |
<simulation type="Habitat FIS" name="FIS - ch_jv" id="1"> | |
<sim_meta> | |
<meta key="species">Chinook</meta> | |
<meta key="watershed">Asotin</meta> |
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
def bisectLineSearch(dist, line): | |
""" | |
Use a bisect approach to get the index of the start of the line segment that contains | |
the distance specified. | |
:param dist: The distance along the line | |
:param line: The line in question | |
:return: index along the line just before we encounter 'dist' length | |
""" | |
arr = list(line.coords) |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
Line # Hits Time Per Hit % Time Line Contents | |
============================================================== | |
44 @profile | |
45 def getVolumeAndArea(arSurvey, arMinimum, fLowerElevation, fUpperElevation, fCellSize, templateRasterPath): | |
46 | |
47 428 2277 5.3 0.0 assert arSurvey.size == arMinimum.size, "The two arrays are not the same size!" | |
48 | |
49 428 775 1.8 0.0 if fLowerElevation is None: | |
50 assert fUpperElevation is not None, "An upper elevation must be provided if the lower elevation is not provided." | |
51 else: |
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
/* Accessibility - hides the forward slash */ | |
/* line 130, ../bower_components/foundation/scss/foundation/components/_breadcrumbs.scss */ | |
[aria-label="breadcrumbs"] [aria-hidden="true"]:after { | |
content: "/"; | |
} | |
/* line 223, ../bower_components/foundation/scss/foundation/components/_icon-bar.scss */ | |
.icon-bar.two-up .item { | |
width: 50%; | |
} |
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
--- | |
vagrantfile-local: | |
vm: | |
box: puphpet/centos65-x64 | |
box_url: puphpet/centos65-x64 | |
hostname: somesite.site | |
memory: '512' | |
chosen_provider: virtualbox | |
network: | |
private_network: 192.168.56.101 |
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
function ai1ec_cl_get_upcoming_events( Ai1ec_Registry_Object $registry ) { | |
global $cleventlist; | |
$date_system = $registry->get( 'date.system' ); | |
$search = $registry->get('model.search'); | |
$local_date = $registry | |
->get( 'date.time', $date_system->current_time(), 'sys.default' ); |
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
<?php | |
function some_plugin_events_get_upcoming_ids() { | |
//We need some helper classes from timely | |
global $post, $ai1ec_calendar_helper, $ai1ec_events_helper; | |
if (!is_object($ai1ec_events_helper)){ | |
return; | |
} |
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
# Cleaning up a problematic submodule | |
# ====================================== | |
# Remove submodule foo data from .git/config | |
# Remove the stale submodule's gitfile rm foo/.git | |
# Remove the stale submodule's repo rm -rf .git/modules/foo | |
# Clean now: git clean -xdf | |
# Fun Git aliases: |
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
$site_addr = "http://". $_SERVER['HTTP_HOST'] . "/cultch"; | |
define('WP_HOME', $site_addr); | |
define('WP_SITEURL', $site_addr); |
NewerOlder