Skip to content

Instantly share code, notes, and snippets.

View ackratos's full-sized avatar
🎧
Music in, code out

Hungry ackratos

🎧
Music in, code out
View GitHub Profile
@Rayraegah
Rayraegah / jp_comp.csv
Created January 29, 2021 06:17
Japan Tech Job Salary Dataset
company city date grade_level role skill years_at_company years_of_experience total_compensation
SmartNews Tokyo 01/28/21 L3 Software Engineer Backend 0 3 10500000
Cookpad Tokyo 01/27/21 G4 Software Engineer Backend -1 10 14000000
Indeed Tokyo 01/27/21 TDM3 Engineering Manager Fullstack 2 10 18675000
FPT Software Japan Tokyo 01/27/21 SE3 Software Engineer Networking 2 6 5200000
Rakuten Tokyo 01/26/21 BB Software Engineer Backend -1 1 5200000
HENNGE Tokyo 01/26/21 Brown Software Engineer Web Frontend -1 3 5800000
ACSL, Ltd Tokyo 01/25/21 Associate - Software Engineer Software Engineer AI/ML 2 2 5600000
Indeed Tokyo 01/25/21 SWE 2 Software Engineer Backend -1 4 21000000
Cybozu, Inc. Tokyo 01/25/21 - Software Engineer Web Frontend 1 1 5600000
func RCTLogError(_ message: String, _ file: String=#file, _ line: UInt=#line) {
RCTSwiftLog.error(message, file: file, line: line)
}
func RCTLogWarn(_ message: String, _ file: String=#file, _ line: UInt=#line) {
RCTSwiftLog.warn(message, file: file, line: line)
}
func RCTLogInfo(_ message: String, _ file: String=#file, _ line: UInt=#line) {

The thing that students have the hardest time on when learning functional programming is how to process a recursive structure while maintaining some sort of "state", the result if you will. I'll attempt here to demystify the process.

Functional programming languages almost always use a lot of recursively defined structures. Depending on the language those can be implemented in various ways, but in any case the end result is the same. A structure of this type is either an "atom", i.e. an irreducible thing, or a "compound" consisting of substructures of the same form.

For example a "list" is either an Empty/Nil list (the "atom") or it is formed as a Cons of a value and another list (compound form). That other "sublist" can itself be empty or another cons and so on and so forth. A tree is similar. It is either empty, or it consists of a triple of a value and two sub-trees, left and right.

Almost every problem we encounter is a question about doing something with all entries in a structure. To solve these prob

@staltz
staltz / introrx.md
Last active May 20, 2024 14:59
The introduction to Reactive Programming you've been missing
@frozzare
frozzare / regex+string.swift
Created June 11, 2014 11:01
Regex example
import Foundation
extension String {
func exec (str: String) -> Array<String> {
var err : NSError?
let regex = NSRegularExpression(pattern: self, options: NSRegularExpressionOptions(0), error: &err)
if err {
return Array<String>()
}
let nsstr = str as NSString
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active May 19, 2024 17:40
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@squito
squito / addedTrait.scala
Last active January 28, 2016 07:41
code samples to go along w/ a blog post on macros imranrashid.com/posts/learning-scala-macros/
val addedTrait = Select(Select(Select(
Select(Ident(newTermName("com")), newTermName("imranrashid")),
newTermName("oleander")),newTermName("macros")),
newTypeName("SimpleTrait"))
@luw2007
luw2007 / 词性标记.md
Last active March 18, 2024 06:36
词性标记: 包含 ICTPOS3.0词性标记集、ICTCLAS 汉语词性标注集、jieba 字典中出现的词性、simhash 中可以忽略的部分词性

词的分类

  • 实词:名词、动词、形容词、状态词、区别词、数词、量词、代词
  • 虚词:副词、介词、连词、助词、拟声词、叹词。

ICTPOS3.0词性标记集

n 名词

nr 人名

@tsabat
tsabat / zsh.md
Last active December 25, 2023 19:16
Getting oh-my-zsh to work in Ubuntu