Skip to content

Instantly share code, notes, and snippets.

View chriscooning's full-sized avatar
🛠️
Building cool stuff

Chris Cooning chriscooning

🛠️
Building cool stuff
View GitHub Profile
<svg width="245" height="55" viewBox="0 0 245 55" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M158.248 38.0664C153.148 38.0664 150.529 33.8672 150.529 28.7095C150.529 23.5519 153.102 19.5809 158.248 19.5809C163.486 19.5809 165.968 23.7344 165.968 28.7095C165.922 33.9585 163.303 38.0664 158.248 38.0664ZM108.348 19.5809C111.334 19.5809 112.575 21.3154 112.575 22.8216C112.575 26.473 108.853 28.0705 101.088 28.2988C101.088 23.7801 103.661 19.5809 108.348 19.5809ZM75.2644 38.0664C70.4398 38.0664 68.418 34.1411 68.418 28.7095C68.418 23.3237 70.4857 19.5809 75.2644 19.5809C80.135 19.5809 82.4325 23.4606 82.4325 28.7095C82.4325 34.1867 80.0431 38.0664 75.2644 38.0664ZM34.4617 14.2407H26.9261L39.4242 42.9046C37.0349 48.1992 35.7483 49.5228 34.0941 49.5228C32.3481 49.5228 30.6939 48.1079 29.4992 46.8755L26.1909 51.2573C28.4424 53.6307 31.521 55 34.6915 55C38.6431 55 41.6757 52.7178 43.4218 48.61L57.8498 14.195H50.452L42.9164 34.7344L34.4617 14.2407ZM234.064 19.5809C237.74 19.5809 238.475 22.0913 238.475 27
████████ ██ ██ ██████ ███████ ███████ ██████ ██████ ███ ███
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ████ ████
██ ████ ██████ █████ █████ ██ ██ ██████ ██ ████ ██
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ██ ███████ ██ ██████ ██ ██ ██ ██
Hello, What brought you in here?
1) I want to build something with Typeform. (Go to --> [A])
@chriscooning
chriscooning / positioning framework
Created October 1, 2019 21:48
Geoffrey Moore's positioning framework (for products)
Product Positioning Framework
===
* For (target customers)
* Who must (solve a specific problem)
* Our product is a new (new product category)
* That provides (key breakthrough benefit vs. current way of doing things – which solves dilemma)
* Unlike (competitor in new category)
* We have (whole product most relevant for you)
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
/**
* Shortcode attributes
* @var $atts
* @var $el_class
* @var $full_width
import Config from "./config";
import { IHash } from "./models/hash";
import { IItemModel, ItemModel } from "./models/item";
import sharp = require("sharp");
import S3 = require('aws-sdk/clients/s3');
import { rejects } from "assert";
class PictureLibrary {
async resizeAndSave(filePath: string, item: IItemModel) {
@chriscooning
chriscooning / guides-to-lines.jsx
Created October 26, 2018 18:55
[photoshop] transform guides into lines
//Requires Photoshop CS5 or newer
app.preferences.rulerUnits = Units.PIXELS;
#target photoshop;
if(documents.length) app.activeDocument.suspendHistory('Stroke Guides', 'main()');
function main(){
activeDocument.artLayers.add();
activeDocument.activeLayer.name="Stroked Guides";
app.showColorPicker();
var newColour = app.foregroundColor;
var guideSize = Window.prompt("Please enter Stroke Size!","1");
@chriscooning
chriscooning / dir-contents-to-csv
Created October 26, 2018 15:45
[powershell] Make a csv list of all files in a folder
Get-ChildItem C:\example\*.* | Select-Object FullName | Export-Csv C:\example.csv -NoTypeInformation
@chriscooning
chriscooning / move-files-dir2dir.ps1
Created October 26, 2018 15:43
[powershell] Move a csv list of files from one directory to another
$file_list = Get-Content C:\example.csv
$search_folder = "C:\example"
$destination_folder = "C:\example"
foreach ($file in $file_list) {
$file_to_move = Get-ChildItem -Path $search_folder -Filter $file -Recurse -ErrorAction SilentlyContinue -Force | % { $_.FullName}
if ($file_to_move) {
Move-Item $file_to_move $destination_folder
}
}
@chriscooning
chriscooning / actions-to-all-layers.js
Last active October 26, 2018 15:45
[photoshop] Apply action to each layer in file
#target photoshop
if (app.documents.length > 0) {
var myDocument = app.activeDocument;
myDocument.suspendHistory("operation", "main(myDocument)");
};
////////////////////////////////////
function main () {
var theLayers = getSelectedLayersIdx();
// do stuff;
// reselect layers;
//Name: BurnRateProjectSummary.js
//Date: 7/7/2015
//Company: Paxton Tait
//Description: new burn rate section which pulls from latest project commitment and allows spreadsheet burn rate calculations for user
function Form_OnSave() {
}
function Form_OnLoad() {