Skip to content

Instantly share code, notes, and snippets.

View ibnishak's full-sized avatar
💭
Narendra Modi govt is persecuting Indian Muslims. Let it be known.

Rizwan ibnishak

💭
Narendra Modi govt is persecuting Indian Muslims. Let it be known.
View GitHub Profile
@ibnishak
ibnishak / main.go
Created July 18, 2022 03:20
Updating HTML with new tags using goquery
file, err := os.OpenFile("b.html", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0o755)
if err != nil {
fmt.Println(err.Error()) // TODO Error handling
}
defer file.Close()
doc, err := goquery.NewDocumentFromReader(file)
if err != nil {
fmt.Println(err.Error()) // TODO Error handling
}
@ibnishak
ibnishak / access-fn-from-commandline.zsh
Created September 13, 2021 11:00
Access functions declared in script from commandline
# Suppose you have a script named "myscript" with a function - conquerworld
# You can access those functions from terminal as
# myscript conquerworld <rest of args>
# or
# myscript conquer world <rest of args>
if [ "$1" = "--help" ]; then
helpmenu
exit 0
elif declare -f "$1" > /dev/null; then
@ibnishak
ibnishak / termux-setup.sh
Last active November 27, 2020 21:15
Termux-setup
echo "update and upgrades"
apt update
apt upgrade
echo "Installing essentials"
apt install git curl fzf ripgrep fd bat exa zsh jq neovim termux-api
echo "changing shells"
chsh zsh
mkdir -p ~/bin ~/.config/chezmoi ~/.cache/zsh_z
echo "Installing chezmoi"
@ibnishak
ibnishak / TW5 Wish list.md
Last active December 9, 2018 19:34
Wish list for TW5
  • Attributes parameter: A parameter pointing to a tiddler that copies the content to the widget node "as is".
  • Plugins that gets activated only in mobile platform.
  • Checkbox widget: Ability to trigger separate set of actions for checking and unchecking.
  • Tiddlywiki.Files directories object should traverse subfolders to find the tiddlers
  • Ability to add context menu to tiddlers.
  • Loading different pagetemplates on Mobile and Desktop.
  • A TW based RSS reader/feed aggregator: Explore creating one with Python Scrapy
  • Then-sort filter. If a list is sorted by one field, and two tiddlers have same value for that field, those two tiddlers should be sorted by a different criteria, named then-sort.
  • Database support. Once the Wiki grows beyond a size, TW5 takes upto 60-70 secs to load. Possibly Mongodb or Mariadb
  • Tiddlyserver: Ability to just start a new wiki from the interface.
@ibnishak
ibnishak / index.html
Created September 18, 2017 18:51
realpixels - Design by Jakub Antalík
<div id="root">
<div class="col-1 panel sidebar">
<header>
<a href="#send-mail" class="btn-success btn-new-message shadow-box">
<div class="clearfix">
<i class="icon-send-message"></i>
<span>New message</span>
</div>
</a>
</header>
@ibnishak
ibnishak / index.html
Created September 18, 2017 18:25 — forked from anonymous/index.html
Trello Layout with CSS Grid and Flexbox
<div class="ui">
<nav class="navbar app">App bar</nav>
<nav class="navbar board">Board bar</nav>
<div class="lists">
<div class="list">
<header>List header</header>
<ul>
<li>Lorem ipsum dolor sit amet</li>
<li>Lorem ipsum dolor sit amet, consectetur adipiscing elit</li>
<li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec lobortis enim sit amet</li>

Email UI - Dribbble Rebound

Really wanted to try out some flexbox so I saw this design on dribbble and gave it a shot.

I didn't bother with any of the icons purely because of time.

Feedback is more then welcome. Also go give a like to the designer on dribbble.

http://dribbble.com/shots/1169541-Email-UI?list=users