Skip to content

Instantly share code, notes, and snippets.

View scaffeinate's full-sized avatar

Sudharsanan Muralidharan scaffeinate

View GitHub Profile
@scaffeinate
scaffeinate / _navbar.html.erb
Last active August 29, 2015 14:24
Navbar Socify
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-top">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<%= link_to "Socify", root_url, class: "navbar-brand" %>
@scaffeinate
scaffeinate / 20150701024445_devise_create_users.rb
Last active August 29, 2015 14:24
Devise user migration - socify
class DeviseCreateUsers < ActiveRecord::Migration
def change
create_table(:users) do |t|
t.string :name, null: false, default: ""
t.string :email, null: false, default: ""
t.string :encrypted_password, null: false, default: ""
t.string :about
t.string :avatar
t.string :cover
# Nginx+Unicorn best-practices congifuration guide. Heartbleed fixed.
# We use latest stable nginx with fresh **openssl**, **zlib** and **pcre** dependencies.
# Some extra handy modules to use: --with-http_stub_status_module --with-http_gzip_static_module
#
# Deployment structure
#
# SERVER:
# /etc/init.d/nginx (1. nginx)
# /home/app/public_html/app_production/current (Capistrano directory)
#
@scaffeinate
scaffeinate / desktop-build-steps.md
Created August 18, 2014 00:49
Desktop build using node-webkit & grunt-node-webkit-builder

Desktop build using node-webkit & grunt-node-webkit-builder:

First download node-webkit for your platform(Not the target platform, the working machine's platform). With node-webkit we can package static webpages into native applications. This can be done for all three desktop platforms.

https://github.com/rogerwang/node-webkit

After downloading place the static website inside a folder along with a package.json file. This package.json is not to be confused with node packages json file. The package.json is used to define the specifications of the app such as title, width and height. Here is a sample:

@scaffeinate
scaffeinate / cordova-npm-ios.md
Last active August 29, 2015 14:05
Cordova npm iOS