Prfile
Generate Prfile data
go test -cpuprofile cpu.prof -memprofile mem.prof -bench .
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; |
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") |
package config | |
import ( | |
"os" | |
"strings" | |
"github.com/spf13/viper" | |
) | |
type Config struct { |
package main | |
import ( | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/x509" | |
"crypto/x509/pkix" | |
"encoding/pem" | |
"fmt" | |
"math/big" |
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 |
go test -cpuprofile cpu.prof -memprofile mem.prof -bench .
export class Model { | |
constructor(obj: any) { | |
for (let key in obj) { | |
this.unmarshal(toCamelCase(key), obj[key]) | |
} | |
} | |
marshal(): any { | |
return Object.keys(this).reduce((obj: any, key: string) => { | |
obj[toSnakeCase(key)] = toJS(this[key]) |
build: | |
zig build-exe --name test.wasm -target wasm32-freestanding --release-small test.zig |
// babel js | |
{ | |
"plugins": [ | |
["react-hot-loader/babel"], | |
["babel-plugin-root-import"], | |
[ | |
"import", { | |
"libraryName": "antd", | |
"libraryDirectory": "es", |
package main | |
import ( | |
"bytes" | |
"crypto/tls" | |
"crypto/x509" | |
"io" | |
"io/ioutil" | |
"log" | |
"net/http" |