Skip to content

Instantly share code, notes, and snippets.

View Icehunter's full-sized avatar

Ryan Wilson Icehunter

View GitHub Profile
@Icehunter
Icehunter / WrappingDemo.cs
Created November 2, 2012 03:22
Example of wrapping a paragraph every nth character. Example of what I feel is Good/Better code; subjectively.
// WrappingDemo.cs
//
// Created by Ryan Wilson.
using System;
using System.Linq;
using System.Text.RegularExpressions;
namespace WrappingDemoWPF
{
#!/bin/bash
# by http://github.com/jehiah
# this prints out some branch status (similar to the '... ahead' info you get from git status)
# example:
# $ git branch-status
# dns_check (ahead 1) | (behind 112) origin/master
# master (ahead 2) | (behind 0) origin/master
git for-each-ref --format="%(refname:short) %(upstream:short)" refs/heads | \
@Icehunter
Icehunter / install_chrome.sh
Last active April 26, 2020 13:41
Google Chrome Installer/Uninstaller for CentOS 6
#! /bin/bash
# Google Chrome Installer/Uninstaller for CentOS 6
# (C) Richard K. Lloyd 2013 <[email protected]>
# See http://chrome.richardlloyd.org.uk/ for further details.
# This script is in the public domain and has no warranty.
# It needs to be run as root because it installs/uninstalls RPMs.
# Minimum system requirements:
@Icehunter
Icehunter / truth.js
Created July 3, 2014 19:05
my mind has been destroyed :)
var shouldTrueCount = 0;
var shouldTrue = [
' ',
'a',
true,
1, {}
];
for (var i = 0; i < shouldTrue.length; i++) {
if (shouldTrue[i]) {
shouldTrueCount++;
'use strict';
// linting rules prevent modifying Object directly
var extend = Object;
extend.compact = function (obj) {
var self = this;
function compactArray(array) {
return array.filter(function (value) {
@Icehunter
Icehunter / workspace.sh
Created March 6, 2016 07:04 — forked from scottsb/casesafe.sh
Create and manage a case-sensitive disk-image on OSX.
#!/bin/bash
# ---------------------------------------------------------
# Customizable Settings
# ---------------------------------------------------------
# where to store the sparse-image
WORKSPACE=${HOME}/.workspace.dmg.sparseimage
# location where workspace will be mounted
### Keybase proof
I hereby claim:
* I am icehunter on github.
* I am icehunter (https://keybase.io/icehunter) on keybase.
* I have a public key ASBptmE6G3tTU0M_fyUx-Zt6HKvcMH4DQ81Alr8CiZkZvwo
To claim this, I am signing this object:
This file has been truncated, but you can view the full file.
[
{
"id": 1,
"name": "Afghanistan",
"states": [
{
"id": 3901,
"name": "Badakhshan",
"cities": [
{
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
Guys, this is getting really frustrating. **We need to stop committing directly to the `dev` branch**. Every time someone does this, the project gets out of sync, and now every `git pull` leads to these ridiculous merge commits that we shouldn’t have to deal with. It’s causing a ton of unnecessary conflicts and wasting everyone’s time.
We’ve talked about this before—use **feature branches**. It’s not hard, and it keeps things clean. If this keeps happening, we’re just going to keep running into the same issues, and the project will be a mess. Let’s get it together.
If you’re not sure how to use Git correctly or need a refresher, check out these resources:
1. **Git Branching Basics**:
A comprehensive guide by Atlassian on how to use Git branches for better project organization.
[Atlassian Git Branching](https://www.atlassian.com/git/tutorials/using-branches)