Skip to content

Instantly share code, notes, and snippets.

Trying to help the World

Lucas M. Dutra terremoth

Trying to help the World
  • Imaginum Softworks
  • Florianópolis, SC - Brazil
View GitHub Profile
mlhaufe / ShellBrowse.vbs
Last active Aug 5, 2019
VBScript File Browser
View ShellBrowse.vbs
Option Explicit
' Flags for the options parameter
Const BIF_returnonlyfsdirs = &H0001
Const BIF_dontgobelowdomain = &H0002
Const BIF_statustext = &H0004
Const BIF_returnfsancestors = &H0008
Const BIF_editbox = &H0010
Const BIF_validate = &H0020
Const BIF_browseforcomputer = &H1000
lancejpollard /
Created Mar 5, 2012
Complete List of HTML Meta Tags

Copied from

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
ProgDan /
Created Aug 31, 2012
Exemplo: FlowLayout
import java.awt.*;
import javax.swing.*;
public class MinhaJanela extends JPanel {
public MinhaJanela(){
/* Conjunto de linhas (alinhamento à esquerda) */
//FlowLayout fluxo = new FlowLayout();
/* Conjunto de linhas (alinhamento à direita) */
//FlowLayout fluxo = new FlowLayout(FlowLayout.LEFT);
/* Conjunto de linhas (alinhamento centralizado,
barryvdh / _ide_helper.php
Last active Oct 28, 2021
Laravel IDE Helper for Netbeans / PhpStorm / Sublime Text 2 CodeIntel, generated using
View _ide_helper.php
* A helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.5.13 on 2017-09-28.
* @author Barry vd. Heuvel <>
* @see
namespace {
exit("This file should not be included, only analyzed by your IDE");
phoenixg / header_http_status_codes.php
Created Apr 6, 2013
PHP header() for sending HTTP status codes
View header_http_status_codes.php
function HTTPStatus($num) {
$http = array(
XVilka /
Last active Dec 6, 2021
True Colour (16 million colours) support in various terminal applications and terminals

Most updated version is always available at termstandard/colors repository.

Terminal Colors

There exists common confusion about terminal colors. This is what we have right now:

  • Plain ASCII
  • ANSI escape codes: 16 color codes with bold/italic and background
  • 256 color palette: 216 colors + 16 ANSI + 24 gray (colors are 24-bit)
  • 24-bit truecolor: "888" colors (aka 16 million)
MotionDesignStudio /
Last active Jun 21, 2020
Mass Texting (SMS) Messaging Via Google Voice And Python
#!/usr/bin/env python
import sys
from googlevoice import Voice
from googlevoice.util import input
sys.dont_write_bytecode = True
MotionDesignStudio /
Last active Jul 9, 2021
Python ASCII Video And ASCII Image Creator
#!/usr/bin/env python
import sys
import cv2
import subprocess
from subprocess import call
import aalib
import Image
tbrianjones / Inflect.php
Last active Oct 28, 2021
A PHP Class for converting English words between Singular and Plural.
View Inflect.php
// original source:
The MIT License (MIT)
Copyright (c) 2015
Permission is hereby granted, free of charge, to any person obtaining a copy
james2doyle / simple-json-reponse.php
Last active Nov 4, 2021
A simple JSON response function for PHP. Used in various PhileCMS plugins.
View simple-json-reponse.php
function json_response($code = 200, $message = null)
// clear the old headers
// set the actual code
// set the header to make sure cache is forced
header("Cache-Control: no-transform,public,max-age=300,s-maxage=900");