Skip to content

Instantly share code, notes, and snippets.

View KanagawaMarcos's full-sized avatar
:octocat:
F#, NixOS & Postgres

Kanagawa Marcos KanagawaMarcos

:octocat:
F#, NixOS & Postgres
View GitHub Profile
@KanagawaMarcos
KanagawaMarcos / index.html
Created March 7, 2024 19:17
Pricing UI with PrimeFlex
<div class="flex lg:flex-row flex-column lg:justify-content-center align-items-center lg:p-8 p-4 font-sans text-white bg-bluegray-900 min-h-screen">
<div class="lg:w-23rem w-full border-2 lg:border-right-none border-bluegray-800 p-5">
<div class="pb-3 mb-4 border-bottom-1 border-bluegray-800">
<div class="text-xs text-bluegray-400 mb-2">START</div>
<h2 class="text-5xl m-0 font-normal">Free</h2>
</div>
<div class="flex align-items-center mb-2">
<svg width="24" height="24" fill="none" class="text-green-500 mr-1" viewBox="0 0 24 24">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M5.75 12.8665L8.33995 16.4138C9.15171 17.5256 10.8179 17.504 11.6006 16.3715L18.25 6.75"></path>
</svg>Vexillologist pitchfork
@KanagawaMarcos
KanagawaMarcos / .emacs
Last active December 14, 2022 20:11
my emacs config
(require 'org)
(setq-default indent-tabs-mode nil)
(setq org-display-inline-images t)
(setq org-redisplay-inline-images t)
(setq org-startup-with-inline-images "inlineimages")
(setq default-frame-alist
(append (list '(width . 72) '(height . 40))))
@KanagawaMarcos
KanagawaMarcos / flattern-fsharp.fs
Created January 24, 2022 19:54
How to flattern a seq of seq in F#
let flattered = seq {
for singleSeq in seqOfSeq do
yield! singleSeq
}
@KanagawaMarcos
KanagawaMarcos / first_functional_code.js
Last active November 5, 2018 15:26
My first functional programming code. While doing a Restful API project, I managed to be able to write a very simple functional piece of code by myself. It was a really good feeling for me, given the fact that I was struggling so much at understanding the basics functional programming.
const trimmed_file_names = data.filter((file_name)=>{
return file_name.indexOf('.log') > -1 || ( include_compressed_logs && file_name.indexOf('.gz.b64') > -1);
}).map((file_name)=>{
if(file_name.indexOf('.log') > -1){
// Remove .log extension
return file_name.replace('.log','');
}
// Add on the .gz files
if(file_name.indexOf('.gz.b64') > -1 && include_compressed_logs){