Discover gists
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> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |
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
%% setup | |
hold all | |
a=arduino; | |
mpu=i2cdev(a,'0x68'); %mpu adress is normally 0x68 | |
writeRegister(mpu, hex2dec('B6'), hex2dec('00'), 'int16'); %reset | |
data=zeros(10000,14,'int8'); %prelocating for the speed | |
j=1; | |
a1 = animatedline('Color',[1 0 0]); | |
a2 = animatedline('Color',[0 1 0]); | |
a3 = animatedline('Color',[0 0 1]); |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines or lines starting with space in the history. | |
# See bash(1) for more options | |
HISTCONTROL=ignoreboth |
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
{ | |
"estados": [ | |
{ | |
"sigla": "AC", | |
"nome": "Acre", | |
"cidades": [ | |
"Acrelândia", | |
"Assis Brasil", | |
"Brasiléia", | |
"Bujari", |
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 echoPostRequest = { | |
url: 'https://<my url>.auth0.com/oauth/token', | |
method: 'POST', | |
header: 'Content-Type:application/json', | |
body: { | |
mode: 'application/json', | |
raw: JSON.stringify( | |
{ | |
client_id:'<your client ID>', | |
client_secret:'<your client secret>', |
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
Free Windows Server 2022 Standard Product Key | |
HP9DJ-NK2X6-4QPCH-8HY8H-6X2XY | |
RRNMT-FP29D-CHKCH-GWQP2-DDDVB | |
44QN4-X3R72-9X3VK-3DWD6-HFWDM | |
Free Windows Server 2022 Datacenter Product Key | |
WX4NM-KYWYW-QJJR4-XV3QB-6VM33 | |
Download windows Sever 2022 Evaluation edition: | |
Windows Server 2022 Evaluation English |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Z-Index Example</title> | |
<style> | |
html, body { background-color: #00787F; } | |
.container { | |
position: relative; |
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
tell application "Finder" | |
activate | |
set these_items to the selection | |
log these_items | |
repeat with this_item in these_items | |
set item_name to (get displayed name of this_item) | |
if item_name is not ".DS_Store" then | |
set current_com to (get comment of this_item) | |
if current_com is not "" then | |
set comment of this_item to current_com as string |
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
// Endpoints registration helper | |
// Enables DI for a group of endpoints to reduce init code and repeating parameters across endpoints | |
// Usage in e.g. Program.cs: | |
app.RegisterEndpoints( | |
typeof(CatalogEndpoints), | |
typeof(BasketsEndpoints) | |
); |
NewerOlder