Skip to content

Instantly share code, notes, and snippets.

Avatar
🍀
Gugugu

Rabenda Rabenda

🍀
Gugugu
View GitHub Profile
@Rabenda
Rabenda / trans_v2ray_to_surge.py
Last active Nov 18, 2019
trans_v2ray_to_surge for surge mac 3.3.1
View trans_v2ray_to_surge.py
#!/usr/bin/env python3
import requests
import base64
import json
wdnmd_network_v2ray_sub_url = "https://wdnmd.win/*****"
nps_boost_v2ray_sub_url = "https://npsboost.com/*****"
def base64Decode(base64_code):
return base64.urlsafe_b64decode(base64_code + '====').decode('utf-8')
@Rabenda
Rabenda / ReadMe.md
Last active Feb 22, 2019
sshout_for_win32
View ReadMe.md

ReadMe

This patch for sshout

Finish in 2019.02.21

@Rabenda
Rabenda / WA2-Ubuntu.md
Created Oct 17, 2018 — forked from ObserverOfTime/WA2-Ubuntu.md
Install and patch White Album 2 on Linux
View WA2-Ubuntu.md

For Ubuntu and other Debian-based distros

You can fork this gist and add instructions for your own distro and I'll link them below.

1: Enable Japanese Locale

Check whether it's already enabled:

$ locale -a | grep ja
View INDArrayLearningRate.sc
import com.thoughtworks.deeplearning.plugins.INDArrayWeights
trait INDArrayLearningRate extends INDArrayWeights {
val learningRate: Double
trait INDArrayOptimizerApi extends super.INDArrayOptimizerApi { this: INDArrayOptimizer =>
import org.nd4s.Implicits._
override def delta: INDArray = {
@Rabenda
Rabenda / Adam.sc
Last active Dec 8, 2017 — forked from TerrorJack/Adam.sc
Adam.sc
View Adam.sc
trait Adam extends INDArrayWeights {
import org.nd4j.linalg.ops.transforms.Transforms
trait INDArrayWeightApi extends super.INDArrayWeightApi {
this: INDArrayWeight =>
private var m0: Option[INDArray] = None
def m = m0.getOrElse(Nd4j.zeros(data.shape: _*))
def m_=(value: INDArray) = m0 = Some(value)
private var v0: Option[INDArray] = None
You can’t perform that action at this time.