Skip to content

Instantly share code, notes, and snippets.

View hasancse91's full-sized avatar

Abdullah Al Hasan hasancse91

  • Brain Station 23 Ltd
  • Dhaka, Bangladesh
  • 11:05 (UTC +06:00)
View GitHub Profile
@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;
@ba11b0y
ba11b0y / installing-postman.md
Last active August 31, 2023 19:21
Installing Postman on Ubuntu/Gnome

Since Chrome apps are now being deprecated. Download postman from https://dl.pstmn.io/download/latest/linux

Although I highly recommend using a snap

sudo snap install postman

Installing Postman

tar -xzf Postman-linux-x64-5.3.2.tar.gz
@tsuharesu
tsuharesu / AddCookiesInterceptor.java
Last active June 8, 2024 07:30
Handle Cookies easily with Retrofit/OkHttp
/**
* This interceptor put all the Cookies in Preferences in the Request.
* Your implementation on how to get the Preferences MAY VARY.
* <p>
* Created by tsuharesu on 4/1/15.
*/
public class AddCookiesInterceptor implements Interceptor {
@Override
public Response intercept(Chain chain) throws IOException {
@daniellevass
daniellevass / android_material_design_colours.xml
Last active September 9, 2024 06:08
Android Material Design Colours
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- google's material design colours from
http://www.google.com/design/spec/style/color.html#color-ui-color-palette -->
<!--reds-->
<color name="md_red_50">#FFEBEE</color>
<color name="md_red_100">#FFCDD2</color>
<color name="md_red_200">#EF9A9A</color>