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
@set installhooks_args=%*& set installhooks_self=%~f0& powershell -c "(gc \"%~f0\") -replace '@set installhooks_args.*','#' | Write-Host" | powershell -c -& goto :eof | |
$srcdir = split-path $env:installhooks_self | |
$vivpath = "c:\Program Files\Vivaldi\Application\" | |
Try { | |
$dstdir = split-path ((Get-ChildItem -path $vivpath -recurse browser.html | Sort-Object -property CreationTime -descending | Select-Object -first 1).FullName) | |
write-host "Destination directory: $dstdir" | |
$encoding = (New-Object System.Text.UTF8Encoding($False)) |
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 addLink() { | |
var content_element = document.getElementById('wtr-content'); | |
var body_element = document.getElementsByTagName("body")[0] | |
var selection, newdiv; | |
if (window.getSelection) { | |
selection = window.getSelection(); | |
}else{ | |
var ypos = jQuery(document).scrollTop() | |
selection = readSelected(content_element) | |
jQuery(document).scrollTop(ypos) |
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
/** | |
* @OnlyCurrentDoc | |
*/ | |
//Global Variables | |
var currSpreadsheet=SpreadsheetApp.getActiveSpreadsheet();// get current spreadsheet | |
var shtPortfolioSummary = currSpreadsheet.getSheetByName('Portfolio Summary'); | |
var shtPortfolioHistory = currSpreadsheet.getSheetByName('Portfolio History'); | |
var shtYahooDataRef = currSpreadsheet.getSheetByName('Yahoo Data Ref'); | |
var shtYahooDataRefUSD = currSpreadsheet.getSheetByName('Yahoo Data Ref USD'); |
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 | |
# Cloudflare as Dynamic DNS | |
# From: https://letswp.io/cloudflare-as-dynamic-dns-raspberry-pi/ | |
# Based on: https://gist.github.com/benkulbertis/fff10759c2391b6618dd/ | |
# Original non-RPi article: https://phillymesh.net/2016/02/23/setting-up-dynamic-dns-for-your-registered-domain-through-cloudflare/ | |
# Update these with real values | |
auth_email="[email protected]" | |
auth_key="global_api_key_goes_here" | |
zone_name="example.com" |
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
$ sudo phpbrew install php-7.2.1 +default +dbs +mb +iconv +apxs2=/usr/bin/apxs2 | |
*WARNING* You're runing phpbrew as root/sudo. Unless you're going to install | |
system-wide phpbrew or this might cause problems. | |
===> phpbrew will now build 7.2.1 | |
===> Loading and resolving variants... | |
Downloading http://www.php.net/get/php-7.2.1.tar.bz2/from/this/mirror via curl extension | |
Redirecting to http://be2.php.net/distributions/php-7.2.1.tar.bz2 | |
[==================================================================] 14.29/14.29MB 100% | |
===> Extracting /home/ubuntu/.phpbrew/distfiles/php-7.2.1.tar.bz2 to /home/ubuntu/.phpbrew/build/tmp.1517140904/php-7.2.1 | |
===> Moving /home/ubuntu/.phpbrew/build/tmp.1517140904/php-7.2.1 to /home/ubuntu/.phpbrew/build/php-7.2.1 |
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
<?php | |
// http://wordpress.stackexchange.com/questions/114345/load-plugin-selectively-for-pages-or-posts-etc | |
// http://codex.wordpress.org/Must_Use_Plugins | |
add_filter( 'option_active_plugins', 'enable_plugins_selectively' ); | |
function enable_plugins_selectively( $plugins ) { | |
// Dont' mess with the plugins if it's the admin, yo | |
//if(is_admin() || stripos($_SERVER["SCRIPT_NAME"], strrchr(wp_login_url(), '/')) !== false){ |
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
<?xml version="1.0" ?> | |
<rss version="2.0"> | |
<channel> | |
<title>Title of the test feed</title> | |
<description>To get external images to JIG</description> | |
<link>http://justifiedgrid.com/</link> | |
<item> | |
<title>The first photo</title> | |
<description><![CDATA[ | |
<img src="http://dummyimage.com/600x600/3e2723/ff5722/&text=Dummy photo" /> |
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
<?php | |
if (is_search()) { | |
if (array_key_exists('s', $wp->query_vars) && !empty($wp->query_vars['s'])) { | |
$the_search_query = $wp->query_vars['s']; | |
get_jig(array( | |
'preset' => '19', | |
'row_height' => '250', | |
'orderby' => 'title_asc', | |
'ng_intersect_tags' => 'yes', | |
'ng_search_options' => 'tag', |
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
// jQuery v3 *requires* easing functions in this new format.. | |
// if the site uses old (pre-v1.4) jQuery easing plugins, animations don't work, hence the need to create JIG's own | |
// jQuery v1-v2 uses the new format but is fine with the legacy format too.. | |
$.extend( $.easing, { | |
// opacity changes and fades are fine with swing | |
JIGswing: function(p) { | |
return 0.5 - Math.cos(p*Math.PI)/2; | |
}, | |
// for 2D movements | |
JIGeaseInOutQuad: function(x) { |
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
>>>>> Ultimate_GetBoxShadow | |
10 (object) Ultimate_BoxShadow -> ultimate_get_box_shadow (3) | |
>>>>> WPML_PT_HTML | |
101 (object) WPML_Package_Translation_HTML_Packages -> loaded (1) | |
>>>>> WPML_ST_strings_context_language | |
10 (object) WPML_String_Translation -> get_default_context_language (2) | |
>>>>> WPML_ST_strings_language | |
10 (object) WPML_String_Translation -> get_strings_language (1) | |
>>>>> WPML_current_user | |
10 (object) SitePress -> get_current_user (0) |