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
const functions = require('@google-cloud/functions-framework'); | |
const compression = require('compression'); | |
const express = require('express'); | |
const app = express(); | |
app.use(compression()); | |
app.disable('x-powered-by'); | |
app.all('/', async (req, res) => { | |
try { |
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
$rawText = "パスワード" | |
Add-Type -AssemblyName System.Security | |
$SALT_LEN = 16 # 128bit | |
$SALT_BASE64_LEN = 24 | |
function ConvertTo-EncryptedString { | |
param( | |
[string]$text |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// Angular Flex-Layout の代替 | |
[fxLayout] { | |
box-sizing: border-box; | |
display: flex; | |
} | |
[fxLayout^='row'] { | |
flex-direction: row; | |
} |
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
# Requires -Version 7.1 | |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory)] | |
[string] | |
$SrcDir, | |
[Parameter(Mandatory)] | |
[string] |
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
[OutputType("System.Array")] | |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory, ValueFromPipeline)] | |
[psobject]$InputObject, | |
[Parameter(Mandatory, Position = 0)] | |
[int]$Size, | |
[Parameter()] |
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 java.nio.ByteBuffer; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.nio.file.StandardOpenOption; | |
public class CountLines { | |
private static final int MAX_BUFFER_SIZE = 1024 * 1024; | |
public static void main(String[] args) throws Exception { | |
if (args.length < 1) { |
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
*://udemy.benesse.co.jp/* | |
*://www.udemy.com/* | |
*://www.sejuku.net/* | |
*://www.pasonatech.co.jp/* | |
*://tech-camp.in/* | |
*://career.levtech.jp/* | |
*://techacademy.jp/* |
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
# beep音を無効化 | |
Set-PSReadlineOption -BellStyle None | |
function TextEncodingsArgumentCompleter { | |
[OutputType([System.Management.Automation.CompletionResult])] | |
param( | |
[string] $CommandName, | |
[string] $ParameterName, | |
[string] $WordToComplete, | |
[System.Management.Automation.Language.CommandAst] $CommandAst, |
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 static java.nio.file.StandardCopyOption.REPLACE_EXISTING; | |
import static java.nio.file.StandardOpenOption.CREATE; | |
import static java.nio.file.StandardOpenOption.CREATE_NEW; | |
import static java.nio.file.StandardOpenOption.TRUNCATE_EXISTING; | |
import static java.nio.file.StandardOpenOption.WRITE; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.OutputStream; |
NewerOlder