Skip to content

Instantly share code, notes, and snippets.

@minivan
minivan / package.json
Created April 9, 2016 17:49
A working package.json for phoenix(1.0.4) and brunch-sass
{
"repository": {},
"dependencies": {
"brunch": "^1.8.5",
"babel-brunch": "^5.1.1",
"clean-css-brunch": ">= 1.0 < 1.8",
"css-brunch": ">= 1.0 < 1.8",
"javascript-brunch": ">= 1.0 < 1.8",
"uglify-js-brunch": ">= 1.0 < 1.8",
"sass-brunch": "^1.9.1"
@minivan
minivan / .vimrc
Created July 25, 2015 11:12
My NeoVim Config
call plug#begin('~/.vim/plugged')
Plug 'junegunn/vim-easy-align'
Plug 'tpope/vim-sensible'
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'kien/ctrlp.vim'
Plug 'sickill/vim-monokai'
Plug 'rking/ag.vim'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-haml'

Deploy Rails app to digitalocean with nginx, unicorn, capistrano & postgres

Create droplet of your liking (ubuntu 12.10 x32)

ssh to root in terminal with your server ip

ssh root@123.123.123.123

Add ssh fingerprint and enter password provided in email

@minivan
minivan / output.html
Last active March 8, 2016 17:27
CourseWork. Assignment 1. Output.
<h1>Hello FAF, this is a document</h1>
<p>So we're trying to do interesting documents</p>
<p>They are actually quide <strong>hard</strong>
Not that <em>easy</em></p>
<p>What happens if we do ##this?</p>
<p>How about <code><em>this</strong></em>?</p>
@minivan
minivan / input.md
Last active November 12, 2015 03:17
CourseWork. Assignment 1. Input

Hello FAF, this is a document

So we're trying to do interesting documents

They are actually quide hard Not that easy

What happens if we do ##this?

How about *this*?

@minivan
minivan / index.html.erb
Created May 23, 2015 00:40
The app/views/posts/index.html.erb after the addition of two new fields
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">Azi tu Mâine eu</a>
</div>
<div class="navbar-collapse">
<ul class="nav navbar-nav">
<li>
<%= link_to("Postare nouă", new_post_path) %>
@minivan
minivan / index.html.erb
Created May 23, 2015 00:39
The app/views/posts/index.html.erb after the addition of two new fields
<%= cl_image_tag(post.image.path, width: 500, class: 'img-responsive img-thumbnail') %>
@minivan
minivan / application.html.erb
Created May 22, 2015 17:49
azitumaine.eu application layout
<!DOCTYPE html>
<html>
<head>
<title>Azi tu Mâine Eu</title>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
</head>
<body>
/*!
* Start Bootstrap - Landing Page Bootstrap Theme (http://startbootstrap.com)
* Code licensed under the Apache License v2.0.
* For details, see http://www.apache.org/licenses/LICENSE-2.0.
*/
body,
html {
width: 100%;
height: 100%;
@minivan
minivan / index.html.erb
Last active August 29, 2015 14:21
The RailsGirls Demo Project Tip #4. Index file before.
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">Azi tu Mâine eu</a>
</div>
<div class="navbar-collapse">
<ul class="nav navbar-nav">
<li>
<%= link_to("Postare nouă", new_post_path) %>