Skip to content

Instantly share code, notes, and snippets.

View rtelicak's full-sized avatar

Roman Telicak rtelicak

View GitHub Profile
#!/bin/bash
# echo Install Mac App Store apps first.
# Either use mas-cli (https://github.com/argon/mas) or install manually; apps I need: Bear/Simplenote, Tyme, Polarr, Pixelmator, JPEGmini.
# read -p "Press any key to continue… " -n1 -s
# echo '\n'
# Check that Homebrew is installed and install if not
if test ! $(which brew)
[
//
// TABS (REGULAR)
//
// Tab set
{
"class": "tabset_control",
"layer0.texture": "",
@rtelicak
rtelicak / callApiMiddleware.js
Last active August 4, 2016 19:17
React redux validation flow
import _ from 'lodash';
import Alert from 'react-s-alert';
import { push } from 'react-router-redux';
import { APP_TOKEN_NAME } from '@constants/values';
import { parseBackendError, checkHttpStatus, parseJSON } from '@utils/helpers';
// inspired by http://redux.js.org/docs/recipes/ReducingBoilerplate.html
const defaultFetchOptions = {
@rtelicak
rtelicak / setup.md
Last active August 25, 2016 14:16
Larave & beanstalkd setup
sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
var gulp = require('gulp');
var gutil = require('gulp-util');
var sass = require('gulp-sass');
var autoprefix = require('gulp-autoprefixer');
var browserSync = require("browser-sync");
var filter = require('gulp-filter');
var sourcemaps = require('gulp-sourcemaps');
var concat = require('gulp-concat');
var minifyCSS = require('gulp-minify-css');
@rtelicak
rtelicak / gist:f5aa8d56c42cfc1f7e8d
Created February 25, 2015 15:45
WS domain search
<!-- Include this snippet to your html -->
<!-- Styling is up to you :) -->
<form id="ws_domainChecker">
<input id="ws_domainName" type="text">
<button type="submit">Over domenu</button>
</form>
<script type="text/javascript">
var form = document.getElementById('ws_domainChecker');
@rtelicak
rtelicak / gist:a4a302f160d36dbf7716
Created December 28, 2014 14:41
prevent terminal from bouncing
defaults write com.apple.dock no-bouncing -bool TRUE
{
"directory": "app/assets/vendor"
}
url HTTP Method Operation
/api/books GET Get an array of all books
/api/books/:id GET Get the book with id of :id
/api/books POST Add a new book and return the book with an id attribute added
/api/books/:id PUT Update the book with id of :id
/api/books/:id DELETE Delete the book with id of :id