Skip to content

Instantly share code, notes, and snippets.

@nkvenom
nkvenom / caja.py
Created January 18, 2012 03:56
Crear y mover una caja en maxscript
-- Creación de una caja
b = box()
-- Mover la caja
b.pos = [1,2,3]
-- Escalar la caja
b.scale = [10,10,5]
@nkvenom
nkvenom / aztec_pyramid.rb
Created January 18, 2012 04:42
Una pirámide azteca básica en maxscript
for i = 1 to 10 do
(
Box width: (10.0 - i) length: (10.0 - i ) height: 1.0 pos: [0, 0, i]
)
@nkvenom
nkvenom / recursive-render.html
Last active August 5, 2022 08:15
React Example Render Recursive Function
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Recursive Component in React</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.11.0/umd/react.development.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.11.0/umd/react-dom.development.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.min.js"></script>
</head>
@nkvenom
nkvenom / jump_to.bash
Last active June 24, 2017 15:40
A function to quckly jump branches only passing the ticket number or a substring
# Quickly change branches
function jto() {
local nmatches=$(git branch | grep -i $1 | wc -l)
local branches=$(git branch | grep -i $1 | grep -oE '[[:alpha:]0-9/-]+')
if (( $nmatches > 1 )); then
echo 'Found branches'
printf "$branches\n"
else
echo Checking out $branches
git checkout $branches