Skip to content

Instantly share code, notes, and snippets.

View maxdevjs's full-sized avatar
💭
╯︵ ┻━┻

maxdevjs maxdevjs

💭
╯︵ ┻━┻
View GitHub Profile
import * as React from "react";
import * as Vue from "vue/dist/vue";
import VueElement from "./VueElement";
import { PropertyControls, ControlType } from "framer";
// Define type of property
interface Props {
text: string;
}
@kylejohnston
kylejohnston / hype.sublime-completions
Created October 14, 2018 17:16
Sublime completions for the Hype Frameworks extended classes
{
"scope": "source.pde",
"completions":
[
// behaviors
{ "trigger": "HAttractor", "contents": "import hype.extended.behavior.HAttractor;" },
{ "trigger": "HAttracted", "contents": "import hype.extended.behavior.HAttractor.HAttracted;" },
{ "trigger": "HAttractionForce", "contents": "import hype.extended.behavior.HAttractor.HAttractionForce;" },
{ "trigger": "HFollow", "contents": "import hype.extended.behavior.HFollow;" },
{ "trigger": "HMagneticField", "contents": "import hype.extended.behavior.HMagneticField;" },
@getify
getify / 1.js
Last active September 29, 2021 11:58
experiment: mimicking React's new "useState()" hook for stand-alone functions, including "custom hooks"
"use strict";
[foo,bar] = TNG(foo,bar);
// NOTE: intentionally not TNG(..) wrapping useBaz(), so that it's
// basically like a "custom hook" that can be called only from other
// TNG-wrapped functions
function foo(origX,origY) {
var [x,setX] = useState(origX);
var [y,setY] = useState(origY);
⊹  +   * · .     ⊹ .     ˚ ✫ ⊹
˚  ✦ * · · +   ✦  ˚ º. * + ·
 ✫ º . ✫ ✵  ˚ ʰᵉˡˡᵒ ✫ ⋆ .   º
✧   *     ˚ *   ♡   ˚ ✫    ⋆˚ ✫
  ˚   ✹   . +   ⊹ .* ✦ · ✧˚ * ˚
@Kardelio
Kardelio / gist:c6a01e1e927a75ef7f3af44ef79e7e35
Created September 12, 2019 08:46
Interactive Git Branch changer using fzf
git branch | fzf | sed 's/\* //g' | xargs -I '{}' git checkout {}
@maciej-makowski
maciej-makowski / lib.rs
Created November 16, 2019 09:38
JS13K game test
#![no_std]
#![feature(maybe_uninit_ref)]
extern crate alloc;
use core::f64::consts::PI;
//use no_panic::no_panic;
use wasm_bindgen::prelude::*;
@volfegan
volfegan / circlesTunnelPerfectSpiral.pde
Last active December 28, 2019 03:09
Circles in Circles moving creates a perfect spiral
//reference code for solution of perfect Spiral:
//https://gist.github.com/chandeeland/b69156115e2b5842d83ca9eb3b2bbf2e
//failed trial:: https://gist.github.com/volfegan/e55decad6814e63fb450379c9bf13a61
//attempt to recreate: https://twitter.com/Borrachas/status/1204855395006763009
float a, b, x, y, d, h=600/2, r, s, shrink=0.94;
void setup() {
size(600, 600);
}
void draw() {
background(#EFF2D0);
@JeremyMorgan
JeremyMorgan / workstationsetup.sh
Last active September 18, 2024 16:57
Setup for my FreeBSD Workstation
# This may be runnable as a script, but keep in mind -y is not always acknowledged.
# These are the drop dead basics
pkg -y install vim
pkg -y install git
pkg -y install chromium
pkg -y install gimp
pkg -y install sudo
# Install Rust
@volfegan
volfegan / saturn.pde
Last active June 29, 2020 17:38
Mimics a probe approaching Saturn like planet
//inspired by https://www.dwitter.net/d/10534
//https://twitter.com/VolfeganGeist/status/1273451476556353536
float i, m, n, p, s, t, x, y;
void setup() {
size(1080, 720);
noStroke();
}
void draw() {
background(0);
t+=.05;
@argentinaluiz
argentinaluiz / README.md
Created August 12, 2020 14:06
VSCode - Guia para configuração do ambiente com Docker