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
set term ^ ; | |
execute block | |
returns (RESULT1 varchar(255), RESULT2 varchar(255) ) | |
as | |
declare search_query varchar(32) = 'PAC'; | |
BEGIN | |
/* search tables */ | |
for |
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
/******************************************************************* | |
A telegram bot for your ESP32 that demonstrates a bot | |
that show bot action message | |
Parts: | |
ESP32 D1 Mini style Dev board* - http://s.click.aliexpress.com/e/C6ds4my | |
(or any ESP32 board) | |
= Affilate |
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
exports.shorthands = undefined; | |
exports.up = (pgm) => { | |
pgm.createTable("session", { | |
sid: { type: "varchar", notNull: true, primaryKey: true }, | |
sess: { type: "json", notNull: true }, | |
expire: { type: "timestamp(6)", notNull: true }, | |
}); | |
pgm.createIndex("session", "expire", { name: "IDX_session_expire" }); |
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
vim.o.tabstop = 4 | |
vim.o.softtabstop = 4 | |
vim.o.shiftwidth = 4 | |
vim.opt.number = true | |
-- [[ Install `lazy.nvim` plugin manager ]] | |
-- See `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info | |
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim' | |
if not (vim.uv or vim.loop).fs_stat(lazypath) then |
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
import * as readline from 'node:readline/promises'; | |
import { stdin as input, stdout as output } from 'node:process'; | |
/* valid tokens: | |
numbers (consisting of digits), | |
words (consisting of alnum chars), | |
comment (ignore) | |
*/ | |
const Transition = class { | |
#nextState; |
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 <assert.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
struct Exp_T { | |
const char *str; | |
int index; | |
int length; | |
int token; |
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
// Calcular fatorial iterativo | |
pr init | |
int fat = 1, n = 1, z | |
getint n | |
if (n <= 1) | |
fat = 1 | |
else | |
fat = n | |
z = n |
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
<html> | |
<body> | |
<h1>Try poking!</h1> | |
<button>POKE</button> | |
<p>Pokes: 0</p> | |
<a href="#">Download poke count</a> | |
<script src="./script.js"></script> | |
</body> | |
</html> |
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 pattern = new RegExp([ | |
'\\d{3}', // Area code | |
'\\s*', // Optional whitespace | |
'-?', // Optional dash | |
'\\d{4}' // Main number | |
].join(''), 'g'); | |
const match = '123 4567'.match(pattern); | |
console.log(match[0]); // "123 4567" |
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
/* Automato finito: w possui um numero par de a e b */ | |
digraph { | |
zero; | |
one; | |
two; | |
node [shape="doublecircle"]; | |
three; | |
/* estado inicial */ |
NewerOlder