Skip to content

Instantly share code, notes, and snippets.

@ExcelRobot
ExcelRobot / TILE.lambda
Last active May 1, 2024 18:28
TILE Lambda
/*
Name: Tile (TILE)
Description: Tile the outputs of a single-parameter function given an array map of parameters.
Parameters:
params - array of parameters arranged how function results to be tiled
function - single-parameter Lambda name or function
Source: Excel Robot (@ExcelRobot), but inspired by Owen Price's STACKER lambda (https://www.youtube.com/watch?v=wEBLT9QfQRw).
*/
TILE = LAMBDA(params,function,LET(
firstrow, function(INDEX(params,1,1)),
@dadarider
dadarider / hello.c
Last active May 1, 2024 18:28
mon hello world
int main(){
printf ("hello world");
return 0}
@hebasto
hebasto / alpine.md
Last active May 1, 2024 18:26
Building Bitcoin Core with GUI on Alpine Linux

Building Bitcoin Core with GUI on Alpine Linux

System

$ cat /etc/alpine-release
3.13.5

Bitcoin Core repository

#EXTM3U
#EXTINF:-1 tvg-logo="http://i.imgur.com/CvQCnwZ.png" group-title="INFO",* Fluxus IPTV
https://archive.org/download/fluxustv/Fluxus_TV.mp4
#EXTINF:-1 tvg-logo="http://i.imgur.com/pYWMEWN.png" group-title="INFO",+ Free IPTV
http://stream.srg-ssr.ch/m/rsj/mp3_128
#EXTINF:-1 tvg-logo="http://i.imgur.com/RGeIrMD.png" group-title="INFO",= Jan.17.2018
http://stream.srg-ssr.ch/m/rsc_de/mp3_128
@Chillee
Chillee / mm_weird.py
Last active May 1, 2024 18:23
Strangely, Matrix Multiplications Run Faster When Given "Predictable" Data!
import torch
torch.set_default_device('cuda')
from triton.testing import do_bench
from collections import defaultdict
from functools import partial
import random
random.seed(0)
def get_flops(A, B):
ms = do_bench(lambda: torch.mm(A, B))
@victorsenam
victorsenam / dicionario-git.md
Last active May 1, 2024 18:23
Dicionário básico de Git e GitHub para iniciantes

Dicionário Git e GitHub

Os conceitos vão ser apresentados da forma mais básica possível para que se possa entender a ideia primordial do software. Os comandos serão baseados num terminal UNIX. Ou seja, funcionarão em linux e mac.

Links interessantes

http://rogerdudler.github.io/git-guide/index.pt_BR.html

Repositório

O repositório é a pasta do projeto. Todo repositório tem uma pasta oculta .git. Isso é o que mostra para o git e para você que existe um repositório naquela pasta.

@rubyontherez
rubyontherez / readtime.html
Last active May 1, 2024 18:19
ReadTime on GitHub Jekyll -- code to show "reading time" through _includes folder.
<!--
# "ReadTime on GitHub Jekyll"
# (c) 2020 Ruby Griffith Ramirez, MIT License
#
# Outputs an estimated reading time for content based on a WPM division calculation.
# The rough WPM figure used here can be changed after the "divided_by:" liquid filter.
# Others rely on a higher value (e.g. 265 WPM for Medium.com) to account for images and so forth.
#
# Usage: {% include readtime.html %} with readtime.html created within _includes folder.
# Will emit an integer with "minute read" appended to it or with "< 1 minute read" replacing it.
@dmnsgn
dmnsgn / WebGL-WebGPU-frameworks-libraries.md
Last active May 1, 2024 18:18
A collection of WebGL and WebGPU frameworks and libraries

A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.

Engines and libraries ⚙️

Name Stars Last Commit Description
three.js ![GitHub
@MattRix
MattRix / RXDivider.cs
Last active May 1, 2024 18:15
Adds dividers into the inspector. Based on a brilliant idea by Matthew Wegner, see: https://twitter.com/mwegner/status/355147544818495488
//Based on a brilliant idea by Matthew Wegner - https://twitter.com/mwegner/status/355147544818495488
//Code for drawing the base PropertyDrawers is from here: http://forum.unity3d.com/threads/173401-Getting-Default-SerializedProperty-Drawing-within-a-PropertyDrawer?p=1186347&viewfull=1#post1186347
//My implementation is super lazy with magic numbers everywhere! :D
#if UNITY_EDITOR
using System;
using UnityEngine;
using System.Collections.Generic;
using UnityEditor;
@taskylizard
taskylizard / fmhy.md
Last active May 1, 2024 18:15
/r/freemediaheckyeah, in one single file (view raw)