Skip to content

Instantly share code, notes, and snippets.

:octocat:
online

Amir Shokri amirshnll

:octocat:
online
Block or report user

Report or block amirshnll

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View help to kapi
import java.util.Scanner;
public class Main {
public static Scanner sc;
public static void main(String[] args) {
sc = new Scanner(System.in);
String inp = sc.nextLine();
View fibonacci string
import java.util.Scanner;
public class Main {
public static Scanner sc;
public static void main(String[] args) {
sc = new Scanner(System.in);
int num = sc.nextInt();
View hologram
close all;
clear all;
I = imread('DH256.bmp', 'bmp'); % 256256 pixels, 8bit image
I = double(I);
% parameter setup
M = 256;
deltax = 0.001; % pixel pitch 0.001 cm (10 um)
@amirshnll
amirshnll / camelCase user exercises #5
Created Dec 16, 2019
camelCase user exercises #5
View camelCase user exercises #5
<!DOCTYPE html>
<html>
<head>
<title>Habib Form</title>
<style type="text/css">
* {
font-size: 13px;
font-family: tahoma;
}
@amirshnll
amirshnll / Convert Integer Number to Persian String Number
Created Dec 12, 2019
Convert Integer Number to Persian String Number
View Convert Integer Number to Persian String Number
<?php
class Number2Word {
protected $digit1 = array(
0 => 'صفر',
1 => 'یک',
2 => 'دو',
3 => 'سه',
4 => 'چهار',
View camelCase user exercises #4
#include "stdafx.h"
#include "iostream"
using namespace std;
void main()
{
int p;
@amirshnll
amirshnll / camelCase user exercises #3
Created Nov 13, 2019
camelCase user exercises #3
View camelCase user exercises #3
#include "stdafx.h"
#include "iostream"
using namespace std;
void main()
{
int number_count;
int numbers[10];
@amirshnll
amirshnll / camelCase user exercises #2
Last active Nov 8, 2019
camelCase user exercises #2
View camelCase user exercises #2
// A.shokri - amirsh.nll@gmail.com
#include "stdafx.h"
#include "iostream"
using namespace std;
void main()
{
@amirshnll
amirshnll / camelCase user exercises #1
Created Oct 31, 2019
camelCase user exercises #1
View camelCase user exercises #1
// A.shokri - amirsh.nll@gmail.com
#include "stdafx.h"
#include "iostream"
using namespace std;
void main()
{
int a[3];
@amirshnll
amirshnll / Persian date regular expression
Created Oct 4, 2019
Persian date regular expression
View Persian date regular expression
^[1-4]\d{3}\/((0[1-6]\/((3[0-1])|([1-2][0-9])|(0[1-9])))|((1[0-2]|(0[7-9]))\/(30|31|([1-2][0-9])|(0[1-9]))))$
You can’t perform that action at this time.