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
// ==UserScript== | |
// @name Focusmate Weekly Schedule Enhancer | |
// @namespace http://tampermonkey.net/ | |
// @version 4.3 | |
// @description Hide selected time slots on Focusmate for a clean UX in the weekly view.. demo at https://ibb.co/xSRt3hRM | |
// @match https://app.focusmate.com/* | |
// @grant none | |
// @license MIT | |
// ==/UserScript== |
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
open class FLower(){ | |
} | |
class Rose: FLower(){} | |
//A garden has flowers. | |
open class Garden<out T: FLower>(){ | |
val flowers: List<T> = listOf() | |
fun pickFlower(i: Int ):T = flowers[i] |
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
// Front Template | |
{{Word}} | |
<br> | |
<span id="image"> {{Image}} </span> | |
<br> | |
<button type="button" onClick="clickeme()" >Hint</button> | |
<br> | |
<a href="http://www.shabdkosh.com/pa/translate?e={{text:Word}}&l=pa">Punjabi</a> |
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
# Install KeePass 2 | |
sudo apt-get install -y keepass2 | |
# Install KeePassHTTP | |
cd $HOME | |
wget https://raw.github.com/pfn/keepasshttp/master/KeePassHttp.plgx | |
sudo mv KeePassHttp.plgx /usr/lib/keepass2 | |
sudo apt-get install -y mono-complete | |
sudo apt-get install -y libmono-system-xml-linq4.0-cil libmono-system-data-datasetextensions4.0-cil libmono-system-runtime-serialization4.0-cil mono-mcs |
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
{% include toc.html sanitize=true html=content h_min=1 h_max=2 class="toc__menu" %} | |
hard coded values in minimal mistake theme to change toc |
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
implementation 'com.jakewharton:butterknife:8.8.1' | |
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1' | |
implementation 'com.jakewharton.timber:timber:4.7.0' | |
implementation 'pub.devrel:easypermissions:1.2.0' |
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
flush_rewrite_rules( 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
add_action( 'transition_post_status', 'on_all_status_transitions', 10, 3 ); | |
function my_assets() { | |
wp_enqueue_style( 'theme-style', get_stylesheet_uri(), array( 'reset' ) ); | |
wp_enqueue_style( 'reset', get_stylesheet_directory_uri() . '/reset.css' ); | |
wp_enqueue_script( 'owl-carousel', get_stylesheet_directory_uri() . '/owl.carousel.js', array( 'jquery' ) ); | |
wp_enqueue_script( 'theme-scripts', get_stylesheet_directory_uri() . '/website-scripts.js', array( 'owl-carousel', 'jquery' ), '1.0', 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
# Redirect HTTP to HTTPS | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^(www.)?codehealthy.com$ | |
RewriteCond %{SERVER_PORT} !^443$ | |
RewriteCond %{HTTP:X-Forwarded-Proto} !https | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] |
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
// ==UserScript== | |
// @name Carleton_ieee_redirect | |
// @namespace http://codehealthy.com/ | |
// @version 0.1 | |
// @description This redirects ieee page to carleton university proxy page | |
// @match http://ieeexplore.ieee.org/document/* | |
// @copyright 2017, Ranjit Singh Saini | |
// @run-at document-start | |
// ==/UserScript== |
NewerOlder