Skip to content

Instantly share code, notes, and snippets.

View xdite's full-sized avatar

Yi-Ting Cheng xdite

View GitHub Profile
@xdite
xdite / virus.md
Last active February 19, 2020 04:22
[洩露厚生省的黑暗!]傳染病專科醫生暴露的鑽石預感號是新型病毒製造機這一悲慘事實

https://note.com/hoshi19/n/n7161772aa3d5?fbclid=IwAR1av-BhpIYwa43QmExHNKH7P0eG2JewHDx63CsIbrojaiaquJ5XLOfg7F4 https://fanyi.qq.com/

這是快報!昨天公開的傳染病權威岩田健太郎洩露了鑽石公主號發生的事實。好像是通過SNS擴散到了日本、世界,所以寫下了那邊的視頻。

順便說一下,岩田醫生似乎也有可能已經感染了,自己被隔離了。雖然不知道地點,但是有決死的申訴,請一定要看。是非常震撼的戲劇內容。

=====

我是神戶大學醫院感染症內科教授,從現在開始說的內容和神戶大學等所屬的機構沒有任何關係,是我個人的見解。我會提前告訴你。

@xdite
xdite / ai_writer.rb
Created November 13, 2019 13:10
自动生成 AI 标题
require 'rubygems'
require 'yiban'
require 'tx_nlp'
keyword = ARGV[0]
json = Yiban::Text.new(keyword).json
title_list_array = json["title_list"]
new_array = title_list_array.sort_by { |hash| hash["score"] }.reverse
@xdite
xdite / ray_dalio.zh-si.md
Created October 12, 2018 04:20
Hedge Fund Legend Ray Dalio On The Economy

Hedge Fund Legend Ray Dalio On The Economy-5C43i3yclec.mp4

对冲基金联想-5C43i3Cyec.mp4

[00:00:00] Ray D'Alessio is the founder and chief investment officer of Bridgwater the world's largest and most successful hedge fund and he is a best selling author. Coming off the launch of principles which we'll talk about in a minute but Ray welcome. I see you've written one of the largest and I have no doubt most comprehensive analysis of debt crises that I have ever seen. You say this pattern repeats itself again

@xdite
xdite / ddlh-08-08-07.md
Created August 8, 2018 07:42
得到例会 创业以来,我们干过哪99件不靠谱的事 2018/08/07

得到例会 创业以来,我们干过哪99件不靠谱的事 2018/08/07

下一周我们全公司整间要搬迁,搬迁到一个新的地方去,离现在我们这个地方不是很远,但是它是一个沉淀了我们太多的劳累,总之就是那些词吧,你懂得。

各种不堪,各种光荣与梦想,但是我们觉得在搬迁之前,最应该跟大家交代的是我们干过的那些傻事,傻逼事,不靠谱的事,为什么要说这个话题?很多人都在问我们,说你们公司怎么创业几年来干什么,什么成,快刀每次遇到这个话,都会不怀好意的怼回去,说你是没看到我们干不成的那些事,我们没说而已。

所以上个星期我们就跟快刀商量,说要不你就梳理梳理,为什么让快刀梳理呢?因为我们想的任何一件不靠谱的主意,最后都是落实到快刀,要把它做在产品和技术上,所以他那儿的档案保存是最全的,翻他的工作日志就知道我们这个公司做了多少不靠谱的事,所以今天我们就是这个主题。

我们先请快刀来跟大家说说我们干了哪99件,但是99我估计是一个约略的数,只是为了凑个整,挑出来的这么一个数,其实远远不止,当然在快刀之前我必须声明,虽然傻逼事都是他干的,但是责任不归他,因为大多数傻逼事都是我想的。

@xdite
xdite / 99design.md
Created July 25, 2018 14:02
Matt Mickiewicz (Hired, 99designs, Flippa) 7 lessons learned from scaling to 250+ employees

Matt Mickiewicz (Hired, 99designs, Flippa) 7 lessons learned from scaling to 250+ employees.zh-si

  • 大家好,我是MattMichiewicz。

感谢您那么棒的开场白。

下一张幻灯片上,您会了解到我有幸在过去15到16年所工作过的公司。

我第一份工作是在高中时开始的,那时我才14岁,是sitepoint.com,它是一个网上杂志,以及针对网络开发者和网络设计师的图书出版商。

@xdite
xdite / omniauth_callbacks_controller.rb
Created June 17, 2018 10:36
app/controllers/users/omniauth_callbacks_controller.rb
class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
def self.provides_callback_for(*providers)
providers.each do |provider|
class_eval %{
def #{provider}
Rails.logger.warn(request.env["omniauth.auth"])
if not current_user.blank?
current_user.bind_service(request.env["omniauth.auth"])#Add an auth to existing
redirect_to edit_user_registration_path, :notice => "成功绑定了 #{provider} 帐号。"
@xdite
xdite / omniauth_callbacks.rb
Created June 17, 2018 10:35
app/models/user/omniauth_callbacks.rb
class User
module OmniauthCallbacks
["slack"].each do |provider|
define_method "find_or_create_for_#{provider}" do |response|
uid = response["uid"]
data = response["info"]
if identity = Authorization.where("provider" => provider, "uid" => uid).first
user = identity.user
<p><%= @user.user_name %>,您好!</p>
<br />
<p>您所进行中的交易订单 <%= link_to @order.no, offer_order_url(@offer.token, @order.token) %> 已被提出申诉。</p>
<p>请您尽快与对方联系、确认申诉原因,并 <%= link_to "点击这里", account_ticket_url(@ticket.token) %> 与客服沟通,OTCBTC 官方客服将会协助解决交易纠纷。</p>
<br />
<p>请注意 OTCBTC 绝不会以任何形式询问您的帐户密码和验证码。</p>
<p>本邮件由系统自动生成,无需授权签名,请勿直接回复本邮件。</p>
<p>-----------------------------------------------</p>
<p>官方网站:<a href="https://<%= ENV["APPLICATION_HOST"] %>">https://<%= ENV["APPLICATION_HOST"] %></a></p>
<p>邮箱服务:<a href="mailto:support@otcbtc.com">support@otcbtc.com</a></p>
<div class="row">
<div class="referrals-registrations">
<div class="referrals-registrations-image">
<div class="container">
<div class="row">
<div class="col-md-12">
<p class="text-center"></p>
</div>
</div>
</div>
<div class="order-reminder tips-text text-warning">
买家已标记付款完成,请确保收到款项之后再释放 <%= order.human_currency %>
</div>