Skip to content

Instantly share code, notes, and snippets.

View aokon's full-sized avatar

Adam Okoń aokon

  • Elegant Code
  • Gdańsk/Poland
View GitHub Profile
@aokon
aokon / readme.md
Created June 25, 2020 15:31 — forked from maxivak/readme.md
Integrating Gem/Engine and Main Rails App
const path = require('path');
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
entry: {
'stylesheets/frontend_app.css': './style/style.scss',
'javascripts/fronted_app.js': './src/index.js',
'javascripts/vendor.bundle.js': [
'react',
About
This document contains list of the features for the training app.
Pick your favourite web technology and try to do it :D
Tip:
* Create repo for your app at github
* Add README where you add some description how to run the app, make tests etc
* Use your favourit UI framework(http://getbootstrap.com/, http://www.getmdl.io/index.html)
* Plan your activity using your favourite system(for beginners I recommend https://trello.com/)
* Make fun!
@aokon
aokon / _typeahead_input
Created May 6, 2015 10:13
ember typeahead component
.twitter-typeahead {
width: 95%;
}
.tt-query {
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
.tt-hint {
color: #999
set :stage, 'production'
set :shared_children, shared_children << 'tmp/sockets'
puma_sock = "unix://#{shared_path}/sockets/puma.sock"
puma_control = "unix://#{shared_path}/sockets/pumactl.sock"
puma_state = "#{shared_path}/sockets/puma.state"
puma_log = "#{shared_path}/log/puma-#{stage}.log"
namespace :deploy do
desc "Start the application"
#!/bin/bash
### BEGIN INIT INFO
# Provides: APPLICATION
# Required-Start: $all
# Required-Stop: $network $local_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start the APPLICATION unicorns at boot
# Description: Enable APPLICATION at boot time.
### END INIT INFO
@aokon
aokon / app.rb
Created March 26, 2012 14:10 — forked from cohuman/app.rb
# A simple app that implements a naive session-based login, to demonstrate the problems with testing sessions in Sinatra.
require 'rubygems'
require 'sinatra/base'
class LoginApp < Sinatra::Base
enable :sessions
get '/' do
@aokon
aokon / ElasticSearch.org.Website.Search.FieldNotes.markdown
Created February 29, 2012 15:28 — forked from karmi/ElasticSearch.org.Website.Search.FieldNotes.markdown
Field notes gathered during installing and configuring ElasticSearch for http://elasticsearch.org

ElasticSearch.org Website Search: Field Notes

These are field notes gathered during installation of website search facility for the ElasticSearch website.

You may re-use it to put a similar system in place.

The following assumes:

@aokon
aokon / deploy.rb
Created February 16, 2012 23:26 — forked from mrrooijen/deploy.rb
Unicorn + Bluepill + Capistrano with RVM
$:.unshift(File.expand_path('./lib', ENV['rvm_path']))
require "rvm/capistrano"
set :application, "my_app"
set :repository, "git@trunksapp.com:myuser/myapp.git"
set :branch, "production"
set :rvm_ruby_string, "1.9.2"
set :deploy_to, "/var/applications/"
set :user, "username"
@aokon
aokon / 0-readme.md
Created February 4, 2012 10:44 — forked from burke/0-readme.md
ruby-1.9.3-p0 cumulative performance patch.

Patched ruby 1.9.3-p0 for 30% faster rails boot

What is?

This script installs a patched version of ruby 1.9.3-p0 with patches to make ruby-debug work again (#47) and boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84).

Huge thanks to funny-falcon for the performance patches.