Skip to content

Instantly share code, notes, and snippets.

View TheRoyalDebugger's full-sized avatar
🏠
Working from home

Dhruv Narayan Singh TheRoyalDebugger

🏠
Working from home
  • AT&T
  • India
View GitHub Profile
@TheRoyalDebugger
TheRoyalDebugger / Recipe.md
Created June 17, 2017 18:37 — forked from gititGoro/Recipe.md
Environmental setup for Ethereum Dev as of 14 June 2017

Setting up a private ethereum blockchain for development and pointing your wallet at it

Ethereum tutorials all advise downloading the Mist wallet and beginning dev. The only problem is that the testnet and real blockchain are huge and take hours to download. What follows is a recipe for quickly setting up a small blockchain and pre-mining it with some test ethereum

The following is done in Linux but will work in MacOS and should have equivalent command line options in Windows. Where I don't give detailed instructions, it's because a quick google search will fill in the blanks.

Install geth https://github.com/ethereum/go-ethereum/wiki/geth

install Mist https://github.com/ethereum/mist/releases

@TheRoyalDebugger
TheRoyalDebugger / gist:b25da323b2929d4be10a36061a38505a
Created November 16, 2016 07:00 — forked from muzahid59/gist:3e895a187d4064e33446
Objective - C : Property understanding
Nonatomic:
Nonatomic is used for multi threading purposes. If we have set the nonatomic attribute at the time of declaration, then any other thread wanting access to that object can access it and give results in respect to multi-threading.
Copy:
Copy is required when the object is mutable. Use this if you need the value of the object as it is at this moment, and you don't want that value to reflect any changes made by other owners of the object. You will need to release the object when you are finished with it because you are retaining the copy.
Assign:
Assign is somewhat the opposite to copy. When calling the getter of an assign property, it returns a reference to the actual data. Typically you use this attribute when you have a property of primitive type (float, int, BOOL...)
Retain:
@TheRoyalDebugger
TheRoyalDebugger / AccordionTableView.swift
Created November 16, 2016 06:57 — forked from muzahid59/AccordionTableView.swift
Swift collaspable or expandable tableview
//
// AccordionTableView.swift
// PracticePro
//
// Created by Muzahidul Islam on 5/26/15.
//
import UIKit
@TheRoyalDebugger
TheRoyalDebugger / NSDateFormatter cheat sheet
Created December 11, 2015 07:05 — forked from romaonthego/NSDateFormatter cheat sheet
Date Formats for NSDateFormatter
a: AM/PM
A: 0~86399999 (Millisecond of Day)
c/cc: 1~7 (Day of Week)
ccc: Sun/Mon/Tue/Wed/Thu/Fri/Sat
cccc: Sunday/Monday/Tuesday/Wednesday/Thursday/Friday/Saturday
d: 1~31 (0 padded Day of Month)
D: 1~366 (0 padded Day of Year)
@TheRoyalDebugger
TheRoyalDebugger / The Technical Interview Cheat Sheet.md
Last active July 13, 2016 06:45 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
/*
Evaluation Of postfix Expression in C++
Input Postfix expression must be in a desired format.
Operands must be integers and there should be space in between two operands.
Only '+' , '-' , '*' and '/' operators are expected.
*/
#include<iostream>
#include<stack>
#include<string>