Skip to content

Instantly share code, notes, and snippets.

View sin2akshay's full-sized avatar
💻
Coding

Akshay Kumar sin2akshay

💻
Coding
View GitHub Profile
@sin2akshay
sin2akshay / Address.sol
Last active April 18, 2020 19:47
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.2+commit.1df8f40c.js&optimize=false&gist=715a65abaa039b181ed01ffc9046c9e1
pragma solidity ^0.5.2;
/**
* Utility library of inline functions on addresses
*/
library Address {
/**
* Returns whether the target address is a contract
* @dev This function will return false if invoked during the constructor of a contract,
* as the code is not actually created until after the constructor finishes.
@sin2akshay
sin2akshay / ERC20.sol
Created March 4, 2019 12:04
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.2+commit.1df8f40c.js&optimize=false&gist=
pragma solidity ^0.5.2;
import "./IERC20.sol";
import "./SafeMath.sol";
/**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
@sin2akshay
sin2akshay / FFIII Walkthrough.txt
Created November 13, 2018 12:28
FFIII Walkthrough
</div>
The last light of our last hope</p>
______________________________________________________________________________
| Final Fantasy III |
| DS - CANADA Version |
| 2.0 1/6/07 |
| Not-Even-Pretending-to-be-Spoiler-Free Guide by E-JAE |
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
________
@sin2akshay
sin2akshay / FFIII.txt
Created November 2, 2018 10:42
FFIII
</div>
=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=
Final Fantasy III - Job Guide
By:
Penguin Knight, Seferaga and Egervari3
=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=-*=
@sin2akshay
sin2akshay / assess.py
Created October 30, 2018 02:15
Python Summary
####CSV####
> Reading CSV
from datetime import datetime
import csv
with open(filename, 'rb') as csvfile:
monthlyBill = csv.reader(csvfile, delimiter = ',', quotechar='|')
for i, row in enumerate(monthlyBill, start = 0):
if(i > 0):
du = DataUsage(row[0],row[1]+" "+row[2],row[3],row[4]);
dataUsageList.append(du);
@sin2akshay
sin2akshay / ProjectIdeas.md
Last active October 11, 2018 07:11
Project Ideas

Analyze Eminem Music Lyrics using Python

  1. Get all the Eminem Songs' Lyrics from AZlyrics.com by web scraping via Python
  2. Save in form of JSON and txt
  3. Create histogram to show most common used words
  4. Use Markov Models to generate a random song from the words

See reference link for more details:
Reference - https://github.com/irenetrampoline/taylor-swift-lyrics

Core SQL

Challenge Rating

This goal will likely be within your ZPD if you...

  • Are familiar with basic command line operations
  • Are interested in learning about writing SQL queries
  • Are interested in learning how to install postgres & use the psql command line tool.

FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@sin2akshay
sin2akshay / ADO.NET.cs
Last active September 3, 2018 00:59
C#
public void ReadDataFromDatabaseUsingDA()
{
// 1
// Open connection
using (SqlConnection c = new SqlConnection(@"Data Source=PCName\\SQLEXPRESS;Initial Catalog= DBEmployeeDetailsMock;Integrated Security=True"))
{
c.Open();
// 2
// Create new DataAdapter
using (SqlDataAdapter a = new SqlDataAdapter("SELECT * FROM EmployeeIDs", c))