Skip to content

Instantly share code, notes, and snippets.

View savelee's full-sized avatar

Lee Boonstra savelee

View GitHub Profile
//How to set a card animation?
layout: {
type: 'card',
animation: {
type: 'slide',
direction: 'left'
}
}
@savelee
savelee / gist:2c062763257ba06c0af7
Created December 29, 2015 11:36
Can't start MySQL XAMMP mac. Use the CLI:
sudo /Applications/XAMPP/xamppfiles/bin/mysql.server start
@savelee
savelee / gist:3098563c5566fdf8e320
Last active January 2, 2016 11:01
Connect BB-8 by Sphero with JavaScript on a Mac
First create a folder in your htdocs, then run the following commands:
$ sudo npm install sphero
$ sudo npm install noble
$ cd node_modules/noble
$ npm install
@savelee
savelee / gist:b76682c6491a1b7b05a8
Last active January 2, 2016 22:54
Connect BB-8 Sphero with JavaScript
"use strict";
var sphero = require('sphero'
);
var bb8 = sphero('<MY-UUID-HERE>');
bb8.connect(function() {
console.log("Now connected to BB-8");
//The Ping command verifies that BB8 is awake and receiving commands.
#I've downloaded apache-maven-3.3.9-bin.zip from: https://maven.apache.org/download.cgi
#Unzip it to a place on your hard drive, for example ~/bin/apache-maven-3.3.9
#Add the bin directory of the created directory apache-maven-3.3.9 to the PATH environment variable.
#In my hidden .bash_profile:
#
# MAVEN
#
export PATH=${PATH}:/Users/myusername/bin/apache-maven-3.3.9/bin
@savelee
savelee / gist:16e9b853977bb528ac26
Created February 8, 2016 12:27
Sencha Cmd execution, with the Maven exec-maven-plugin
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.ladysign.MavenApp</groupId>
<artifactId>MavenApp</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>MavenApp Maven Webapp</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
@savelee
savelee / gist:59c57584a1663bfc7dfe
Created February 8, 2016 12:55
Maven profiles, for sencha environment setting
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Default Sencha Cmd build environment -->
<sencha.env>testing</sencha.env>
</properties>
<profiles>
<!-- Development profile -->
<profile>
<id>development</id>
@savelee
savelee / gist:5d99a824d4df70c66fbe
Created February 8, 2016 14:50
Ant Task runner, with the Maven maven-antrun-plugin
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.ladysign.MavenApp</groupId>
<artifactId>MavenApp</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>MavenApp Maven Webapp</name>
<url>http://maven.apache.org</url>
<developers>
@savelee
savelee / gist:5e7d073b75b7dc3187a2
Created February 8, 2016 15:18
Modify Sencha build.xml Ant, to copy folders to a different destination
<tstamp>
<format property="today" pattern="yyyy-MM-dd"/>
</tstamp>
<property
name="destinationFolder"
value="${build.dir}/../../dist/${app.name}/${today}"
/>
<!-- Example, of how to copy the build folder to a different destination-->
@savelee
savelee / gist:f6a5e35e5a6cfb169315
Created February 8, 2016 15:25
app.json different build destination
"output": {
"base": "${workspace.build.dir}/${build.environment}/${app.name}",
"page": "index.html",
"manifest": "${build.id}.json",
"js": "${build.id}/app.js",
"appCache": {
"enable": false
},
"resources": {
"path": "${build.id}/resources",