Skip to content

Instantly share code, notes, and snippets.

Let's make a game

Will Saymon Wyru

Let's make a game
View GitHub Profile
LotteMakesStuff / AutohookAttribute.cs
Last active Sep 20, 2021
[Autohook] property drawer for unity - Add this [Autohook] attribute to a property to and the inspector will automagically hook up a valid reference for you if it can find a component attached to the same game object that matches the field you put it on. You can watch a demo of this in action here <3
View AutohookAttribute.cs
// NOTE DONT put in an editor folder!
using UnityEngine;
public class AutohookAttribute : PropertyAttribute
rafael-neri / validar_cpf.php
Last active Sep 16, 2021
Validar CPF em PHP (Completo)
View validar_cpf.php
function validaCPF($cpf) {
// Extrai somente os números
$cpf = preg_replace( '/[^0-9]/is', '', $cpf );
// Verifica se foi informado todos os digitos corretamente
if (strlen($cpf) != 11) {
return false;
denji /
Last active Sep 19, 2021 — forked from Cubixmeister/
Simple Sentry docker-compose.yml
  1. Download docker-compose.yml to dir named sentry
  2. Change SENTRY_SECRET_KEY to random 32 char string
  3. Run docker-compose up -d
  4. Run docker-compose exec sentry sentry upgrade to setup database and create admin user
  5. (Optional) Run docker-compose exec sentry pip install sentry-slack if you want slack plugin, it can be done later
  6. Run docker-compose restart sentry
  7. Sentry is now running on public port 9000
jonsuh / js-ajax-php-json-return.html
Last active Aug 13, 2021
jQuery AJAX Call to PHP Script with JSON Return
View js-ajax-php-json-return.html
<div class="the-return">
[HTML is replaced when successful.]