Skip to content

Instantly share code, notes, and snippets.

Coşku Baş tapir

View GitHub Profile
View test.js
export default class HomeScreen extends React.Component {
constructor(props) {
super(props);
this.state = {token: ''};
this.getToken = this.getToken.bind(this);
getToken();
}
getToken() {
AsyncStorage.getItem('JWT_TOKEN')
@tapir
tapir / paddleVerify.go
Created Nov 21, 2018
Paddle webhook verification
View paddleVerify.go
package main
import (
"bytes"
"crypto"
"crypto/rsa"
"crypto/sha1"
"crypto/x509"
"encoding/base64"
"encoding/pem"
View test.lua
str = "testtesttest<!--m-->testtesttest"
local s, e = string.find(str, "<!--", 0)
print(s, e)
local s, e = string.find(str, "<!--m", 0)
print(s, e)
-- Output:
-- 13, 15
-- nil, nil
View gist:6406617
package main
import (
al "github.com/tapir/allegro5"
"github.com/tapir/allegro5/imageio"
"runtime"
"log"
)
func init() {
View gist:1926719
/home/cosku/Desktop/mono-MonoGame-13d6249/MonoGame.Framework/Linux/Graphics/Effect/EffectPass.cs(58,36): error CS1502: The best overloaded method match for `OpenTK.Graphics.OpenGL.GL.ProgramParameter(int, OpenTK.Graphics.OpenGL.AssemblyProgramParameterArb, int)' has some invalid arguments
/usr/lib/mono/gac/OpenTK/1.1.0.0__bad199fe84eb3df4/OpenTK.dll (Location of the symbol related to previous error)
/home/cosku/Desktop/mono-MonoGame-13d6249/MonoGame.Framework/Linux/Graphics/Effect/EffectPass.cs(58,36): error CS1503: Argument `#2' cannot convert `OpenTK.Graphics.OpenGL.Version32' expression to type `OpenTK.Graphics.OpenGL.AssemblyProgramParameterArb'
/home/cosku/Desktop/mono-MonoGame-13d6249/MonoGame.Framework/Linux/Graphics/Effect/EffectPass.cs(59,36): error CS1502: The best overloaded method match for `OpenTK.Graphics.OpenGL.GL.ProgramParameter(int, OpenTK.Graphics.OpenGL.AssemblyProgramParameterArb, int)' has some invalid arguments
/usr/lib/mono/gac/OpenTK/1.1.0.0__bad199fe84eb3df4/OpenTK.dll (Location of
You can’t perform that action at this time.