Skip to content

Instantly share code, notes, and snippets.

View MonikaMahanthappa's full-sized avatar

Monika M MonikaMahanthappa

  • MavenHive
  • Bangalore, India
View GitHub Profile
@MonikaMahanthappa
MonikaMahanthappa / logging.txt
Last active July 18, 2019 03:42
Logging examples
//Developer friendly
{ "sender" : "michael",
"recipient": {
"name" : "michael",
"name" : "andrea",
"name" : "itay"
}
subject: "I heart logs"
}
@MonikaMahanthappa
MonikaMahanthappa / file1.txt
Created April 24, 2019 01:42
Created via API
Demo
@MonikaMahanthappa
MonikaMahanthappa / rna_dna_transcription.md
Last active April 24, 2019 01:35
RNA and DNA Transcription

Given a DNA strand, return its RNA complement (per RNA transcription).

Both DNA and RNA strands are a sequence of nucleotides.

The four nucleotides found in DNA are adenine (A), cytosine (C), guanine (G) and thymine (T).

The four nucleotides found in RNA are adenine (A), cytosine (C), guanine (G) and uracil (U).

Given a DNA strand, its transcribed RNA strand is formed by replacing each nucleotide with its complement:

@MonikaMahanthappa
MonikaMahanthappa / sample_packgae.json
Created September 25, 2018 04:36
same packge for jest native
{
"name": "my-new-project",
"main": "node_modules/expo/AppEntry.js",
"private": true,
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"eject": "expo eject",
"test": "node ./node_modules/jest/bin/jest.js --env=jsdom --watchAll"
@MonikaMahanthappa
MonikaMahanthappa / wildlife
Created March 10, 2018 23:59
Rails Girls Birds App
rails new wildlife
git add .
git commit -m "Initialize new project"
rbenv local 2.4.1
git add .
git commit -m "Add ruby version"
rails server
rails generate scaffold bird name:string description:text picture:string
rails db:migrate
git add .
# In Gemfile
source 'https://rubygems.org'
gem 'rspec'
$ bundle install
$ rspec --init
#spec_helper.rb
Dir[File.expand_path('../../models/*.rb', __FILE__)].each{|f| require f} #Load all model files
@MonikaMahanthappa
MonikaMahanthappa / brew-perms.sh
Created June 2, 2016 10:19 — forked from jaibeee/brew-perms.sh
Configure homebrew permissions to allow multiple users on MAC OSX. Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
#!/bin/sh
# Configure homebrew permissions to allow multiple users on MAC OSX.
# Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
# allow admins to manage homebrew's local install directory
chgrp -R admin /usr/local
chmod -R g+w /usr/local
# allow admins to homebrew's local cache of formulae and source files
chgrp -R admin /Library/Caches/Homebrew
@MonikaMahanthappa
MonikaMahanthappa / demo.rb
Last active August 29, 2015 14:27
Rails app
mkdir workshop
rails new demo
cd demo
dir
rails server
git init .
git add .
git commit -m "rails demo app scaffold"
rails generate controller Say hello goodbye
git add .