Esta é uma documentação completa para a biblioteca jose
em Dart. A biblioteca implementa os padrões de Javascript Object Signing and Encryption (JOSE), fornecendo funcionalidades para JWS, JWE, JWK, JWT e JWA.
This file contains hidden or 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
CREATE OR REPLACE FUNCTION serial_year_func() | |
RETURNS "pg_catalog"."trigger" AS $BODY$ | |
DECLARE | |
current_year INT; | |
table_name TEXT; | |
id_field_name TEXT; | |
ano_field_name TEXT; | |
last_id INT; | |
_idIsNull boolean; | |
_anoIsNull boolean; |
This file contains hidden or 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://stackoverflow.com/questions/21961839/simulation-background-size-cover-in-canvas | |
function drawImageProp(ctx, img, x, y, w, h, offsetX, offsetY) { | |
if (arguments.length === 2) { | |
x = y = 0; | |
w = ctx.canvas.width; | |
h = ctx.canvas.height; | |
} | |
// default offset is center | |
offsetX = typeof offsetX === "number" ? offsetX : 0.5; |
-
First is to download php 7 to this website https://windows.php.net/download/
- download VC15 x86 or x64 Thread Safe
- download x86 for 32bit and x64 for 64bit system
-
Make a directory and save it to this path C:/php
-
Go to https://www.apachelounge.com/download/ to download the Apache server
- Download Apache 2.4.39 Win64 or Apache 2.4.39 Win32
This file contains hidden or 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 'package:new_sali_core/new_sali_core.dart'; | |
import 'package:puppeteer/puppeteer.dart'; | |
import 'package:test/test.dart'; | |
import 'dart:async'; | |
import 'package:path/path.dart' as path; | |
/// add to pubspec.yaml | |
// dev_dependencies: | |
// angel3_hot: any |
This file contains hidden or 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
// g++ test.cpp --std=c++11 -lpthread -O2 | |
//#ifdef WIN32 <- stdafx breaks this ifdef... | |
//#include "stdafx.h" | |
//#endif | |
#include <iostream> | |
#include <atomic> | |
#include <thread> | |
#include <vector> |
This file contains hidden or 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 <limits.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <sys/statvfs.h> | |
#include <sys/types.h> | |
struct fs_usage { | |
uintmax_t fsu_blocksize; /* Size of a block. */ | |
uintmax_t fsu_blocks; /* Total blocks. */ | |
uintmax_t fsu_bfree; /* Free blocks available to superuser. */ |
This file contains hidden or 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 | |
/** | |
* Truncates text. | |
* | |
* Cuts a string to the length of $length and replaces the last characters | |
* with the ending if the text is longer than length. | |
* | |
* @param string $text String to truncate. | |
* @param integer $length Length of returned string, including ellipsis. |
This file contains hidden or 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 'dart:convert'; | |
import 'dart:math'; | |
import 'dart:typed_data'; | |
import "package:pointycastle/export.dart"; | |
import "package:asn1lib/asn1lib.dart"; | |
List<int> decodePEM(String pem) { | |
var startsWith = [ | |
"-----BEGIN PUBLIC KEY-----", | |
"-----BEGIN PRIVATE KEY-----", |
This file contains hidden or 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 'package:angular_router/angular_router.dart'; | |
import 'package:core/core.dart'; | |
import 'package:web/src/routes.dart'; | |
import 'package:web/src/route_paths.dart'; | |
class AuthGuard implements RouterHook { | |
Router _router; | |
AuthenticationState _authBlocState; | |
set router(Router value) => _router = value; |
NewerOlder