Skip to content

Instantly share code, notes, and snippets.

@osfx
osfx / Maakefile
Created April 10, 2017 00:29
Makefile for work with crystal
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
current_dir := $(notdir $(patsubst %/,%,$(dir $(mkfile_path))))
APP = $(current_dir)
test:
crystal spec
build:
rm -rf bin/$(APP) && crystal build --release -o bin/$(APP)
run:
crystal run src/$(APP).cr
gem "materialize-sass"
gem "material_icons"
gem "simple_form"
gem "simple_form_materialize", "~>1.0.0"
run "bundle install"
run "rails generate simple_form:install"
run "rails g simple_form_materialize:install"
run "rm Gemfile"
run "touch Gemfile"
add_source "https://rubygems.org"
gem 'rails', '~> 5.0.2'
gem 'sqlite3'
gem 'puma', '~> 3.0'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.2'
gem 'jquery-rails'
run "rm Gemfile"
run "touch Gemfile"
add_source "https://rubygems.org"
gem 'rails', '~> 5.0.2'
gem 'sqlite3'
gem 'puma', '~> 3.0'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.2'
gem 'jquery-rails'
$ git checkout -b myfeature develop
$ git checkout develop
# Switched to branch 'develop'
$ git merge --no-ff myfeature
# Updating ea1b82a..05e9557
# (Summary of changes)
$ git branch -d myfeature
# Deleted branch myfeature (was 05e9557).
$ git push origin develop
@osfx
osfx / Makefile
Last active April 14, 2017 22:42
Example Makefile for crystall lang development
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
current_dir := $(notdir $(patsubst %/,%,$(dir $(mkfile_path))))
APP = $(current_dir)
test:
crystal spec
build:
rm -rf bin/$(APP)
crystal build --release src/$(APP).cr -o bin/$(APP)
run:
@osfx
osfx / Portfolio materializecss.markdown
Created April 11, 2016 07:24
Portfolio materializecss
@osfx
osfx / Responsive Form.markdown
Created April 11, 2016 07:23
Responsive Form
@osfx
osfx / Paper cards - Masonry & Materialize.markdown
Created April 11, 2016 07:22
Paper cards - Masonry & Materialize