Skip to content

Instantly share code, notes, and snippets.

View masterashu's full-sized avatar
:octocat:
working on it...

Ashutosh Chauhan masterashu

:octocat:
working on it...
View GitHub Profile
@masterashu
masterashu / git.md
Created August 24, 2020 07:34
Git Workshop

IOTA is planning to conduct Git and GitHub Workshops this week (25th to 29th August). These workshops will be divided into basic and advanced streams. Moreover, these will be conducted in multiple batches, so, you can attend any number of batches as per your convenience.

The basic program is for the students who are not familiar with git or wish to brush up their concepts. This workshop will focus on creating git repositories, creating commits, working with branches, linking your repository to GitHub, making pull requests, etc.

The advanced program is for the students who are comfortable with basic git operations including (commit, push, pull, etc.) but are not quite confident while using commands like stash, merge, rebase, cherry-pick, etc.

Basic Session

Duration (1-2 Hrs.)

import 'package:flutter/material.dart';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyAppBar extends StatefulWidget implements PreferredSizeWidget {
final Color color;
MyAppBar({this.color}) : preferredSize = Size.fromHeight(kToolbarHeight);
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://gist.github.com/1595572).
#
@masterashu
masterashu / writer.dart
Created March 26, 2020 07:50
dumpYaml utility
import 'dart:io';
import 'yaml_writer.dart';
getObjects() sync* {
//----------------------------------------------------------------------------
var obj = Map<String, dynamic>();
obj['Hello'] = 'World';
obj['Users'] = [
'192.168.13.25',
@masterashu
masterashu / yaml_writer.dart
Last active March 28, 2020 06:23
Mini YAML Writer utility
getObjects() sync* {
var obj = Map<String, dynamic>();
obj['Hello'] = 'World';
obj['Users'] = [
'192.168.13.25',
'192.168.1.3',
<String>['192.168.13.25', '192.168.1.3', '192.168.1.3']
];
obj['Home'] = <String>['localhost', '127.0.0.1'];
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class Question {
String ques;
List<String> options;
Question(this.ques, this.options);
@masterashu
masterashu / paytm_checksum.py
Last active February 13, 2022 18:25
Paytm Payment Gateway: Checksum Generator for Python3
import base64
import string
import random
import hashlib
from Crypto.Cipher import AES
IV = "@@@@&&&&####$$$$"
BLOCK_SIZE = 16
* {
margin: 0;
padding: 0;
}
header {
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(back.jpg);
height: 100vh;
background-size: cover;
background-position: center;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Buisness Website</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
@masterashu
masterashu / a.c
Created April 10, 2019 16:10
Adt
#include<stdio.h>
#include<string.h>
int binarytoint(char *strnum, int len){
long int num = 0;
for(i = len-1;i>=0;i--){
num = num *2;
num += ((strnum[i]=='1')?1:0);
}
return num;