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
| namespace ZetaColorEditor.Colors; | |
| using System; | |
| using System.Drawing; | |
| /// <summary> | |
| /// Provides color conversion functionality. | |
| /// </summary> | |
| /// <remarks> | |
| /// http://en.wikipedia.org/wiki/HSV_color_space |
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
| clear-host; | |
| #Remove-Variable * -ErrorAction SilentlyContinue | |
| #get-item Variable:* | |
| #Get-Variable | Select-Object -ExpandProperty Name | |
| . C:\Users\linda_l\Desktop\PowerShell\GoogleOauth.ps1 | |
| Add-Type -Path "C:\Users\linda_l\Documents\visual studio 2015\Projects\TestingLibrary\packages\AE.Net.Mail.1.7.10.0\lib\net45\AE.Net.Mail.dll" | |
| Add-Type -AssemblyName System.IO | |
| Add-Type -AssemblyName System.Text.Encoding |
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
| # # WEB PERFORMANCE | |
| # Remove `ETags` as resources are sent with far-future expires headers. | |
| # `FileETag None` doesn't work in all cases. | |
| <IfModule mod_headers.c> | |
| Header unset ETag | |
| </IfModule> | |
| FileETag None |
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
| [CmdletBinding()] | |
| Param( | |
| [Parameter(Mandatory=$True,Position=1)] | |
| [string]$subscription, | |
| [Parameter(Mandatory=$True,Position=2)] | |
| [string]$service, | |
| [Parameter(Mandatory=$True,Position=3)] | |
| [string]$projectName, |
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
| with | |
| unique_constraint_infos (schemaname, tablename, constraintname, columnname) | |
| as ( | |
| select | |
| quotename(tc.table_schema) | |
| , quotename(tc.table_name) | |
| , quotename(tc.constraint_name) | |
| , quotename(cc.column_name) | |
| from | |
| information_schema.table_constraints tc |
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
| Copyright (C) 2016 Donnie Ray Jones | |
| Permission is hereby granted, free of charge, to any person obtaining a | |
| copy of this software and associated documentation files (the | |
| "Software"), to deal in the Software without restriction, including | |
| without limitation the rights to use, copy, modify, merge, publish, | |
| distribute, sublicense, and/or sell copies of the Software, and to | |
| permit persons to whom the Software is furnished to do so, subject to | |
| the following conditions: |
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
| /// <summary> | |
| /// Returns a string containing all of the public properties and fields for a given type. | |
| /// </summary> | |
| /// <param name="o">Type to print properties and fields for.</param> | |
| /// <returns>Properties and fields seperated by newlines.</returns> | |
| public static string PrintPublicPropertiesAndFields(this object o, string seperator = "\r\n") | |
| { | |
| StringBuilder sb = new StringBuilder(); | |
| Type otype = o.GetType(); |
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
| ContentView.ConstrainLayout (() => | |
| border.Frame.Top == ContentView.Frame.Top && | |
| border.Frame.Height == 0.5f && | |
| border.Frame.Left == ContentView.Frame.Left && | |
| border.Frame.Right == ContentView.Frame.Right && | |
| nameLabel.Frame.Left == ContentView.Frame.Left + hpad && | |
| nameLabel.Frame.Right == ContentView.Frame.GetMidX () - 5.5f && | |
| nameLabel.Frame.Top >= ContentView.Frame.Top + vpad && |
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 | |
| # A simple script to backup an organization's GitHub repositories. | |
| GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"github-backups"} # where to place the backup files | |
| GHBU_ORG=${GHBU_ORG-"<CHANGE-ME>"} # the GitHub organization whose repos will be backed up | |
| GHBU_UNAME=${GHBU_UNAME-"<CHANGE-ME>"} # the username of a GitHub account (to use with the GitHub API) | |
| GHBU_PASSWD=${GHBU_PASSWD-"<CHANGE-ME>"} # the password for that account | |
| GHBU_GITHOST=${GHBU_GITHOST-"<CHANGE-ME>.github.com"} # the GitHub hostname (see notes) | |
| GHBU_PRUNE_OLD=${GHBU_PRUNE_OLD-true} # when `true`, old backups will be deleted | |
| GHBU_PRUNE_AFTER_N_DAYS=${GHBU_PRUNE_AFTER_N_DAYS-3} # the min age (in days) of backup files to delete |
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 | |
| # A simple script to backup an organization's GitHub repositories. | |
| #------------------------------------------------------------------------------- | |
| # NOTES: | |
| #------------------------------------------------------------------------------- | |
| # * User @jimklimov (and probably some others called out in the long comment | |
| # thread below) have modified this script to make it more robust and keep | |
| # up with various changes in the GitHub API and response format at: | |
| # https://github.com/jimklimov/github-scripts |
NewerOlder