Skip to content

Instantly share code, notes, and snippets.

Avatar
🌄
Trying to help the World

Lucas M. Dutra terremoth

🌄
Trying to help the World
  • Imaginum Softworks
  • Florianópolis, SC - Brazil
View GitHub Profile
@mlhaufe
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
lancejpollard / meta-tags.md
Created Mar 5, 2012
Complete List of HTML Meta Tags
View meta-tags.md

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

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
ProgDan / MinhaJanela.java
Created Aug 31, 2012
Exemplo: FlowLayout
View MinhaJanela.java
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
barryvdh / _ide_helper.php
Last active Oct 28, 2021
Laravel IDE Helper for Netbeans / PhpStorm / Sublime Text 2 CodeIntel, generated using https://github.com/barryvdh/laravel-ide-helper
View _ide_helper.php
<?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 <barryvdh@gmail.com>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {
exit("This file should not be included, only analyzed by your IDE");
@phoenixg
phoenixg / header_http_status_codes.php
Created Apr 6, 2013
PHP header() for sending HTTP status codes
View header_http_status_codes.php
<?php
/*
参考自:
http://darklaunch.com/2010/09/01/http-status-codes-in-php-http-header-response-code-function
http://snipplr.com/view/68099/
*/
function HTTPStatus($num) {
$http = array(
@XVilka
XVilka / TrueColour.md
Last active Dec 6, 2021
True Colour (16 million colours) support in various terminal applications and terminals
View TrueColour.md

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
MotionDesignStudio / google_voice_sms.py
Last active Jun 21, 2020
Mass Texting (SMS) Messaging Via Google Voice And Python
View google_voice_sms.py
#!/usr/bin/env python
import sys
from googlevoice import Voice
from googlevoice.util import input
sys.dont_write_bytecode = True
username=str(sys.argv[1]).strip()
password=str(sys.argv[2]).strip()
@MotionDesignStudio
MotionDesignStudio / ascii_movie_image_ver_1.py
Last active Jul 9, 2021
Python ASCII Video And ASCII Image Creator
View ascii_movie_image_ver_1.py
#!/usr/bin/env python
import sys
import cv2
import subprocess
from subprocess import call
import aalib
import Image
@tbrianjones
tbrianjones / Inflect.php
Last active Oct 28, 2021
A PHP Class for converting English words between Singular and Plural.
View Inflect.php
<?php
// original source: http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/
/*
The MIT License (MIT)
Copyright (c) 2015
Permission is hereby granted, free of charge, to any person obtaining a copy
@james2doyle
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
<?php
function json_response($code = 200, $message = null)
{
// clear the old headers
header_remove();
// set the actual code
http_response_code($code);
// set the header to make sure cache is forced
header("Cache-Control: no-transform,public,max-age=300,s-maxage=900");