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
{ | |
"workbench.iconTheme": "material-icon-theme", | |
"explorer.confirmDragAndDrop": false, | |
"terminal.integrated.fontSize": 18, | |
"prettier.printWidth": 100, | |
"prettier.trailingComma": "all", | |
"editor.tabCompletion": "on", | |
"[json]": { | |
"editor.defaultFormatter": "vscode.json-language-features" | |
}, |
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
ClientDisconnectedError: MQTToTClient got disconnected. | |
at MQTToTClient.<anonymous> (/home/ubuntu/socialbus-instagram.rocknjs.com/node_modules/instagram_mqtt/dist/realtime/realtime.client.js:124:30) | |
at MQTToTClient.emit (/home/ubuntu/socialbus-instagram.rocknjs.com/node_modules/eventemitter3/index.js:202:33) | |
at MQTToTClient.MqttBaseClient.emitDisconnect (/home/ubuntu/socialbus-instagram.rocknjs.com/node_modules/mqtts/dist/mqtt.base-client.js:21:48) | |
at MQTToTClient.setDisconnected (/home/ubuntu/socialbus-instagram.rocknjs.com/node_modules/mqtts/dist/mqtt.client.js:340:14) | |
at /home/ubuntu/socialbus-instagram.rocknjs.com/node_modules/mqtts/dist/mqtt.client.js:85:22 | |
at internal/streams/pipeline.js:90:7 | |
at internal/util.js:392:14 | |
at Writable.<anonymous> (internal/streams/pipeline.js:35:5) | |
at Writable.<anonymous> (internal/util.js:392:14) |
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
drop trigger if exists unique_username on users; | |
drop function if exists unique_username(); | |
drop table if exists users; | |
create table users ( | |
id serial primary key, | |
username varchar unique, | |
name varchar not null, | |
surname varchar not null, | |
check (username is not null and username != '') |
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
<?php | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, 'https://api.wapim.io/api/v1/whatsapp/message/text'); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($ch, CURLOPT_POST, 1); | |
curl_setopt($ch, CURLOPT_POSTFIELDS, "{\"phone_number\": \"RECIPIENT_NUMBER\", \"message\" : \"Hello Wapim\"}"); | |
$headers = array(); |
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
OkHttpClient client = new OkHttpClient().newBuilder() | |
.build(); | |
MediaType mediaType = MediaType.parse("text/plain"); | |
RequestBody body = RequestBody.create(mediaType, "{\n\t\"phone_number\": \"RECIPIENT_NUMBER\",\n\t\"message\": \"hello\"\n}"); | |
Request request = new Request.Builder() | |
.url("https://api.wapim.io/api/v1/whatsapp/message/text") | |
.method("POST", body) | |
.addHeader("token", "YOUR_WAPIM_TOKEN") | |
.build(); | |
Response response = client.newCall(request).execute(); |
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
.App{ | |
display: flex; | |
align-items: center; | |
} | |
form div{ | |
padding: 4px 0; | |
text-align: right; | |
} | |
form div label{ |
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
.container { | |
width: 100%; | |
height: 100%; | |
padding: 2rem; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
flex-direction: column; | |
background: #E7EEF8; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>UI</title> | |
<link rel="stylesheet" type="text/css" href="style.css"> | |
</head> | |
<body> | |
<div class="container" data-state="New Movie"> | |
<div class="device" data-view="list"> | |
Form |
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 gulp = require('gulp'); | |
const minify = require('gulp-minify'); | |
const minifyCSS = require('gulp-minify-css'); | |
const rename = require('gulp-rename'); | |
const concat = require('gulp-concat'); | |
gulp.task('styles', () => { | |
gulp.src('source/css/**/*.css') | |
.pipe(minifyCSS()) |
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
test/ |