Skip to content

Instantly share code, notes, and snippets.

View y0mbo's full-sized avatar
🏠
Serving the software engineering team at Maxcess International

John Uhri y0mbo

🏠
Serving the software engineering team at Maxcess International
View GitHub Profile
@y0mbo
y0mbo / README-Template.md
Created August 8, 2020 23:04 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@y0mbo
y0mbo / USStatesDataType.cs
Created September 26, 2019 21:03 — forked from leekelleher/USStatesDataType.cs
U.S. States DropDownList DataType for Umbraco
using System;
using System.Collections.Generic;
using System.Web.UI.WebControls;
using umbraco.cms.businesslogic.datatype;
namespace Our.Umbraco.DataTypes
{
public class USStates : AbstractDataEditor
{
private DropDownList m_Control = new DropDownList();
// create a bookmark and use this code as the URL, you can now toggle the css on/off
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3
javascript: (function() {
var elements = document.body.getElementsByTagName('*');
var items = [];
for (var i = 0; i < elements.length; i++) {
if (elements[i].innerHTML.indexOf('* { background:#000!important;color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }') != -1) {
items.push(elements[i]);
}
}
@y0mbo
y0mbo / delete_lines.md
Created January 30, 2018 16:55 — forked from shreeshga/delete_lines.md
Delete all lines matching pattern in vim

The ex command g is very useful for acting on lines that match a pattern. You can use it with the d command, to delete all lines that contain a particular pattern, or all lines that do not contain a pattern.

For example, to delete all lines containing "profile" (the first command is optional; it shows the lines that the second command will delete):

:g/profile
:g/profile/d

More complex patterns can be used, such as deleting all lines that are empty or that contain only whitespace:

@y0mbo
y0mbo / Contract Killer 3.md
Last active August 12, 2020 01:40
This is a contract based on Andy Clark's Contract Killer 3.

Killer Contract

(Based on the Contract Killer 3 by Andy Clarke at Stuff and Nonsense) See: https://gist.github.com/malarkey/4031110

Contract

Summary

I always do my best to fulfill your needs and meet your expectations, but it's still important to have things written down so that we both know what's what, who should do what and when, and what will happen if something goes terribly wrong. You won't find any complicated legal terms or long, unreadable text here. I have no desire to trick you into signing something you might later regret. I want us to do what is best for both of us, now and in the future. This is the start of a great relationship!