By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
| # THIS FILE IS NO LONGER BEING MAINTAINED. FOR A MAINTAINED VERSION, PLEASE USE THE VERSION IN THE NEW REPOSITORY. | |
| # Repository: https://github.com/hkamran80/blocklists | |
| # New link for this file: https://raw.githubusercontent.com/hkamran80/blocklists/main/smart-tv | |
| # ------ | |
| # This is a blocklist to block Smart TVs sending data home. | |
| # Please help to collect domains! | |
| # It could be that the TV does not receive any more updates or other services no longer work. Please report such an incident. |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>net.duplicati.server</string> | |
| <key>ProgramArguments</key> | |
| <array> | |
| <string>/Applications/Duplicati.app/Contents/MacOS/duplicati-server</string> | |
| <string>--webservice-port=8200</string> |
| #!/usr/bin/python | |
| #-------------------------------------------------------------------------------------------------- | |
| #-- Series Tag Updater for Sonarr | |
| #-------------------------------------------------------------------------------------------------- | |
| # Program : SonarrTagarr | |
| # To Complie : n/a | |
| # | |
| # Purpose : Add tags to Sonarr series. Tags are retreived from Sonarr. | |
| # Say Y to add a tag. N to skip a tag. N for all tags will remove all tags. | |
| # |
| #!/usr/bin/python3 | |
| """ | |
| #------------------------------------------------------------------------------------------------ | |
| #-- Movie Tag Updater for Radarr | |
| #-------------------------------------------------------------------------------------------------- | |
| # Program : Radarr_tagarr | |
| # To Complie : n/a | |
| # | |
| # Purpose : Add tags and profiles to radarr movies. Tags are retreived from Radarr. | |
| # Say Y to add a tag. N to skip a tag. N for all tags will remove all tags. |
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
| (function() { | |
| 'use strict'; | |
| /** | |
| * Formats a string and returns a valid IBAN account string | |
| * @param {string} input example: 'ES0123456789012345678901' | |
| * @return {string} output example: 'ES01 2345 6789 0123 4567 8901' | |
| * @example <caption>{{'ES0123456789012345678901' | IBAN}}</caption> | |
| */ | |
| angular.module('app').filter('IBAN', () => iban => iban ? iban.replace(/[^\dA-Z]/g, '').replace(/(.{4})/g, '$1 ').trim() : ''); |
| """ Tumblr API Example - Python CLI | |
| """ | |
| import oauth2 | |
| import urlparse | |
| import pytumblr | |
| REQUEST_TOKEN_URL = 'http://www.tumblr.com/oauth/request_token' | |
| AUTHORIZATION_URL = 'http://www.tumblr.com/oauth/authorize' | |
| ACCESS_TOKEN_URL = 'http://www.tumblr.com/oauth/access_token' |
| <?php | |
| /** | |
| * Link Pages | |
| * @author toscha | |
| * @link http://wordpress.stackexchange.com/questions/14406/how-to-style-current-page-number-wp-link-pages | |
| * @param array $args | |
| * @return void | |
| * Modification of wp_link_pages() with an extra element to highlight the current page. | |
| */ | |
| function bootstrap_link_pages( $args = array () ) { |
| # Title: Gallery Tag for Jekyll | |
| # Authors: Kevin Brown | |
| # Description: gallery using extended bootstrap carousel. Uses a CDN if needed. | |
| # | |
| # Adaption of "Photos tag for Jekyll" by Devin Weaver | |
| # Using bootstrap carosel-extended instead of fancybox: "http://bootsnipp.com/snipps/carousel-extended" | |
| # We have also left out the photo tag and are using solly the gallery function | |
| # | |
| # ** This only covers the markup. Not the integration of carousel-extended ** | |
| # |
| /* | |
| * System Versioning Preprocessor Macros | |
| */ | |
| #define SYSTEM_VERSION_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedSame) | |
| #define SYSTEM_VERSION_GREATER_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedDescending) | |
| #define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending) | |
| #define SYSTEM_VERSION_LESS_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending) | |
| #define SYSTEM_VERSION_LESS_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedDescending) |