Skip to content

Instantly share code, notes, and snippets.

import JavaScriptCore
import Foundation
let context = JSContext()!
import JavaScriptCore
@objc protocol MovieJSExports: JSExport {
var title: String { get set }
var price: String { get set }
@winterdl
winterdl / wallet.go
Created December 24, 2020 10:40 — forked from LuisAcerv/wallet.go
Bitcoin wallet tutorial go
package wallet
import (
"fmt"
"github.com/LuisAcerv/btchdwallet/config"
"github.com/LuisAcerv/btchdwallet/crypt"
"github.com/blockcypher/gobcy"
"github.com/brianium/mnemonic"
"github.com/wemeetagain/go-hdwallet"
@winterdl
winterdl / hdwallet.go
Created December 24, 2020 10:38 — forked from miguelmota/hdwallet.go
Golang Ethereum HD Wallet implementation
package hdwallet
import (
"crypto/ecdsa"
"errors"
"fmt"
"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcutil/hdkeychain"
"github.com/ethereum/go-ethereum/accounts"
@winterdl
winterdl / testnet_btc_example.go
Created December 24, 2020 10:34 — forked from zeroFruit/testnet_btc_example.go
Testnet BTC create address, createRawTransaction example
package main
import (
"bytes"
"encoding/hex"
"fmt"
"github.com/btcsuite/btcd/btcec"
"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash"
@winterdl
winterdl / sign-multisgi-p2sh.go
Created December 24, 2020 10:32 — forked from mahdiidarabi/sign-multisgi-p2sh.go
sign a multi sig transaction in the format of P2SH in go
package main
import (
"bytes"
"encoding/hex"
"fmt"
"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/txscript"
"github.com/btcsuite/btcd/wire"
@winterdl
winterdl / main.dart
Created June 18, 2020 05:10 — forked from BoHellgren/main.dart
Game main.dart final version
import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:flame/components/component.dart';
import 'package:flame/sprite.dart';
import 'package:flame/flame.dart';
import 'package:audioplayers/audioplayers.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:firebase_admob/firebase_admob.dart';
// Create the following file with this command: flutter pub run flappy_translator
import 'i18n.dart';
import 'package:flutter/material.dart';
class ListViewDataSource {
/// The number of items that will be displayed in the ListView.
int get numItems => 0;
/// The height of the widget at [index].
double itemHeight(int index) => 0;
/// Generate the widget at [index].
@winterdl
winterdl / download-android-ndks-direct-links.sh
Created November 4, 2019 04:11 — forked from roscopecoltran/download-android-ndks-direct-links.sh
Download Android NDK Tools / Direct Links
@winterdl
winterdl / CCFileUtils.cpp
Created October 25, 2019 17:58 — forked from stevetranby/CCFileUtils.cpp
A collection of files modified to support .obb extension files. Hopefully this is everything. The changes were as follows.
/****************************************************************************
Copyright (c) 2010-2013 cocos2d-x.org
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@winterdl
winterdl / dissolve.shader
Created October 5, 2019 07:02 — forked from nukeop/dissolve.shader
Dissolve shader for Unity
Shader "Unlit/DissolveEffectShader"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
_NoiseTex ("Texture", 2D) = "white" {}
[MaterialToggle] PixelSnap ("Pixel snap", Float) = 0
_EdgeColour1 ("Edge colour 1", Color) = (1.0, 1.0, 1.0, 1.0)
_EdgeColour2 ("Edge colour 2", Color) = (1.0, 1.0, 1.0, 1.0)
_Level ("Dissolution level", Range (0.0, 1.0)) = 0.1