go test -cpuprofile cpu.prof -memprofile mem.prof -bench .
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
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 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
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 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
package config | |
import ( | |
"os" | |
"strings" | |
"github.com/spf13/viper" | |
) | |
type Config struct { |
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
package main | |
import ( | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/x509" | |
"crypto/x509/pkix" | |
"encoding/pem" | |
"fmt" | |
"math/big" |
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
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 |
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
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]) |
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
build: | |
zig build-exe --name test.wasm -target wasm32-freestanding --release-small test.zig |
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
// babel js | |
{ | |
"plugins": [ | |
["react-hot-loader/babel"], | |
["babel-plugin-root-import"], | |
[ | |
"import", { | |
"libraryName": "antd", | |
"libraryDirectory": "es", |
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
package main | |
import ( | |
"bytes" | |
"crypto/tls" | |
"crypto/x509" | |
"io" | |
"io/ioutil" | |
"log" | |
"net/http" |
NewerOlder