Skip to content

Instantly share code, notes, and snippets.

@wizardforcel
wizardforcel / psyco.md
Last active April 13, 2022 09:57
编程随想::心理学书籍 IPFS 备份

https://ipfs.io/ipfs/{hash}

user@ubuntu:~/Downloads/心理学$ ipfs add -r .
added QmerE4f5kabqmMunMwGu5UsUS347bcr7wDEhF1wHANh3ck 心理学/(其它)/丹·艾瑞里:怪诞行为学 (扫描版).pdf
added QmRbvAnZ6qAhDozFjc9wxmMhK1Gv4QecUXhtbd5K3Dxw1r 心理学/(其它)/丹·艾瑞里:怪诞行为学.epub
added Qmeq2MfRYrRDrXiwfFtjcz1kGC2gVPY7sqoxQLonJuTCcS 心理学/(其它)/丹·艾瑞里:怪诞行为学2.epub
added QmfQc7G8pLbBtzkNk5gNhCrkaYVd2tGioNrZJTXFxviwQP 心理学/(其它)/基思·斯坦诺维奇:与众不同的心理学——如何正视心理学 (第7版 扫描版).pdf
added QmVoSP6JmrGTP3KWE9onL6ygqhenHFjbeyFTzDVe1GumfP 心理学/(其它)/基思·斯坦诺维奇:对伪心理学说不 (第8版 扫描版).pdf
added QmP6pcyNv4eFdfitk6H8krde6RBAFyteCHfHZYhsDpAWjK 心理学/(其它)/基思·斯坦诺维奇:对伪心理学说不 (第8版).epub
@weihanglo
weihanglo / rust-vs-go.md
Last active April 28, 2024 01:21
【譯】Rust vs. Go

【譯】Rust vs. Go

本文譯自 Julio Merino 2018 年七月撰寫的 Rust vs. Go 一文。Julio Merino 是 G 社僱員,在 G 社工作超過 8 年,無論工作內外,都接觸開發不少 Go 語言,並撰寫 [Rust 點評][rust-review]系列文,來聽聽他對 Rust 與 Go 的想法吧。

Thanks Julio Merino for this awesome article!


@gvolpe
gvolpe / di-in-fp.md
Last active April 24, 2024 20:51
Dependency Injection in Functional Programming

Dependency Injection in Functional Programming

There exist several DI frameworks / libraries in the Scala ecosystem. But the more functional code you write the more you'll realize there's no need to use any of them.

A few of the most claimed benefits are the following:

  • Dependency Injection.
  • Life cycle management.
  • Dependency graph rewriting.
@lattner
lattner / TaskConcurrencyManifesto.md
Last active May 23, 2024 03:59
Swift Concurrency Manifesto
@antirez
antirez / lmdb.tcl
Created April 28, 2017 15:40
LMDB -- First version of Redis written in Tcl
# LVDB - LLOOGG Memory DB
# Copyriht (C) 2009 Salvatore Sanfilippo <antirez@gmail.com>
# All Rights Reserved
# TODO
# - cron with cleanup of timedout clients, automatic dump
# - the dump should use array startsearch to write it line by line
# and may just use gets to read element by element and load the whole state.
# - 'help','stopserver','saveandstopserver','save','load','reset','keys' commands.
# - ttl with milliseconds resolution 'ttl a 1000'. Check ttl in dump!
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active May 21, 2024 17:20
Hyperlinks in Terminal Emulators
@dmpetrov
dmpetrov / save_dataframe_in_single_csv.scala
Created March 6, 2017 05:07
Save Spark dataframe to a single CSV file
# Code for blogpost:
# https://fullstackml.com/2015/12/21/how-to-export-data-frame-from-apache-spark/
def saveDfToCsv(df: DataFrame, tsvOutput: String,
sep: String = ",", header: Boolean = false): Unit = {
val tmpParquetDir = "Posts.tmp.parquet"
df.repartition(1).write.
format("com.databricks.spark.csv").
option("header", header.toString).
@patpohler
patpohler / Big List of Real Estate APIs.md
Last active May 21, 2024 01:43
Evolving list of Real Estate APIs by Category

Big List of Real Estate APIs

Listings / Property Data

####Rets Rabbit http://www.retsrabbit.com

Rets Rabbit removes the nightmare of importing thousands of real estate listings and photos from RETS or ListHub and gives you an easy to use import and Web API server so you can focus on building your listing search powered website or app.

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@emrahgunduz
emrahgunduz / PackageDownloader.cpp
Created November 14, 2016 12:55
Package Downloader And Mounter For Unreal Engine 4 -- Do not forget to correct the include and api name if you are copy pasting this code
#include "HitMe.h"
#include "PackageDownloader.h"
#include "IPlatformFilePak.h"
#include "HitMeSingleton.h"
UPackageDownloader* UPackageDownloader::GetPackageDownloader(FString PackageName, FString URL, bool& IsValid)
{
IsValid = false;
UPackageDownloader *Object = NewObject<UPackageDownloader>();