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
#!/bin/sh | |
# script to check for complete torrents in transmission folder, then stop and move them | |
# either hard-code the MOVEDIR variable here… | |
MOVEDIR=/home/mjdescy/media # the folder to move completed downloads to | |
# …or set MOVEDIR using the first command-line argument | |
# MOVEDIR=%1 | |
# use transmission-remote to get torrent list from transmission-remote list | |
# use sed to delete first / last line of output, and remove leading spaces | |
# use cut to get first field from each line |
/* | |
* 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) |
# 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 ** | |
# |
<?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 () ) { |
""" 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' |
(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() : ''); |
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
#!/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. |
#!/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. | |
# |
<?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> |