View docVault-notes.md

Instructions

Setup the new rails project

  1. rails new docVault
  2. cd docValue
  3. bundle
  4. git add .
  5. git commit -m "Initial Commit"
View gist:57e7112829a7f64c97731d7951690847
irb(main):004:0> directories = {}
=> {}
irb(main):005:0> directories['8547810845'] = {name: 'Harisankar P S', age: '27', address: 'Kochi, Kerala'}
=> {:name=>"Harisankar P S", :age=>"27", :address=>"Kochi, Kerala"}
irb(main):006:0> directories['8547810845'] = {name: 'Harisankar P S', age: '27', address: 'Kochi, Kerala'}
=> {:name=>"Harisankar P S", :age=>"27", :address=>"Kochi, Kerala"}
irb(main):007:0> directories['9447786299'] = {name: 'Manu S Ajith', age: '27', address: 'Kochi, Kerala'}
=> {:name=>"Manu S Ajith", :age=>"27", :address=>"Kochi, Kerala"}
irb(main):008:0>
irb(main):008:0> directories
View pos.service
[Unit]
Description=Sale POS
After=network.target
[Service]
Type=simple
ExecStart=/opt/pos/app
Restart=always
RestartSec=3
User=deploy
View sample.json
{
result: {
domain: "https://simple.wikipedia.org/wiki/Wikipedia",
status: "COMPLETED",
result_url: "http://localhost:3000/v1/website/389b76561f52f5f0337742b68354c106",
result: {
h1: [
"Wikipedia"
],
h2: [
View gist:58ac9a956c3396e6fa1a
class ApplicationController < ActionController::Base
session :off
end
View gist:8487404
#City format : Eg, Cochin,IN
#Useage: OpenWeather::Current.city('Cochin,In')
def self.city(city, options = { })
query = Hash.new
query[:q] = city
send_request query.merge!(options), @api_url
end
#City Geographics Cordingates : Eg, lat 35 lon 139
View gist:8030008
fetcher = Net::POP3.new(queue.email_server, queue.email_port)
View gist:8029851
Non US-ASCII detected and no charset defined.
Defaulting to UTF-8, set your own if this is incorrect.
View gist:7087406
$('#snippet_snippet').click ->
$('#snippet_info').show('slow')
View gist:7087398
$("#snippet_snippet").click ->
$("#snippet_info").show('slow')