Skip to content

Instantly share code, notes, and snippets.

View AnikSR's full-sized avatar

Anik Samiur Rahman AnikSR

  • Dhaka, Bangladesh
View GitHub Profile
@jfinkels
jfinkels / light.py
Created September 24, 2015 20:13
Light's associativity test
# light.py - decides whether a Cayley table represents an associative operation
#
# Copyright 2015 Jeffrey Finkelstein.
#
# This file is part of Light.
#
# Light is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
@dmurfet
dmurfet / usinggit.md
Last active December 25, 2021 14:54
Using Git and GitHub for collaboration on writing scientific papers

Getting started

First you'll have to install the Git command line tool on your machine, following these instructions. Then find the repository that you want to contribute to, copy its address from the green "Clone or Download" button, and on your local machine run e.g.

git clone https://github.com/dmurfet/difflinearlogic.git

Committing changes

To see a list of what has changed (optional) run git status. Then

@sXakil
sXakil / bd_map.c
Last active December 19, 2022 10:47
A simple program to print the map of Bangladesh based on the ASCII values of a generated string. (Generator script: https://gist.github.com/sXakil/a7377acba95f8ba2b7dddfaf24339c27)
#include <stdio.h>
int main() {
char *str = "ED.GDAD.DLEB.COCC.CV.FS.HQ."
"JN.MP.Go.Cr.Cq.Cp.Fk.Jf.J`.I`.H`ID."
"J^HE.K^FG.N[ABCG.L`CG.MTBT.MUCS.NTD"
"BCBAJ.NUBBHI.OTMI.OROI.OGDCSI.PE[I."
"RC[I.rBDB.rB.sB.tB";
int c, i, j;
for(i = 0, j = 0; str[i] != '\0'; i++, j++) {
c = str[i]-64;

Tutorial 1 - Creating your first resistor.

Or: "Hello, world!"

Introduction

@shahalom
shahalom / LAMP install steps.bash
Last active January 22, 2022 16:03
One by one steps to Install LAMP (with multiple PHP versions) in a fresh new UBUNTU operating system
Step 1: Update your distro
=> `$ sudo apt update`
Step 2: Add Repository and again update your distro
=> `$ sudo add-apt-repository ppa:ondrej/php`
Step 3: Install Apache2
=> `$ sudo apt install apache2`
Step 4: Here I am going to install PHP php5.6 and php7.4 versions
@jdah
jdah / wfc.hpp
Created August 5, 2022 15:18
Wave Function Collapse
#pragma once
#include "util/types.hpp"
#include "util/std.hpp"
#include "util/ndarray.hpp"
#include "util/collections.hpp"
#include "util/rand.hpp"
#include "util/hash.hpp"
#include "util/assert.hpp"
#include "util/bitset.hpp"