Skip to content

Instantly share code, notes, and snippets.

@digitaldrummerj
digitaldrummerj / NugetDemoBox
Last active August 29, 2015 14:07
Code Camp Demo
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Set-TaskbarSmall
cinst VisualStudio2013Ultimate -InstallArguments "/Features:'WebTools'"
cinst VS2013.3
cinst notepadplusplus
cinst NuGet.CommandLine
cinst NugetPackageExplorer
cinst GoogleChrome
cinst ReSharper
@digitaldrummerj
digitaldrummerj / IonicSetup
Last active September 16, 2023 05:21
Setup script to install everything needed for Ionic Framework using Chocolatey.
#########################
# This gist is meant to be used to install everything needed to get up and running with the Ionic Framework on Windows using Chocolatey (http://chocolatey.org)
# Read "How to use this Gist File" section below for instructions.
#########################
#########################
# NOTE : for those familiar with Chocolatey, there are a couple of custom packages used as part of the install that are not published and are waiting on maintainers to make updates to their packages.
#########################
***** For Enums ADD Description attribute to each enum and using statement to class with enum
using System.ComponentModel;
[Description("Admin")]
****************
CLASS TO GET ENUM INTO NAME/VALUE Dictionary to use for DataBinding
using System;
@digitaldrummerj
digitaldrummerj / 0_reuse_code.js
Last active August 29, 2015 14:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@digitaldrummerj
digitaldrummerj / IonicWorkshop
Last active August 29, 2015 14:19
OSx - Get All IonicWorkshop Repositories
#OSX Command
curl -s https://api.github.com/orgs/IonicWorkshop/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["clone_url"]} ]}'
#Windows Linqpad using Octokit.Net Nuget Package
var client = new GitHubClient(new Octokit.ProductHeaderValue("ProjectOmegatron"));
var repos = client.Repository.GetAllForOrg("IonicWorkshop").Result;
@digitaldrummerj
digitaldrummerj / gist:be3eb227be0330867b18
Created July 8, 2015 00:02
Azure Powershell SDK Script to Get Possible VM Sizes by Location
$azurelocations = Get-AzureLocation
$out = @()
foreach ($location in $azurelocations)
{
$VMSizes = $location.VirtualMachineRoleSizes
$VMSizesStr = $VMSizes -join ', '
$props = @{
Name = $location.Name
VMSizes = $VMSizesStr}
$out += New-Object PsObject -Property $props
@digitaldrummerj
digitaldrummerj / gist:dfc447c0841a36735577
Created July 8, 2015 00:04
Azure Powershell SDK script to get list of VM Images available
Get-AzureVMImage | Select * | Out-Gridview –Passthru
[CmdletBinding()]
param(
[Parameter(Mandatory)]
[string]$VMName,
[Parameter(Mandatory)]
[string]$OutputFile
)
function Get-DriveType($drive)
@digitaldrummerj
digitaldrummerj / SassMeister-input-HTML.html
Last active October 20, 2015 20:25
Generated by SassMeister.com.
<div id="button-group">
<button class="primary">Primary</button>
<button class="secondary">Secondary</button>
<button class="secondary">Secondary</button>
</div>
@digitaldrummerj
digitaldrummerj / SassMeister-input-HTML.html
Last active October 20, 2015 22:09
Generated by SassMeister.com.
<div id="star-field">
<div class="star"></div>
<div class="star"></div>
<div class="star"></div>
<div class="star"></div>
<div class="star"></div>
<div class="star"></div>
<div class="star"></div>
<div class="star"></div>
<div class="star"></div>