Skip to content

Instantly share code, notes, and snippets.

View omarkdev's full-sized avatar

Marcos Felipe omarkdev

View GitHub Profile
@omarkdev
omarkdev / curl-gugu-test.php
Created October 1, 2016 00:13
curl gugu testing
<?php
$words = [
'hue',
'test',
'fuck',
'dilm',
'fora',
'teme',
'pika',
'loko',
@omarkdev
omarkdev / wSocialCode.svg
Created July 14, 2016 02:22
SVG Code for logo wSocialCode
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@omarkdev
omarkdev / app.js
Last active July 5, 2016 21:19
Prototype JS para PHP Developers
//Instanciando uma função
var Music = function(){
}
var Song = new Music();
//Construtores
var Music = function(singer){
this.singer = singer;
@omarkdev
omarkdev / enc-dec-example.php
Last active July 5, 2016 21:20
Encryption and Decryption in PHP
<?php
class mCode{
protected function enc($string){
$output = false;
$encrypt_method = "AES-256-CBC";
$secret_key = 'secret-key-1';
$secret_iv = 'secret-key-2';
$key = hash('sha256', $secret_key);
$iv = substr(hash('sha256', $secret_iv), 0, 16);
$output = openssl_encrypt($string, $encrypt_method, $key, 0, $iv);