Skip to content

Instantly share code, notes, and snippets.

View rajeevkannav's full-sized avatar

Rajeev Sharma rajeevkannav

View GitHub Profile
@rajeevkannav
rajeevkannav / pdf2htmlEX.sh
Last active March 29, 2022 18:28
Install CMake, pkg-config,GNU Getopt,GCC,poppler,fontforge,pdf2htmlEX in Ubuntu 15.05
#!/bin/bash
# Ubuntu Developer Script For pdf2htmlEx
# Created by Rajeev Kannav Sharma
# http://rajeevkannav.github.io/
#
#
# Downloads and configures the following:
#
# CMake, pkg-config
# GNU Getopt
@rajeevkannav
rajeevkannav / Ubuntu Developer Script For Ionic Framework
Created October 29, 2014 06:17
Ubuntu Developer Script For Ionic Framework
#!/bin/bash
# Ubuntu Developer Script For Ionic Framework
# Created by Nic Raboy
# http://www.nraboy.com
#
#
# Downloads and configures the following:
#
# Java JDK
# Apache Ant
@dwayne
dwayne / 00-ionic-notes.md
Last active October 13, 2022 15:05
My notes on the Ionic Framework.
@dhoelzgen
dhoelzgen / base_controller.rb
Last active October 7, 2021 16:19
CORS in Rails 4 APIs
class API::V1::BaseController < ApplicationController
skip_before_filter :verify_authenticity_token
before_filter :cors_preflight_check
after_filter :cors_set_access_control_headers
def cors_set_access_control_headers
headers['Access-Control-Allow-Origin'] = '*'
headers['Access-Control-Allow-Methods'] = 'POST, GET, PUT, DELETE, OPTIONS'
@rajeevkannav
rajeevkannav / ymlrb.rb
Last active December 11, 2015 13:08
To Covert Given Data Strcutre to YML
###################################################################################################
############### To Covert Given Data Strcutre to YML ####################
###################################################################################################
# Example Data Strcutre USED
# {'root' => {'recog' => [{:day => 1, :month => 2},{:day => 1, :month => 2},{:day => 1, :month => 2}],'delivery' => [{:day => 1, :month => 2},{:day => 1, :month => 2},{:day => 1, :month => 2}],'third' => [{:day => 1, :month => 2},{:day => 1, :month => 2},{:day => 1, :month => 2}]}}
require 'yaml'
puts "Enter your Specified Data Strcutre withOut Quotes"
required_ds = gets.chomp