Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Wanna work abroad

Yuki Hirai yukihirai0505

:octocat:
Wanna work abroad
View GitHub Profile
@victornpb
victornpb / deleteDiscordMessages.js
Last active Jul 20, 2021
Delete all your messages from DM or Channel in Discord
View deleteDiscordMessages.js
/*
This file is now hosted here:
https://github.com/victornpb/deleteDiscordMessages
*/
@simov
simov / README.md
Last active Jun 23, 2021
Run `node` scripts using `nvm` and `crontab` without hardcoding the node version
View README.md

Run node scripts using nvm and crontab without hardcoding the node version

cronjob.env.sh

#!/bin/bash

# NVM needs the ability to modify your current shell session's env vars,
# which is why it's a sourced function
@a7madgamal
a7madgamal / dark.md
Last active May 11, 2021
Dark mode for Slack on MacOS
View dark.md
@carlos8f
carlos8f / gist:b09a734cf626ffb9bb3bcb1ca35f3db4
Last active Dec 26, 2020
zenbot sim result, BTC-USD, 90 days, 195.45% profit, 61.06% over buy/hold
View gist:b09a734cf626ffb9bb3bcb1ca35f3db4
2017-05-11 16:00:00 1832.97 USD -0.06% 619.75 + 0.0447 null 1.91% 0.031060 BTC 2897.41 USD 195.43% +61.48%
{ days: 90,
profit_stop_enable_pct: 10,
profit_stop_pct: 1,
sell_rate: -0.006,
trend_ema: 36,
period: '1h',
strategy: 'trend_ema_rate',
sell_stop_pct: 4,
buy_stop_pct: 0,
View play2-src-reading.md
<style> pre { font-size: 30px;
@kenjiskywalker
kenjiskywalker / nginx_ssl_server_name.md
Last active Feb 5, 2021
nginxのserver_nameとSSLの設定についてのメモ
View nginx_ssl_server_name.md
@mariussoutier
mariussoutier / Mail.scala
Created Aug 23, 2012
Sending mails fluently in Scala
View Mail.scala
package object mail {
implicit def stringToSeq(single: String): Seq[String] = Seq(single)
implicit def liftToOption[T](t: T): Option[T] = Some(t)
sealed abstract class MailType
case object Plain extends MailType
case object Rich extends MailType
case object MultiPart extends MailType