Skip to content

Instantly share code, notes, and snippets.

Martin Grider mgrider

Block or report user

Report or block mgrider

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mgrider /
Last active Oct 10, 2019 — forked from jlehikoinen/
Swift syntax highlighting for Vim
# Swift syntax highlighting for Vim
# Original Source:
# Another helpful article:
# More about Vim packages:
echo "--- creating ~/.vim/pack/bundle/start dir.."
mkdir -p ~/.vim/pack/bundle/start
echo "--- Cloning Apple's Swift repo.."
mgrider /
Last active Aug 12, 2019 — forked from alvinthen/
Make all app icons with imagemagick, iOS and Android
if [ -z $base ]
echo No argument given
## iOS files
convert "$base" -resize 20x20! "Icon-20.png"
mgrider / CameraBehavior.cs
Created Apr 30, 2019
Quick and dirty rotate camera around something...
View CameraBehavior.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace AbstractPuzzle
public class CameraManager : MonoBehaviour
public GameObject cameraObject;
public GameObject centerObject;

Keybase proof

I hereby claim:

  • I am mgrider on github.
  • I am livingtech ( on keybase.
  • I have a public key whose fingerprint is 3F4D 27C3 5D2D 355A F57F 33ED 8677 3767 33E1 30EE

To claim this, I am signing this object:

View L3DCubeAccelerometerDemo.ino
// This #include statement was automatically added by the Spark IDE.
#include "neopixel/neopixel.h"
#include <math.h>
//set up the pin that controls the LEDs, the type of LEDs (WS2812B) and the number of LEDs in the cube (8*8*8=512)
#define PIXEL_PIN D0
#define PIXEL_COUNT 512
#define PIXEL_TYPE WS2812B
#define SIDE 8
You can’t perform that action at this time.