Skip to content

Instantly share code, notes, and snippets.

@NikhilAshodariya
NikhilAshodariya / jupyter_shortcuts.md
Created April 19, 2018 11:35 — forked from kidpixo/jupyter_shortcuts.md
Keyboard shortcuts for ipython notebook 3.1.0 / jupyter

Toc

Keyboard shortcuts

The IPython Notebook has two different keyboard input modes. Edit mode allows you to type code/text into a cell and is indicated by a green cell border. Command mode binds the keyboard to notebook level actions and is indicated by a grey cell border.

MacOS modifier keys:

  • ⌘ : Command
package in.blogspot.codewithnikhil.beans;
import java.net.URL;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class Run
{
public static void main(String[] args)
{
@NikhilAshodariya
NikhilAshodariya / Mul.asm
Created August 29, 2017 17:27
Assembly language program to multiply two 16-bit nos
store macro res
div x
mov res,dl;dividing and storing the last bit in dl i.e. is the remainder
mov dx,0
endm
ansprint macro res
mov dl,res
add dl,30h
mov ah,02h
@NikhilAshodariya
NikhilAshodariya / Divide.asm
Created August 29, 2017 17:25
Assembly language program to divide two 8-bit nos
;Division
ansprint macro res
mov dl,res
add dl,30h
mov ah,02h
int 21h
endm
data segment
@NikhilAshodariya
NikhilAshodariya / Add.asm
Created August 29, 2017 17:23
Assembly language program to find sum of first N natural numbers
store macro res
div x
mov res,dl;dividing and storing the last bit in dl i.e. is the remainder
mov dx,0
endm
ansprint macro res
mov dl,res
add dl,30h
mov ah,02h
@NikhilAshodariya
NikhilAshodariya / Cryptographic.java
Created November 5, 2016 18:01
This is AES 128 bit This program has a static methods encrypt and decrypt with key manual configured by developer
package com.codewithnikhil;
import java.security.*;
import java.security.spec.InvalidKeySpecException;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
import sun.misc.*;
public class Cryptographic {
@NikhilAshodariya
NikhilAshodariya / Perceptron.java
Created November 5, 2016 17:58
This is the implementation of perceptron learning rule in Artificial Neural Network
package perceptron;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Perceptron
{
@NikhilAshodariya
NikhilAshodariya / DeltaLearningRule.java
Created November 5, 2016 17:57
This is the implementation of Delta learning rule in Artificial Neural Network
package deltalearningrule;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class DeltaLearningRule {
int number_of_epoch = 1;
@NikhilAshodariya
NikhilAshodariya / Hebbian.scala
Created November 5, 2016 17:50
This is the implementation of hebbian learning rule in artifical neural network To watch the output of this you can also visit www.codewithnikhil.blogspot.in
/**
* Created by Nikhil Ashodariya on 30-Oct-16.
*/
import scala.io._;
class Hebbian(number_Of_Epoch: Int, number_Of_Neuron: Int, number_Of_Input: Int, learning_Constant: Double) {
private[this] var weight_Matrix: Array[Double] = _
weight_Matrix = new Array[Double](number_Of_Neuron)
var input_Vector = Array.ofDim[Double](number_Of_Neuron, number_Of_Input);
@NikhilAshodariya
NikhilAshodariya / RestoringDivision.cpp
Created October 31, 2016 19:20
The program implements restoring division algorithm in c++
#include<stdlib.h>
#include<process.h>
#include<stdio.h>
#include<math.h>
#include<conio.h>
typedef struct stack
{
int top;
int a[100];
}c;