Skip to content

Instantly share code, notes, and snippets.

View ThevenRexOff's full-sized avatar
:shipit:
spaghetti code writer

ThevenRex ThevenRexOff

:shipit:
spaghetti code writer
View GitHub Profile
@bllohar
bllohar / db.js
Created September 25, 2017 06:52
Nedb Encryption & Decryption
var Datastore = require('nedb')
const path = require('path')
var crypto = require('crypto');
var assert = require('assert');
var algorithm = 'aes256';
var key = 'password';
var db = {}
@brunocascio
brunocascio / diseño-pruebas-mantenimiento.md
Last active August 23, 2024 17:44
Resumen Ingeniería de Software 2 (Diseño, Pruebas y Mantenimiento)

Diseño


Es el proceso cretivo de transformación del problema en una solución. Una vez que se analizan y especifican los requisitos, el diseño es la siguiente actividad técnica a realizar. Es independiente del modelo de procesos que se use. El diseño se centra en 4 áreas importantes:

  • Datos
  • Arquitectuas
  • Interfaces
@tophtucker
tophtucker / README.md
Last active April 22, 2024 16:01
Beginning to reverse-engineer FizzyText

TOTALLY SUPER DUPER NOT MY WORK! Trying to illuminate how FizzyText (seen here, source here, isolated from dat.GUI dependency here) works. Original appears to have been written by George Michael Brower.

In the original, which I find brilliant:

  • Solid black text is drawn onto an invisible canvas, from which it gets bitmap data
  • The bitmap data is read like a collision detection array, where black means "you're on top of text" and white means "you're not"
  • Particles of size r=0 are randomly spawned on a visible canvas
  • The particles grow if they're on top of a (non-rendered) black pixel, and shrink till they disappear if not
  • When they shrink to r=0, they respawn randomly somewhere
  • The particles follow a Perlin noise flow field, a very sensible and fluid kind of random movement, in which nearby particles
@shinigamicorei7
shinigamicorei7 / Routing Basico en PHP.md
Last active September 25, 2024 05:50
Routing Basico en PHP

Una de las necesidades más comunes en el desarrollo de Sitios profesionales es implementar URLs amigables, así convertimos algo como /index.php?articulo=1 por algo más cómodo y agradable a la vista del usuario: /blog/introduccion.htm

Para lograr esto existen muchos paquetes, que son altamente recomendables, como:.

En esta clase no buscamos superar a nadie, simplemente quiero demostrarles que puede ser sencillo hasta cierto nivel.

@Brammm
Brammm / PHP_Interview.md
Last active September 1, 2024 23:45
Some useful questions for a PHP interview

PHP interview

  • Are you familiar with the tools we're given in PHP 5.4 to write Object Oriented code?
    We can manipulate scope, have interfaces, abstract classes, traits, namespaces…

  • What's the difference between Public, Protected and Private?
    Public ensures a class method/variable is available everywhere, from any instance of the class. Protected makes the method/variable only available to the class itself and extending classes. Private makes the method/var only accessible to the class itself.

  • Do you know any of these acronyms?

    • DRY "Don't Repeat Yourself"
@maeharin
maeharin / gist:4727153
Last active August 14, 2024 16:23
gitでコミットログを逆順(古い方から)表示する : git log first commit tail initial reverse
git log --reverse
# show branch tag etc
git log --reverse --decorate