Skip to content

Instantly share code, notes, and snippets.

@creationmachine
creationmachine / dart_and_flutter.md
Last active December 16, 2019 18:57
Dart & Flutter Development
@creationmachine
creationmachine / neo4j_cypher_cheatsheet.md
Created March 12, 2018 01:39 — forked from DaniSancas/neo4j_cypher_cheatsheet.md
Neo4j's Cypher queries cheatsheet

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 / README.md
Created February 23, 2018 19:19 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@creationmachine
creationmachine / deploy.rb
Created August 29, 2016 02:21 — forked from jtadeulopes/deploy.rb
Capistrano 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 August 29, 2016 02:20 — forked from jtadeulopes/server.md
Server setup with ubuntu, nginx and puma for rails app.

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 21:42 — forked from fideloper/usevm.md
You should develop in a Virtual Machine

#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 September 25, 2015 17:59 — forked from omnisis/H2EmbeddedTest.java
Configuring H2 database for unit tests w/ spring
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;
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
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
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;