Skip to content

Instantly share code, notes, and snippets.

@jgold6
jgold6 / XamarinUninstall
Created July 24, 2014 22:31
Xamarin Nuclear Uninstall Bash Script - Mac OS X
#!/bin/bash
sudo launchctl unload /Library/LaunchAgents/com.xamarin.mtvs.buildserver.plist
sudo rm -f /Library/LaunchAgents/com.xamarin.mtvs.buildserver.plist
sudo rm -rf /Developer/MonoTouch
sudo rm -rf /Developer/MonoAndroid
sudo rm -rf /Library/Frameworks/Mono.framework
sudo rm -rf /Library/Frameworks/Xamarin.Android.framework
sudo rm -rf /Applications/Xamarin Studio.app
sudo rm -rf ~/Library/Developer/Xamarin
@cwensley
cwensley / pal-edit.cs
Last active August 29, 2015 14:14 — forked from phrohdoh/pal-edit.cs
using System;
using System.Collections.Generic;
using Eto;
using Eto.Forms;
using Eto.Drawing;
namespace ShpSharp
{
public class PalEditorForm : Form
{
@cwensley
cwensley / StackLayoutTest.cs
Created February 17, 2015 17:27
Shows the new StackLayout
public class MyForm : Form
{
public MyForm()
{
ClientSize = new Size(200, 200);
Content = new StackLayout
{
Orientation = Orientation.Vertical,
ContentAlign = StackLayoutAlign.Center,
Spacing = 10,
#pragma once
#include <memory>
#include <iostream>
#include <string>
#include <cstdio>
using namespace std;
/// Cast an FString to char * for debugging purposes
@mieki256
mieki256 / image2gpl.py
Created December 30, 2015 11:48
インデックスカラー画像のパレット値をGIMP Palette(.gpl)に変換
#!/usr/bin/env python
# -*- mode: python; coding: utf-8 -*-
# Last updated: <2015/12/30 20:23:02 +0900>
"""
dump GIMP Palette (.gpl) format from index color image
by mieki256
License: CC0 / Public Domain
"""
import sys
@Kerollmops
Kerollmops / Aaa.rs
Last active November 10, 2017 14:30
Little hack to display default values in the doc. (don't forget to `cargo test --doc`)
#[derive(Debug, PartialEq, Eq)]
pub struct Aaa {
pub field1: usize,
pub field2: i32,
}
impl Default for Aaa {
/// ```
/// # use aaa::Aaa;
/// # let a =
@demisx
demisx / syntax.css
Last active February 20, 2020 04:32
Syntax highlighter CSS file
.highlight { background: #ffffff; }
.highlight .c { color: #999988; font-style: italic } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { font-weight: bold } /* Keyword */
.highlight .o { font-weight: bold } /* Operator */
.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
@dragunoff
dragunoff / launch.json
Created June 6, 2020 20:45
OpenRA launch configurations for VSCode
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch (TD)",
"type": "mono",
"request": "launch",
"program": "${workspaceRoot}/OpenRA.Game.exe",
"cwd": "${workspaceRoot}",
"args": ["Game.Mod=cnc"]
# typed: true
# frozen_string_literal: true
require('dev')
require('fileutils')
module Dev
module Helpers
class APFSVolume
extend(T::Sig)
for i in $HOME/local/*; do
[ -d $i/bin ] && PATH="${i}/bin:${PATH}"
[ -d $i/sbin ] && PATH="${i}/sbin:${PATH}"
[ -d $i/include ] && CPATH="${i}/include:${CPATH}"
[ -d $i/lib ] && LD_LIBRARY_PATH="${i}/lib:${LD_LIBRARY_PATH}"
[ -d $i/lib ] && LD_RUN_PATH="${i}/lib:${LD_RUN_PATH}"
# uncomment the following if you use macintosh
# [ -d $i/lib ] && DYLD_LIBRARY_PATH="${i}/lib:${DYLD_LIBRARY_PATH}"
[ -d $i/lib/pkgconfig ] && PKG_CONFIG_PATH="${i}/lib/pkgconfig:${PKG_CONFIG_PATH}"
[ -d $i/share/man ] && MANPATH="${i}/share/man:${MANPATH}"