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
mgrider / vim-swift-setup.sh
Last active Oct 10, 2019 — forked from jlehikoinen/setup.sh
Swift syntax highlighting for Vim
View vim-swift-setup.sh
# Swift syntax highlighting for Vim
# Original Source: http://wingsquare.com/blog/swift-script-syntax-highlighting-and-indentation-for-vim-text-editor/
# Another helpful article: https://billyto.github.io/blog/swift-syntax-vim
# More about Vim packages: http://vimcasts.org/episodes/packages/
echo "--- creating ~/.vim/pack/bundle/start dir.."
mkdir -p ~/.vim/pack/bundle/start
echo "--- Cloning Apple's Swift repo.."
@mgrider
mgrider / prepare_icons.sh
Last active Aug 12, 2019 — forked from alvinthen/prepare_icons.sh
Make all app icons with imagemagick, iOS and Android
View prepare_icons.sh
#!/bin/sh
base=$1
if [ -z $base ]
then
echo No argument given
else
##
## iOS files
convert "$base" -resize 20x20! "Icon-20.png"
@mgrider
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;
View keybase.md

Keybase proof

I hereby claim:

  • I am mgrider on github.
  • I am livingtech (https://keybase.io/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.