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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import websocket | |
import _thread as thread | |
import time | |
class Database: | |
dados = [] |
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
license: mit |
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
const path = require("path"); | |
const HtmlWebpackPlugin = require("html-webpack-plugin"); | |
const CleanWebpackPlugin = require("clean-webpack-plugin"); | |
const webpack = require("webpack"); | |
module.exports = { | |
devtool: "source-map", | |
entry: "./src/index.js", | |
output: { | |
filename: "[name].[hash].js", |
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
# Configure swap memory | |
fallocate -l 4G /swapfile | |
chmod 600 /swapfile | |
mkswap /swapfile | |
echo "/swapfile none swap sw 0 0" >> /etc/fstab | |
shutdown -r now |
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
package carlosborges.httpclient; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.PrintWriter; | |
import java.net.Socket; | |
public class App { | |
public static void main( String[] args ) throws IOException { |
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
package carlosborges.taskify; | |
import static spark.Spark.*; | |
public class App { | |
public static void main( String[] args ) { | |
App app = new App(); | |
app.start(System.getenv("PORT")); | |
} |
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
package carlosborges.taskify; | |
import static spark.Spark.*; | |
public class App { | |
public static void main( String[] args ) { | |
String strPort = System.getenv("PORT") != null ? System.getenv("PORT") : "4567"; | |
port(Integer.valueOf(strPort)); | |
get("/", (req, res) -> "Hello World"); | |
} |
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
.idea | |
*.iml | |
target |
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
# http://editorconfig.org | |
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
indent_size = 4 | |
indent_style = space | |
insert_final_newline = true | |
max_line_length = 80 |
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
class TarefaRepository { | |
public List<Tarefa> listaTarefas() { | |
return new ArrayList<Tarefa>() {{ | |
add(new Tarefa("titulo 1", "descricao 1")) | |
add(new Tarefa("titulo 2", "descricao 2")) | |
}}; | |
} | |
} |
NewerOlder