Skip to content

Instantly share code, notes, and snippets.

View priyanshujain's full-sized avatar
🛠️
Always Building

Priyanshu Jain priyanshujain

🛠️
Always Building
View GitHub Profile
@priyanshujain
priyanshujain / fcfs.py
Last active September 18, 2015 06:49
first come first last process scheduling program in python
#!/usr/bin/env python
process_queue = []
total_wtime = 0
n = int(raw_input('Enter the total no of processes: '))
for i in xrange(n):
process_queue.append([])#append a list object to the list
process_queue[i].append(raw_input('Enter p_name: '))
process_queue[i].append(int(raw_input('Enter p_arrival: ')))
total_wtime += process_queue[i][1]
process_queue[i].append(int(raw_input('Enter p_bust: ')))
@priyanshujain
priyanshujain / specialpattern.sh
Created September 18, 2015 06:48
bash shell script for pattern diaplay pattern
#!/bin/bash
MAX_NO=0
echo -n "Enter Number between (5 to 9) : "
read MAX_NO
if ! [ $MAX_NO -ge 5 -a $MAX_NO -le 9 ] ; then
echo "WTF... I ask to enter number between 5 and 9, Try Again"
exit 1
@priyanshujain
priyanshujain / gist:9bc173ab6d93bd8406a763ffeb6c8433
Created September 15, 2016 13:29 — forked from chrissimpkins/gist:5bf5686bae86b8129bee
Atom Editor Cheat Sheet (Sweetmeat)

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.

Key to the Keys

  • ⌘ : Command key
  • ⌃ : Control key
  • ⌫ : Delete key
  • ← : Left arrow key
  • → : Right arrow key
  • ↑ : Up arrow key
@priyanshujain
priyanshujain / diff.cpp
Created October 15, 2016 14:00
number of bits that are different between two numbers
#include <iostream>
#include <string>
using namespace std;
int main(int argc, char const *argv[]) {
int a,b;
cin>>a>>b;
int c = a^b;
int count=0;
while (c) {

Grammar terminology matters because it allows us to communicate efficiently about language. Of course, it is not necessary to know the terminology to speak a language. We all learn our first languages without first learning what a verb and noun are. However, when we speak about grammar, especially in the context of writing, it helps if we can refer to grammar using precise vocabulary.

There are many sources online and in books that will explain grammar terminology. Not all of them will use exactly the same terms for the same grammatical points (I know, frustrating!). However, if you get into the habit of learning to identify the names of grammatical objects, you will move forward in your understanding of written English.

Sites and books that you can use to look up the names of grammatical terms

Websites

  1. The Elements of Style http://bartleby.com/141/
  2. Using English: http://www.usingenglish.com/glossary/

Keybase proof

I hereby claim:

  • I am priyanshujain on github.
  • I am priyanshujain (https://keybase.io/priyanshujain) on keybase.
  • I have a public key ASAie2cSbU3Ph6JjM37UTmxOPwAE01_3D94otLjO5g1aawo

To claim this, I am signing this object:

@priyanshujain
priyanshujain / dl.md
Last active May 12, 2017 10:17
Deep learning Material
@priyanshujain
priyanshujain / datasets.md
Last active August 20, 2023 13:35
open and public datasets
## How to hide API keys from github ##
1. If you have already pushed commits with sensitive data, follow this guide to remove the sensitive info while
retaining your commits: https://help.github.com/articles/remove-sensitive-data/
2. In the terminal, create a config.js file and open it up:
touch config.js
atom config.js
@priyanshujain
priyanshujain / 00-about-search-api-examples.md
Created July 4, 2017 20:32 — forked from jasonrudolph/00-about-search-api-examples.md
5 entertaining things you can find with the GitHub Search API