Skip to content

Instantly share code, notes, and snippets.

View prettycode's full-sized avatar

Chris prettycode

  • Seattle, WA
View GitHub Profile
<html>
<title>Hello</title>
<body>
<h1>World</h1>
</html>
@prettycode
prettycode / compositeVersionId.yml
Last active October 11, 2024 15:39
Composite version number for builds in Azure DevOps YAML CD/CD pipeline.
parameters:
- name: compositeVersionId
type: string
default: '$(Build.SourceBranchName)-$(Build.BuildId)-$(Build.BuildNumber)-$(System.JobAttempt)'
@prettycode
prettycode / launch-cubitcrack.cs
Created December 2, 2023 14:54
Console app to launch cubitcrack.exe with specific range
// https://privatekeyfinder.io/bitcoin-puzzle/
using System;
using System.Diagnostics;
using System.Globalization;
using System.Numerics;
using System.Security.Cryptography;
namespace ConsoleApp
{
[[1668573462000,100.71000000],[1668506152000,50.00000000],[1668210910000,100.00000000],[1668210330000,100.00000000],[1668067775000,100.00000000],[1668067700000,100.00000000],[1668067367000,157.95000000],[1668067102000,100.00000000],[1668066686000,100.00000000],[1668062671000,100.00000000],[1668055236000,100.00000000],[1668630428000,50.05000000],[1668585071000,50.05000000],[1668540978000,50.05000000],[1668504907000,50.05000000],[1668461787000,50.05000000],[1668400309000,50.05000000],[1668357151000,50.05000000],[1668324223000,50.05000000],[1668281547000,50.05000000],[1668255413000,50.05000000],[1668216809000,50.05000000],[1668148629000,50.05000000],[1668105094000,50.05000000],[1668067290000,50.05000000],[1668024373000,50.05000000],[1668001100000,50.05000000],[1667966218000,50.05000000],[1667935158000,50.05000000],[1667880459000,50.05000000],[1667843281000,50.05000000],[1667640856000,50.05000000],[1667597656000,50.05000000],[1667534331000,50.05000000],[1667491223000,50.05000000],[1667449517000,50.05000000],[1667
@prettycode
prettycode / Win10-16257-Console-Colors.reg
Created November 19, 2017 17:01 — forked from richardszalay/Win10-16257-Console-Colors.reg
Applies the default console colors added in Windows 10 16256 (https://blogs.msdn.microsoft.com/commandline/2017/08/02/updating-the-windows-console-colors/) to older versions of Windows
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Console]
"ColorTable00"=dword:000c0c0c
"ColorTable01"=dword:00da3700
"ColorTable02"=dword:000ea113
"ColorTable03"=dword:00dd963a
"ColorTable04"=dword:001f0fc5
"ColorTable05"=dword:00981788
"ColorTable06"=dword:00009cc1
@prettycode
prettycode / discoverPropertyPaths.js
Created June 29, 2016 04:33
Given an object, returns a list of property paths that can be used with lodash's _.get()
function discoverPropertyPaths(parentObject, parentPath) {
var paths = [],
propertyNames = Object.keys(parentObject);
propertyNames.forEach(function (propertyName) {
var propertyPath = (parentPath ? (parentPath + '.') : '') + propertyName,
property = parentObject[propertyName];
if (typeof property === 'object') {
var isArray = angular.isArray(property);
This file has been truncated, but you can view the full file.
@prettycode
prettycode / Model.prototype.$extended
Created April 10, 2016 03:07
Evaluate functions on object
Model.prototype.$extended = function () {
var thisModel = this,
extendedModel = angular.copy(thisModel);
Object
.keys(thisModel)
.filter(key => typeof thisModel[key] === 'function')
.forEach(key => {
try {
extendedModel[key] = thisModel[key]();
(function () {
'use strict';
var componentName = 'scopeSrc';
angular
.module('mixins.' + componentName, [])
.directive(componentName, [
'$http',
'$parse',
http://blog.workshape.io/making-a-spherical-globe-using-d3js/