Skip to content

Instantly share code, notes, and snippets.

Chris Haveard creationmachine

Block or report user

Report or block creationmachine

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
View neo4j_cypher_cheatsheet.md

Neo4j Tutorial

Fundamentals

Store any kind of data using the following graph concepts:

  • Node: Graph data records
  • Relationship: Connect nodes (has direction and a type)
  • Property: Stores data in key-value pair in nodes and relationships
  • Label: Groups nodes and relationships (optional)
@creationmachine
creationmachine / deploy.rb
Created Aug 29, 2016 — forked from jtadeulopes/deploy.rb
Capistrano deploy.rb
View deploy.rb
set :repository, "git@bitbucket.org:repo/repo.git"
set :user, "deploy"
set :use_sudo, false
set :scm, :git
set :keep_releases, 5
set :domain, "000.000.000.000"
set :application, "my_app"
set :rails_env, "production"
set :branch, "master"
set :deploy_to, "/var/www/#{application}"
@creationmachine
creationmachine / server.md
Created Aug 29, 2016 — forked from jtadeulopes/server.md
Server setup with ubuntu, nginx and puma for rails app.
View server.md

Update and upgrade the system

sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get autoremove
sudo reboot

Configure timezone

@creationmachine
creationmachine / usevm.md
Created May 11, 2016 — forked from fideloper/usevm.md
You should develop in a Virtual Machine
View usevm.md

#You should do all your LAMP development in a Virtual Machine

##Here's Why:

Many of us develop on Macintoshes. There are many reasons for this, but one of them is that it's based on a Unix platform of some sort. This allows us to run common server software such as Apache, Ruby, Python and Nodejs on our Macs.

Our computers become powerful develoment machines similar to the servers our apps will eventually live on.

Sometime we start our computer only to find Apache won't start, or MySQL can't create a PID file, or we've updated to Mountain Lion and Apache needs to be reconfigured. Death!

@creationmachine
creationmachine / H2EmbeddedTest.java
Created Sep 25, 2015 — forked from omnisis/H2EmbeddedTest.java
Configuring H2 database for unit tests w/ spring
View H2EmbeddedTest.java
package examples.database;
import com.google.common.collect.Lists;
import examples.database.dao.PeopleDAO;
import examples.database.model.PeopleInfo;
import org.apache.commons.lang.time.StopWatch;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.Test;
import org.junit.runner.RunWith;
View FIBOLOL.LOL
HAI 1.2
HOW DUZ I FIBONACCEH YR NUMBEH
I HAS A NUMBE
I HAS A NUMB
I HAS A NUMNUM
NUMBE R DIFF OF NUMBEH AN 1
NUMB R DIFF OF NUMBE AN 1
View FIZZBUZZ.LOL
HAI 1.3
IM IN YR fizz UPPIN YR i TIL BOTH SAEM i AN 100
I HAS A i ITZ SUM OF i AN 1 BTW, ALL LUPZ START AT 0 :/
I HAS A mod3 ITZ NOT MOD OF i AN 3
I HAS A mod5 ITZ NOT MOD OF i AN 5
mod3, O RLY?, YA RLY, VISIBLE "Fizz"!, OIC
mod5, O RLY?, YA RLY, VISIBLE "Buzz"!, OIC
View Department.java
package models;
import java.util.ArrayList;
import java.util.List;
/**
* Sample Department bean to demostrate main excel export features
*/
public class Department {
private String name;
View Employee.java
package models;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Random;
/**
* Sample Employee bean to demostrate simple export features
*/
You can’t perform that action at this time.