Skip to content

Instantly share code, notes, and snippets.

View kannans's full-sized avatar
💻
☝️

Kannan S kannans

💻
☝️
View GitHub Profile
@maxivak
maxivak / webpacker_rails.md
Last active June 15, 2024 21:37
Webpack, Yarn, Npm in Rails
import React from "react";
import { render } from "react-dom";
const ParentComponent = React.createClass({
getDefaultProps: function() {
console.log("ParentComponent - getDefaultProps");
},
getInitialState: function() {
console.log("ParentComponent - getInitialState");
return { text: "" };
@gokulkrishh
gokulkrishh / media-query.css
Last active September 20, 2024 07:20
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
@kannans
kannans / Bookmarks
Last active August 29, 2015 14:23
Bookmarks
https://www.airpair.com/js/javascript-framework-comparison
http://iarouse.com/dist-material-tf/v1.3/index.html#/forms/elements
http://www.frontcoded.com/rails-on-amazon-ec2-ubuntu.html
http://docs.aws.amazon.com/general/latest/gr/rande.html#ddb_region
@ChuckJHardy
ChuckJHardy / digital_ocean_setup.md
Last active August 27, 2024 04:03
DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3 Setup Instructions

DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3

SSH into Root

$ ssh root@123.123.123.123

Change Root Password

@kannans
kannans / Packages for RubyonRails installation
Last active August 29, 2015 14:04
how to Install Ruby on Rails on a new Ubuntu system with all important packages
Installation steps for running Ruby On Rails.
Step 1:
Download install ubuntu system from ubuntu site.
Step 2:
Open terminal install the following requirements
SSH:
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active September 6, 2024 15:34
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@bbugh
bbugh / gist:3882746
Created October 13, 2012 01:04
Accessing alert box in JavaScript with Capybara/rails/rspec
//Get a reference to the alert using the following:
alert = page.driver.browser.switch_to.alert
// and then hit OK with
page.driver.browser.switch_to.alert.accept
// or dismiss it with
@billie66
billie66 / nginx.conf
Created September 11, 2012 06:49
Deploy Rails on Ubuntu server 12.04 with Nginx, Unicorn, Mongodb, Mongoid
# This file should be placed on the directory of ~/blog/config
upstream unicorn {
server unix:/tmp/unicorn.todo.socket fail_timeout=0;
}
server {
listen 80 default;
#server_name example.com;
root /home/username/blog/public;
@vbatts
vbatts / ruby-openssl-build.sh
Created July 11, 2012 14:58
building ruby with a specific openssl
#!/bin/sh
t_dir="$HOME/tmp"
mkdir -p ${t_dir}
pushd ${t_dir}
for url in \
ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.9.3-p194.tar.bz2 \
http://openssl.org/source/openssl-1.0.1c.tar.gz