Skip to content

Instantly share code, notes, and snippets.

View HITGIF's full-sized avatar
🈁
kksk

Mark Wang HITGIF

🈁
kksk
View GitHub Profile
@alexieyizhe
alexieyizhe / challenge.md
Last active February 14, 2020 18:15
2020 Frontend Developer Challenge - Hack the North

Hack the North 2020 Frontend Developer Challenge

As a developer on the Frontend team at Hack the North, you'll build amazingly beautiful web applications that receive millions of impressions a year - all while owning various projects and providing input on a diverse set of tasks: everything from scoping a tool with other teams, discussing UX with designers, and collaborating on code with your fellow team members.

The following challenge and accompanying writeup is intended to help us better understand how you work and allows you to showcase some of your skills and thought process as you complete it.

Please submit your challenge via email to alex.xie@hackthenorth.com by 11:59PM EST on Feb 20, 2020. Your full submission should include:

  1. A link to your codebase and project URL (Part 1)
@roadrunner2
roadrunner2 / 0 Linux-On-MBP-Late-2016.md
Last active February 29, 2024 16:29
Linux on MacBook Pro Late 2016 and Mid 2017 (with Touchbar)

Introduction

This is about documenting getting Linux running on the late 2016 and mid 2017 MPB's; the focus is mostly on the MacBookPro13,3 and MacBookPro14,3 (15inch models), but I try to make it relevant and provide information for MacBookPro13,1, MacBookPro13,2, MacBookPro14,1, and MacBookPro14,2 (13inch models) too. I'm currently using Fedora 27, but most the things should be valid for other recent distros even if the details differ. The kernel version is 4.14.x (after latest update).

The state of linux on the MBP (with particular focus on MacBookPro13,2) is also being tracked on https://github.com/Dunedan/mbp-2016-linux . And for Ubuntu users there are a couple tutorials (here and here) focused on that distro and the MacBook.

Note: For those who have followed these instructions ealier, and in particular for those who have had problems with the custom DSDT, modifying the DSDT is not necessary anymore - se

@arcadefire
arcadefire / RecyclerViewExtension.kt
Last active April 20, 2023 10:14
Add addOnItemClickListener easily to a RecyclerView using Kotlin
import android.support.v7.widget.RecyclerView
import android.view.View
interface OnItemClickListener {
fun onItemClicked(position: Int, view: View)
}
fun RecyclerView.addOnItemClickListener(onClickListener: OnItemClickListener) {
this.addOnChildAttachStateChangeListener(object: RecyclerView.OnChildAttachStateChangeListener {
override fun onChildViewDetachedFromWindow(view: View?) {
@lambdamusic
lambdamusic / define.py
Last active February 15, 2023 14:52
Access osx dictionary in python
#!/usr/bin/env python
"""
# Version
2021-08-31
# Tested on
Python 3.9
@julianlam
julianlam / library.js
Last active July 19, 2022 07:37
How to create a login override plugin
var passport = module.parent.require('passport'),
passportLocal = module.parent.require('passport-local').Strategy,
plugin = {};
plugin.login = function() {
winston.info('[login] Registering new local login strategy');
passport.use(new passportLocal({passReqToCallback: true}, plugin.continueLogin));
};
plugin.continueLogin = function(req, username, password, next) {