go test -cpuprofile cpu.prof -memprofile mem.prof -bench .
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
// @flow | |
import React, { Component } from 'react' | |
import { Image, Animated, View } from 'react-native' | |
type ProgressiveImageState = { | |
thumbnailOpacity: number, | |
key: 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
build: | |
zig build-exe --name test.wasm -target wasm32-freestanding --release-small test.zig |
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
export default function transformer(file, api, options) { | |
const j = api.jscodeshift; | |
const printOptions = options.printOptions || {quote: 'single'}; | |
const root = j(file.source); | |
const reactImport = () => { | |
return j.importDeclaration( | |
[ | |
j.importDefaultSpecifier( |
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
FROM postgres:10.0-alpine | |
COPY create-multiple-postgresql-databases.sh /docker-entrypoint-initdb.d/ | |
# COPY ./goose /bin/goose |
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
diff --git a/node_modules/react-native-notifications/android/app/src/reactNative59/java/com/wix/reactnativenotifications/NotificationManagerCompatFacade.java b/node_modules/react-native-notifications/android/app/src/reactNative59/java/com/wix/reactnativenotifications/NotificationManagerCompatFacade.java | |
index f9c858b..94ea188 100644 | |
--- a/node_modules/react-native-notifications/android/app/src/reactNative59/java/com/wix/reactnativenotifications/NotificationManagerCompatFacade.java | |
+++ b/node_modules/react-native-notifications/android/app/src/reactNative59/java/com/wix/reactnativenotifications/NotificationManagerCompatFacade.java | |
@@ -2,8 +2,8 @@ | |
package com.wix.reactnativenotifications; | |
import android.content.Context; | |
-import android.support.annotation.NonNull; | |
-import android.support.v4.app.NotificationManagerCompat; |
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
type Claims struct { | |
AccountID string `json:"account_id"` | |
GroupID string `json:"group_id"` | |
jwtgo.StandardClaims | |
} | |
// Encode | |
func (c *Claims) Encode(secretKey []byte) (string, error) { | |
const op = errors.Op("jwt.Claims.Encode") |
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
package config | |
import ( | |
"os" | |
"strings" | |
"github.com/spf13/viper" | |
) | |
type Config struct { |
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
package main | |
import ( | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/x509" | |
"crypto/x509/pkix" | |
"encoding/pem" | |
"fmt" | |
"math/big" |
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
openssl aes-256-cbc -in plain.txt -out plain.enc -k cool | |
openssl aes-256-cbc -d -in plain.enc -out plain.txt -k cool |
NewerOlder