Skip to content

Instantly share code, notes, and snippets.

View OnesimusUnbound's full-sized avatar
😃

Marcelino Deseo OnesimusUnbound

😃
View GitHub Profile
@OnesimusUnbound
OnesimusUnbound / main.html
Created January 4, 2024 09:45
van.js simple todo app
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/yegor256/tacit@gh-pages/tacit-css.min.css"/>
<script type="module" src="main.js"></script>
<title>Document</title>
</head>
@OnesimusUnbound
OnesimusUnbound / README.md
Created October 7, 2017 01:38 — forked from hofmannsven/README.md
My simple SCSS Cheatsheet
type Grade = A | B | C | D | E | F | InvalidGrade
let (|MoreThan|_|) grade value =
if value > grade then Some MoreThan else None
let (|LessThan|_|) grade value =
if value < grade then Some LessThan else None
let (|Between|_|) uppergrade lowergrade value =
if uppergrade >= value && value >= lowergrade then Some Between else None
@OnesimusUnbound
OnesimusUnbound / DesignPatterns.md
Last active December 19, 2015 18:38
List of .Net classes that use design patterns

NOTE

Items here are still in progress and I haven't determined with 100% certainty that the content is true. Please verify the content. ;-)

Creational

  • Abstract factory
  • System.Data.Common.DbProviderFactory
@OnesimusUnbound
OnesimusUnbound / Seven-Minute-Exercise-Notifier.ps1
Last active December 18, 2015 02:39
Powershell Script for Seven Minute Workout. Sends notification when the exercise or rest is done
$sound = New-Object System.Media.SoundPlayer;
function Initialize-Alert {
$sound.SoundLocation="$env:WINDIR\Media\ringout.wav";
}
function Alert-User {
$sound.Play();
}
@OnesimusUnbound
OnesimusUnbound / CommonlyUsedPosix.sh
Last active December 14, 2015 19:08
added unzip
TAR
tar -cf archive.tar foo bar # Create archive.tar from files foo and bar.
tar -tvf archive.tar # List all files in archive.tar verbosely.
tar -xf archive.tar # Extract all files from archive.tar.
# get line 5 to end, then print fifth column, sort, then get uniq.
sed -n '5,$p' <file> | gawk '{print $5}' | sort | uniq
# remove vss files within folder and sub folders
find . -iname '*.*scc' -type f -print0 | xargs -0 rm
@OnesimusUnbound
OnesimusUnbound / quote.txt
Last active August 16, 2023 16:24
Programming Quotes
[T]he difference between a bad programmer and a
good one is whether he considers his code or his
data structures more important. Bad programmers
worry about the code. Good programmers worry about
data structures and their relationships.
-- Linus Torvalds
~~~
Clarity and brevity sometimes are at odds.
When they are, I choose clarity.
-- Jacob Kaplan-Moss
@OnesimusUnbound
OnesimusUnbound / Coffeescript Modules
Last active September 25, 2015 09:38
Generator mixin's for underscore.js
/**
* counter
* =======
* Creates counter that will generate number, starting from `start` (default to 0)
* incrementing (or decrementing) by `step` (default to 1). Based on
* [Python's itertools.count](http://docs.python.org/library/itertools.html#itertools.count).
*
* cycle
* =====
* Returns a function that will generate items in `iterable` for each call,