Skip to content

Instantly share code, notes, and snippets.

View barelyhuman's full-sized avatar

Siddharth Gelera (reaper) barelyhuman

View GitHub Profile

React Native Assignment

The following is a simple implementation that tests your knowledge on a few things that most of our apps depend on. There's a huge chance you don't understand a certain library or tech. If so, there's certain things I'll point to as skippable and you can go ahead with that.

Deadline

  • The deadline is 4 days after the initial commit.

Deliverables

You can send an unsigned apk / signed apk and/or an installable .ipa via Diawi or Firebase App Distribution (email it to: siddharth@fountane.com)

@barelyhuman
barelyhuman / sublime-base.json
Last active September 21, 2021 13:26
Base config for a decent looking sublime text
{
"color_scheme": "Packages/Materialize/schemes/Material Seti.tmTheme",
"font_face": "Ubuntu Mono Ligaturized",
"font_size": 14,
"ignored_packages":
[
"Vintage"
],
"theme": "Material Seti.sublime-theme",
"line_padding_top":4,
{
"basics": {
"name": "Reaper ⠀",
"label": "Better at talking to computers than humans.",
"picture": "",
"email": "sidgel95@gmail.com",
"phone": "9885317891",
"website": "",
"summary": "Minimalist • Developer • I build stuff • https://barelyhuman.dev • https://reaper.im",
"location": {
@barelyhuman
barelyhuman / goblin.sh
Last active January 15, 2022 10:04
simple wrapper around https://goblin.reaper.im for smaller shell scripts
goblin () {
curl -sf "https://goblin.reaper.im/$1@$2" | sh
$($3)
}
@barelyhuman
barelyhuman / button-click.js
Created January 15, 2022 10:49
button clicker snippet
function lk(e,l){var a=0,c=setInterval(()=>a<=l?(e.click(),a++):clearInterval(c),1e3)}
@barelyhuman
barelyhuman / cgitzinc.css
Last active February 13, 2022 13:08
css for cgit for git.reaper.im
@import url("https://unpkg.com/zinccolors@0.0.1/css/zinc.min.css");
@import url("https://rsms.me/inter/inter.css");
html,
body {
padding: 0;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
}
@barelyhuman
barelyhuman / script.js
Created April 16, 2022 23:56
wonka (wonka.kitten.sh) , custom operators code
import { fromArray, fromValue, pipe, toPromise } from "wonka";
function talkbackPlaceholder(a) {}
const customTake = (max) => (source) => (sink) => {
let taken = [];
let talkback = talkbackPlaceholder;
let ended = false;
return source((signal) => {
if (typeof signal === "number") {
@barelyhuman
barelyhuman / availability_function.sql
Created June 2, 2022 08:14
get open time slots for bookings where bookings can be overlapped if there's more than one slot for booking (postgres)
-- table structure for reference
-- `areas`
-- column type nullable
-- ------------------------------
-- id int4 NO
-- name varchar(11) YES
-- slots int4 NO
--
-- `avail`
-- column type nullable
with (import <nixpkgs> {});
with (import /home/maarten/code/nixos/yarn2nix { inherit pkgs; });
let
gems = bundlerEnv {
name = "project-name";
inherit ruby;
gemdir = ./.;
};
in stdenv.mkDerivation {
name = "project-name";
@barelyhuman
barelyhuman / boring.itermcolors
Created July 25, 2022 11:47
iterm colors based on Plastic Theme + RSMS Gray colors
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.44705882668495178</real>