This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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.." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
base=$1 | |
if [ -z $base ] | |
then | |
echo No argument given | |
else | |
## | |
## iOS files | |
convert "$base" -resize 20x20! "Icon-20.png" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 | |