Skip to content

Instantly share code, notes, and snippets.

View Vamoss's full-sized avatar

Carlos de Oliveira Junior Vamoss

View GitHub Profile
@Vamoss
Vamoss / sinonimos.json
Created February 20, 2024 20:04
Sinônimos em Português no formato JSON
This file has been truncated, but you can view the full file.
{
"a": ["acrescentar","adicionar","agregar","ajuntar","anexar","apensar","filiar","incorporar","juntar","ligar","reunir","unir"],
"aaedo": ["acerbo","acetoso","acido","acre","acético","agre","agro","avinagrado","azedo","mordaz","picante","queimante","ácido","áspero"],
"aalma": ["psique"],
"aantarrão": ["beato","igrejeiro"],
"aãsolar": ["afligir","arrasar","arruinar","consternar","desolar","despovoar","devastar","magoar"],
"aba": ["abrigo","achego","acostamento","adesão","adminículo","agasalho","ajuda","amparo","anteparo","apadrinhamento","apoio","aprovação","arrimo","asilo","assentimento","assistência","auréola","auspiciar","autoridade","auxíjlio","auxílio","bafejo","baluarte","base","beira","beirada","borda","bordo","bordão","broquel","cairel","capa","clivo","coluna","conchego","custódia","declive","defesa","descanso","domínio","eixo","encosta","encosto","escora","espeque","esteio","extremidade","falda","fautoria","favor","fomento","força","fralda","fulcro","fé","garantia","halo","iminência","importância","i
@Vamoss
Vamoss / etherdream.cpp
Created September 24, 2023 23:47
etherdream windows compatible
/* Ether Dream interface library
*
* Copyright 2011-2012 Jacob Potter
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of either the GNU General Public License version 2
* or 3, or the GNU Lesser General Public License version 3, as published
* by the Free Software Foundation, at your option.
*
* This program is distributed in the hope that it will be useful,
@Vamoss
Vamoss / random_walker.py
Created February 27, 2021 19:22
Pyp5js Random Walke
# Code by @Vamoss
# Run at Pyp5js editor
# https://abav.lugaralgum.com/pyp5js/pyodide/
positions = []
GRID_SIZE = 20
def setup():
global positions
size(500, 500)
@Vamoss
Vamoss / randomlist.php
Last active April 30, 2018 21:20
Sort PHP Array in way that a list is consumed and never repeats a sequence
<?php
$mylist = array("item 1", "item 2", "item 3", "item 4", "item 5");
function clone_array_sorted($list) {
$keys = array_keys($list);
shuffle($keys);
$random = array();
foreach ($keys as $key){
$random[] = $list[$key];
}
@Vamoss
Vamoss / functions.php
Created October 20, 2015 19:34
Recaptcha for BuddyPress (Stop spammers)
/**
RECAPTCHA
Stop wordpress with buddypress spam
Remember to replace "YOUR SECRET" and "YOUR SITE KEY".
**/
//these files are required, you can find it here:
//https://github.com/google/recaptcha
require_once __DIR__ . '/ReCaptcha/RequestMethod.php';
require_once __DIR__ . '/ReCaptcha/RequestMethod/Post.php';
@Vamoss
Vamoss / codecombat-patterns.js
Last active September 30, 2016 12:58
CondeCombat Patterns
//MOVE EASY
hero.moveRight = function() {
var target = { "x": hero.pos.x + 6, "y": hero.pos.y };
while(hero.distanceTo(target) > 0.1) {
hero.move(target);
}
};
hero.moveLeft = function() {
var target = { "x": hero.pos.x - 6, "y": hero.pos.y };
@Vamoss
Vamoss / flvToMp4.bat
Created May 6, 2015 14:41
FFFMPEG Commands
REM converting multiple FLV to MP4 using FFMPEG on Windows CMD
for %1 in (*.flv) do ffmpeg -i %1 -vcodec h264 -acodec ac3 -qscale 0 %~n1.mp4
REM converting FLV to MP4 using FFMPEG on Windows CMD
ffmpeg -i input.flv -vcodec h264 -acodec ac3 -qscale 0 output.mp4
REM crop mp4
ffmpeg -i input.flv -vcodec h264 -acodec ac3 -qscale 0 -filter:v "crop=450:340:0:0" output.mp4
@Vamoss
Vamoss / DynamicVideo.cs
Created October 28, 2014 13:10
Improve the Video playback on Unity
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Events;
using System.Collections;
public class DynamicVideo : MonoBehaviour {
public string _url = "http://www.unity3d.com/webplayers/Movie/sample.ogg";
public RawImage texture;