Skip to content

Instantly share code, notes, and snippets.

View icyflame's full-sized avatar

Siddharth Kannan icyflame

View GitHub Profile
@icyflame
icyflame / erp.sql
Created August 8, 2014 07:06
The sql file containing the tables related to the sponsorship portal
--
-- Table structure for table `sponsaux`
--
-- Creation: Aug 03, 2014 at 05:51 PM
--
CREATE TABLE IF NOT EXISTS `sponsaux` (
`companyid` int(10) NOT NULL,
`howtopitch` varchar(500) NOT NULL,
`finalstatus` varchar(500) NOT NULL,
@icyflame
icyflame / cdns.md
Last active August 29, 2015 14:05

Bootstrap - Full alongwith jQuery

<script src="http://code.jquery.com/jquery-1.11.1.js"></script>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>

Font Awesome 4.1.0

@icyflame
icyflame / carouselBootstrap.html
Created August 22, 2014 09:04
The Bootstrap JavaScript carousel Slider
<html>
<head>
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</head>
@icyflame
icyflame / htmlTemplate.html
Last active August 29, 2015 14:06
Basic Template for almost all HTML files
<html>
<head>
<script src="http://code.jquery.com/jquery-1.11.1.js"></script>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
@icyflame
icyflame / _dev-environment.md
Last active August 29, 2015 14:07
The set of commands that are required to get started with a rails application

Application Setup: Install Devise, Bootstrap, ActiveAdmin

  • Create the application
rails new app
  • Move into the app directory
@icyflame
icyflame / log
Created October 27, 2014 10:38
The Log File generated while flashing Ubuntu for Devices on Nexus 7
siddharth@ubuntu:~$ sudo add-apt-repository ppa:phablet-team/tools
[sudo] password for siddharth:
You are about to add the following PPA to your system:
More info: https://launchpad.net/~phablet-team/+archive/ubuntu/tools
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmpr6fo33/secring.gpg' created
gpg: keyring `/tmp/tmpr6fo33/pubring.gpg' created
gpg: requesting key 5E51A24C from hkp server keyserver.ubuntu.com
@icyflame
icyflame / essentialApps.md
Last active August 29, 2015 14:11
The essential applications for my Ubuntu laptop

Applications

  • Google Chrome
  • Terminator
  • zsh
  • git
    • .gitignore_global file
    • .gitconfig file
  • vim
    • NERDTree: plugin
  • vimrc file
class AlumniDataController < ApplicationController
	def update
		if student_member_signed_in?
			if @tie = TieAlumniWithStudentMember.find_by_StudentMember_id(current_student_member.id)
				if params[:id].to_i == @tie.Alumni_id
					
					@alumni_data = AlumniData.find(params[:id])

 if @alumni_data.update(alumni_data_params)
@icyflame
icyflame / procedure.md
Last active August 29, 2015 14:13
A list of all the things to be done in the right order so as to flash Xperia L C2104 "taoshan" with Cyanogen Mod or any ROM of the user's preference.
  1. Take FTF backup using PC Companion and FileSet Decrypt feature of FlashTool
  2. Unlock the bootloader using FlashTool (Disable driver signing on Win8 before trying this)
  3. Phone won't start up now. It will remain stuck at the Xperia splash screen
  4. Use fastboot.exe to do fastboot.exe flash boot boot.img from the downloaded CM build. (Any build that is compatible with your phone, extract it and you will see the file. Copy it to the same folder as fastboot.exe and run the command.)
  5. Power on, press VolUp on seeing purple light to go to recovery. (This can be different for different devices)
  6. If this is working, copy the CM build onto the SD Card
  7. Again use step 5 to go to recovery, wipe data once and wipe cache twice.
  8. Choose install zip and select the CM build zip file that you copied into the SD card
  9. After successful installation of CM zip, select "Reboot system"to see the CM splash screen.
@icyflame
icyflame / html_sample_template.md
Created March 23, 2015 08:38
HTML Sample Template: For the placement of different tags and elements
<html>

<head>
  
  <title> </title>
  <style> </style>

</head>