Works like base64 tool on UNIX systems.
base64 [-Decode | -d] <input>
Accepts filename or string input. Specify -Decode (or -d) option to decode input.
Type typeOf<T>() => T; | |
// source: https://stackoverflow.com/a/52891829/7616528 |
require "jwt" | |
key_file = "AuthKey.p8" # Private key file name | |
$team_id = "XXXXXXXXXX" # Team ID | |
$key_id = "XXXXXXXXXX" # Key ID | |
$validity_period = 180 # In days. Max 180 (6 months) according to Apple docs. | |
$private_key = OpenSSL::PKey::EC.new IO.read key_file | |
def jwtenc(client_id) |
let crazies = document.querySelectorAll('*') | |
setInterval(() => crazies = document.querySelectorAll('*'), 3000); | |
setInterval(() => crazies.forEach(e => { | |
let x = () => 200 * Math.random() - 100; | |
e.style.marginTop = x(); | |
e.style.marginLeft = x(); | |
e.style.paddingTop = x(); | |
e.style.paddingBottom = x(); | |
e.style.paddingLeft = x(); | |
e.style.paddingRight = x(); |
Import-Module posh-git | |
Import-Module oh-my-posh | |
Set-Theme Agnoster | |
Function Adb-Connect { | |
param ( | |
[switch] $d = $false | |
) | |
if ($d) { |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MaterialApp( | |
title: 'Flutter Demo', | |
debugShowCheckedModeBanner: false, | |
theme: ThemeData( | |
primarySwatch: Colors.blue, | |
), | |
home: HomePage(), |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter Demo', | |
debugShowCheckedModeBanner: false, |
String Function(String, String) mergeFunction = (String a, String b) { | |
return a + b; | |
}; | |
void main() { | |
print(mergeFunction('Hello ', 'world')); | |
} |
Future<int> add(int a, int b) async { | |
return Future.delayed(Duration(seconds: 2)).then((f) { | |
return a + b; | |
}); | |
} | |
Future<int> test(Future<int> Function(int a, int b) func) async { | |
return await func(3, 2); | |
} |
public void ConfigureServices(IServiceCollection services) | |
{ | |
services.AddClaimsPrincipalFactory<ClaimsFactory>(); | |
} |