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> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style> | |
html, | |
body { |
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>Place Autocomplete Address Form</title> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<div id="locationField"> |
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
{ | |
"100": "💯", | |
"1234": "🔢", | |
"grinning": "😀", | |
"grimacing": "😬", | |
"grin": "😁", | |
"joy": "😂", | |
"smiley": "😃", | |
"smile": "😄", | |
"sweat_smile": "😅", |
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 | |
namespace App\Bot\Conversations; | |
use Mpociot\BotMan\Button; | |
use Mpociot\BotMan\Conversation; | |
use Mpociot\BotMan\Question; | |
class SimpleEditConversation extends Conversation | |
{ | |
protected $cont; |
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
--- | |
--- | |
server { | |
listen <%= ipV4 ? `*${ipV4}` : '' %>:443 ssl http2; | |
listen [::<%= ipV6 || '' %>:]:443 ssl http2; | |
server_name <%= domain %>; | |
set $base /var/www/<%= domain %>; |
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 consumeAListOfRules = (str, topLevel) => { | |
let rules = []; | |
while (str.consume()) { | |
try { | |
const rule = consumeStringRule(str, topLevel); | |
if (rule) { | |
reules.push(rule) | |
} | |
} catch (error) { | |
return rules; |
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 consumeAListOfRules = (str, topLevel) => { | |
let rules = []; | |
while (str.consume()) { | |
try { | |
const rule = consumeStringRule(str, topLevel); | |
if (rule) { | |
reules.push(rule) | |
} | |
} catch (error) { | |
return rules; |
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 printNumb = n => { | |
const words = [n, "IT", "Ambit", "FamiliaAmbit"]; | |
const index = (n%3==0)*2 + (n%5 ==0); | |
return words[index] | |
} | |
for (let i = 1; i < 101; i++) { | |
console.log(printNumb(i)) | |
} |
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
use futures::{StreamExt}; | |
use std::time::Duration; | |
use async_std::task; | |
#[tokio::main] | |
async fn main() -> Result<(), Box<dyn std::error::Error + 'static>> { | |
let data:Vec<u32> = (0..50).collect(); | |
println!("Waiting..."); |