Skip to content

Instantly share code, notes, and snippets.

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

maxdevjs maxdevjs

💭
╯︵ ┻━┻
View GitHub Profile
@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 {}
⊹  +   * · .     ⊹ .     ˚ ✫ ⊹
˚  ✦ * · · +   ✦  ˚ º. * + ·
 ✫ º . ✫ ✵  ˚ ʰᵉˡˡᵒ ✫ ⋆ .   º
✧   *     ˚ *   ♡   ˚ ✫    ⋆˚ ✫
  ˚   ✹   . +   ⊹ .* ✦ · ✧˚ * ˚
@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);
@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;" },
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;
}
@ejpcmac
ejpcmac / setup
Created September 28, 2018 20:39
Setup script for Phoenix projects using Nix and PostgreSQL
#!/bin/sh
echo
if [ ! -d "deps" ] || [ ! "$(ls -A deps)" ]; then
printf "\e[32m=> Fetching dependencies and building the application...\e[0m\n\n"
echo "+ mix do deps.get, compile --verbose"
mix do deps.get, compile --verbose
echo
fi
@juuh42dias
juuh42dias / Post-RubyRails.md
Last active April 10, 2025 23:38 — forked from lucasnogueira/Post-RubyRails.md
Para aprender Ruby e Rails

É difícil falar de Ruby sem mencionar seu framework web mais famoso, Ruby on Rails. Mas não adianta muito encarar o framework sem um prévio estudo da linguagem (o que de fato já observei acontecer inúmeras vezes). Esse post tem como intuito auxiliar na aprendizagem tanto da linguagem como do framework, para evitar que erros comuns como esse tornem a utilização de ambos um desastre.

Ruby

Ruby é uma linguagem de programação que apareceu para o mundo em 1995, criada por Yukihiro "Matz" Matsumoto. Tem como características o fato de ser uma linguagem de uso geral, com tipagem dinâmica e forte, orientada a objetos e que incorpora diversos paradigmas de programação, como o funcional e o imperativo.

Iniciantes

  • Conhecendo Ruby - "Conhecendo Ruby Sempre quis aprender a linguagem Ruby mas não encontrava material em Português com bastante conteúdo? Seus problemas acabaram! Aqui está um dos mais completos livros de Ruby em Português
@ggsalas
ggsalas / kitty.conf
Last active January 10, 2023 18:34
Kitty terminal - one dark theme [~/.config/kitty/kitty.conf]
# vim:fileencoding=utf-8:ft=conf:foldmethod=marker
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
# font_family Monaco
font_family Source Code Pro
@ceejbot
ceejbot / esm_in_node_proposal.md
Last active June 20, 2024 10:45
npm's proposal for supporting ES modules in node

ESM modules in node: npm edition

The proposal you’re about to read is not just a proposal. We have a working implementation of almost everything we discussed here. We encourage you to checkout and build our branch: our fork, with the relevant branch selected. Building and using the implementation will give you a better understanding of what using it as a developer is like.

Our implementation ended up differing from the proposal on some minor points. As our last action item before making a PR, we’re writing documentation on what we did. While I loathe pointing to tests in lieu of documentation, they will be helpful until we complete writing docs: the unit tests.

This repo also contains a bundled version of npm that has a new command, asset. You can read the documentation for and goals of that comma

@urish
urish / javascript-iot-tapas.md
Last active December 8, 2017 08:30
JavaScript IoT Tapas Resources