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
{ | |
"shell_cmd": "$0 --version" | |
} | |
// the output from this is an error but it shows me what shell my builder is trying to use: | |
// /Users/wroathe/.bash_profile: line 131: shopt: globstar: invalid shell option name | |
// /bin/bash: --version: command not found | |
// [Finished in 0.3s with exit code 127] | |
// [shell_cmd: --version] |
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
{ | |
"animation_enabled": false, | |
"auto_complete_commit_on_tab": true, | |
"bold_folder_labels": true, | |
"caret_style": "smooth", | |
"color_scheme": "Packages/User/Solarized (Light) (SL).tmTheme", |
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 wrap_youtube_autoembed_in_flexbox($html, $url) { | |
if (stripos($url, "youtube") !== false) { | |
$html = '<div class="flex-video widescreen">' . $html . '</div>'; | |
} | |
return $html; | |
} | |
add_filter("oembed_result", "wrap_youtube_autoembed_in_flexbox", 10, 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
Exercise 6-2. Write a program that reads a C program and prints in alphabetical order each group of variable names that are identical in the first 6 characters, but different somewhere thereafter . Don’t count words within strings and comments. Make 6 a parameter that can be set from the command line. | |
Kernighan, Brian W.; Ritchie, Dennis (1988-03-22). C Programming Language (2nd Edition) (p. 143). Pearson Education. Kindle Edition. |
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
_toggleAccordionHandler = function (e) { | |
clearTimeout(e.data.timeout); | |
e.data.timeout = setTimeout(_toggleAccordion, WINDOW_RESIZE_TIMEOUT, $(e.target), e.data.ui); | |
}, |
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
_toggleAccordion = function ($window, ui) { | |
if ($window.width() < MOBILE_BREAKPOINT) { | |
ui.$panelGroup.addClass("panel-group"); | |
ui.$panels.addClass("panel"); | |
ui.$panelHeadings.addClass("panel-heading"); | |
ui.$panelTitles.addClass("panel-title"); | |
ui.$panelToggles.attr({ "data-toggle": "collapse", "data-parent": "#body-diagram-thera-areas" }); | |
ui.$panelCollapsibles.addClass("panel-collapse collapse"); | |
ui.$panelBodies.addClass("panel-body"); | |
} |
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
$("#world-map-canvas").activeGoogleMap({ | |
mapOptions: { | |
disableDefaultUI: true, | |
zoom: 3, | |
minZoom: 3, | |
maxZoom: 3, | |
center: new google.maps.LatLng(20.8981992, -13.8629429), | |
mapTypeId: "grayscale" | |
}, |
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
if (!function_exists("activetheme_cache_marker_coordinates")): | |
/** | |
* Cache Marker Coordinates | |
* | |
* After a post is created or updated we check and see if this post | |
* is our map post with our locations ACF field. If it is, we proceed | |
* to hit the Google Geocoder and get the coordinates for our locations. | |
* | |
* @param int $post_id The post ID of the post being created or updated |
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
mapOptions: { | |
disableDefaultUI: true, | |
zoom: 3, | |
minZoom: 3, | |
maxZoom: 3, | |
center: new google.maps.LatLng(20.8981992, -13.8629429), | |
mapTypeId: "grayscale" | |
}, | |
mapTypes: { | |
"grayscale": { |
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
test "date has display column but sorts by survey column" do | |
@entries = @sr.entries(:sorting_order_by => 577, :sorting_dir => 'ASC') | |
@entries.collect! { |entry| entry[2] } | |
assert_equal @ordered_dates_asc, @entries | |
assert_not_equal @ordered_dates_desc, @entries | |
debugger | |
@entries = @sr.entries(:sorting_order_by => 577, :sorting_dir => 'DESC') | |
@entries.collect! { |entry| entry[2] } | |
assert_equal @ordered_dates_desc, @entries | |
assert_not_equal @ordered_dates_asc, @entries |
OlderNewer