Skip to content

Instantly share code, notes, and snippets.

View dipu-bd's full-sized avatar

Sudipto Chandra dipu-bd

View GitHub Profile
@dipu-bd
dipu-bd / turing.json
Last active January 13, 2024 00:24
JSON schema for a Turing complete machine
{
"$schema": "http://json-schema.org/schema",
"title": "JSON schema for a turing complete machine",
"type": "object",
"definitions": {
"statement": {
"description": "",
"type": "object",
@dipu-bd
dipu-bd / urllib.dart
Last active May 2, 2020 23:52
This is a direct port of python's urllib.parse.urlparse into dart. Additionally, it splits the netloc (authority) component into user, password, host and port components.
class URL {
final String original;
String _fragment = '';
String _query = '';
String _scheme = '';
String _user = '';
String _password = '';
String _host = '';
String _port = '';
String _path = '';
@dipu-bd
dipu-bd / autogen.py
Last active May 2, 2020 23:53
Auto generate LN
import os
import time
PUBLIC_DATA = '/etc/lncrawl/public-data'
novels = []
for user in os.listdir(PUBLIC_DATA):
user_dir = os.path.join(PUBLIC_DATA, user)
if not os.path.isdir(user_dir):
continue
@dipu-bd
dipu-bd / agnoster-minimal.zsh-theme
Created December 12, 2019 11:12
Minimal Agnoster theme for oh-my-zsh with much smaller prefix
# 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://github.com/Lokaltog/powerline-fonts).
# Make sure you have a recent version: the code points that Powerline
@Roger8
Roger8 / faceantispoofing.md
Last active September 12, 2021 05:51
face anti spoofing topics

github

  1. Implementation of "Learn Convolutional Neural Network for Face Anti-Spoofing" paper github
  2. Code for 2nd Place Solution in Face Anti-spoofing Attack Detection Challenge @ CVPR2019, https://github.com/SeuTao/CVPR19-Face-Anti-spoofing
  3. Face Anti-spoofing demo to detect replay, video and mask attack, https://github.com/lbf4616/Face-Anti-spoofing
  4. This is a C++ code for face anti-spoofing methods based on color texture features. https://github.com/wuyongchn/Face-Spoofing-Detection-or-Face-Liveness-Detection
  5. Single Shot Face Anti-spoofing. https://github.com/JinghuiZhou/awesome_face_antispoofing
  6. Face Anti-Spoofing 集合, https://github.com/ChanChiChoi/awesome-Face_Recognition#face-anti-spoofing

research

1.Research:Deep Tree Learning for Zero-shot Face Anti-Spoofing ,Face De-Spoofing: Anti-Spoofing via Noise Modeling ,Learning Deep Models for Face Anti-Spoofing: Binary or Auxiliary Supervision ,http://w

@dipu-bd
dipu-bd / TitleCase.java
Last active July 26, 2018 00:18
Convert a string to title case in java (with tests).
/*
* Copyright (C) 2018 Sudipto Chandra
*
* This program 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.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@ha1f
ha1f / CIFilter+Extension.swift
Last active February 20, 2024 08:14
CIFilter+Extension.swift
//
// Created by はるふ on 2017/12/11.
// Copyright © 2017年 ha1f. All rights reserved.
//
import Foundation
import CoreImage
import AVFoundation
extension CIFilter {
@dipu-bd
dipu-bd / SuffixArray+Search-v2.cpp
Created June 29, 2017 02:00
Search patterns within text using Suffix Array by utilizing C++ library functions
/*====================================================================
Title: Computes Longest Repeated Substring from a given string
Complexity: O(n.log(n))
Author : Sudipto Chandra (Dipu)
=====================================================================*/
#include <bits/stdc++.h>
using namespace std;
#define mem(a,b) memset(a, b, sizeof(a))
#define loop(i, x) for(__typeof((x).begin()) i=(x).begin(); i!=(x).end(); ++i)
#define rloop(i, x) for(__typeof((x).rbegin()) i=(x).rbegin(); i!=(x).rend(); ++i)
@dipu-bd
dipu-bd / SuffixArray+LCP.cpp
Last active June 29, 2017 11:13
Finding Longest Common Prefix (LCP) using Suffix Array. Complexity: SA=O(n.log(n)), LCP=O(n)
/*====================================================================
Title: Compute LCP from Suffix Array using Radix Sort
Suffix Array: O(n.log(n))
Compute LCP: O(n)
Author : Sudipto Chandra (Dipu)
=====================================================================*/
#include <bits/stdc++.h>
using namespace std;
#define mem(a,b) memset(a, b, sizeof(a))
#define loop(i, x) for(__typeof((x).begin()) i=(x).begin(); i!=(x).end(); ++i)
@dipu-bd
dipu-bd / SuffixArray.cpp
Last active February 22, 2020 13:48
Suffix array implementation using Radix Sort. Complexity: O(n.log(n))
/*==================================
Title: Suffix Array using Radix Sort
Complexity: O(n.log(n))
Author : Sudipto Chandra (Dipu)
===================================*/
#include <bits/stdc++.h>
using namespace std;
#define mem(a,b) memset(a, b, sizeof(a))
#define loop(i, x) for(__typeof((x).begin()) i=(x).begin(); i!=(x).end(); ++i)
#define rloop(i, x) for(__typeof((x).rbegin()) i=(x).rbegin(); i!=(x).rend(); ++i)