Skip to content

Instantly share code, notes, and snippets.

View coderhs's full-sized avatar
🎯
Focusing

Harisankar P S coderhs

🎯
Focusing
View GitHub Profile
@coderhs
coderhs / coderhs.omp.json
Created June 7, 2022 18:58
my personal oh-my-posh template
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "red",
"powerline_symbol": "\ue0b0",
@coderhs
coderhs / full-stack-internship.md
Created April 16, 2019 06:42 — forked from coolbrg/full-stack-internship.md
Internship - Full Stack Developer (4 Openings)

Internship as Full Stack Developer in Averon Media Pvt Ltd

About Averon Media

Averon Media Pvt Ltd is a company specialized in Web Design & Developement and Digital Marketing in Pune, Maharashtra. It's target is to become the India's #1 Web Development company in coming years. More details can be found in company website here.

About the Internship

Selected intern's day-to-day responsibilities include:

Instructions

Setup the new rails project

  1. rails new docVault
  2. cd docValue
  3. bundle
  4. git add .
  5. git commit -m "Initial Commit"
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
@coderhs
coderhs / pos.service
Last active September 6, 2017 14:07
system md file used to make sure kemal/crytal app is running
[Unit]
Description=Sale POS
After=network.target
[Service]
Type=simple
ExecStart=/opt/pos/app
Restart=always
RestartSec=3
User=deploy
{
result: {
domain: "https://simple.wikipedia.org/wiki/Wikipedia",
status: "COMPLETED",
result_url: "http://localhost:3000/v1/website/389b76561f52f5f0337742b68354c106",
result: {
h1: [
"Wikipedia"
],
h2: [
#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
fetcher = Net::POP3.new(queue.email_server, queue.email_port)
Non US-ASCII detected and no charset defined.
Defaulting to UTF-8, set your own if this is incorrect.
$('#snippet_snippet').click ->
$('#snippet_info').show('slow')