This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TODO: Calcular corretamente as Permutações e Comparações dos Algoritmos | |
// TODO: Implementar Busca Sequêncial e Binária para 2ª parte do exercício | |
#include<stdio.h> | |
#include<stdlib.h> | |
#include<string.h> | |
#include<time.h> | |
#define MAX_EXIBICAO_VETOR 10 | |
#define MAX_RAND 4096 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt update | |
sudo apt install -y \ | |
vim \ | |
seahorse gnome-system-monitor \ | |
chromium-browser \ | |
git docker.io docker-compose \ | |
openjdk-9-jre \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Controller | |
index_status_code_should_be_200 | |
index_should_return_collection_of_records | |
show_should_return_valid_record | |
show_should_fail_when_id_not_exists | |
store_should_save_in_database | |
store_should_respond_with_201_and_location_when_successful |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
header('Access-Control-Allow-Origin: *'); | |
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, X-XSRF-TOKEN"); | |
header('Access-Control-Allow-Methods: GET, POST, PUT, DELETE'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
void encrypt(char *str_in, char *str_out, int base) | |
{ | |
for (size_t i = 0; str_in[i] != 0; i++) { | |
sprintf(str_out + i * 2, "%02x", str_in[i] ^ base); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check if your HTTPD server run as www-data. | |
sudo chown -R ${USER}:www-data $1/ | |
sudo find $1/ -type d -exec chmod 775 {} \; | |
sudo find $1/ -type d -exec chmod ug+s {} \; | |
sudo find $1/ -type f -exec chmod 644 {} \; | |
sudo chmod -R ug+rwx $1/storage/ | |
sudo chmod -R ug+rwx $1/bootstrap/cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery.fn.extend({ | |
serializeJSON: function () { | |
var data = {}; | |
this.map(function () { | |
var elements = jQuery.prop(this, "elements"); | |
return elements ? jQuery.makeArray(elements) : this; | |
}) | |
.filter(function () { | |
return this.name && !jQuery(this).is(":disabled"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?XML version="1.0"?> | |
<scriptlet> | |
<registration | |
progid="PoC" | |
classid="{F0001111-0000-0000-0000-0000FEEDACDC}" > | |
<!-- Proof Of Concept - Casey Smith @subTee --> | |
<!-- License: BSD3-Clause --> | |
<script language="JScript"> | |
<![CDATA[ | |