Skip to content

Instantly share code, notes, and snippets.

View ashikahmad's full-sized avatar

Ashik Uddin Ahmad ashikahmad

View GitHub Profile
@ashikahmad
ashikahmad / Reusable.swift
Created July 31, 2017 09:24
Makes life a little easier with UITableView or UICollectionView cells and some more :)
//
// Reusable.swift
// TodoMVVM
//
// Created by Ashik uddin Ahmad on 7/20/17.
// Copyright © 2017 Ashik uddin Ahmad. All rights reserved.
//
import UIKit
@ashikahmad
ashikahmad / .phoenix.js
Last active May 24, 2018 03:20
My Phoenix dot file (configuration)
/*
Created by Ashik uddin Ahmad
Copyright © 2017 Ashik uddin Ahmad. All rights reserved.
*/
//------------------------------------------------------
// Overview
//------------------------------------------------------
/*
import UIKit
import PlaygroundSupport
extension String: Error {}
func getEvenNumber() -> Future<Int> {
return Future<Int>.create { p in
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
let num = Int.random(in: 0...20)
if num % 2 == 0 {
func with<T: AnyObject>(_ obj: T, task: (T)->Void) -> T {
task(obj)
return obj
}
@ashikahmad
ashikahmad / 1-ObsidianPreviousNextDay.md
Last active August 1, 2023 00:29
Obsidian Script to Show Previous/Next Day Link

Obsidian Script to Show Previous/Next Day Link

Caution!
It is always a good practice to check the code-snippet and see what you're running. Although I personally use this, if you use it, use at your own risk.

Requirements

You need to have Dataview plugin installed and also "Enable JavaScript Queries" enabled.

Setup