Skip to content

Instantly share code, notes, and snippets.

View yunyu's full-sized avatar
😎

Yunyu Lin yunyu

😎
View GitHub Profile
09:51:34.175 INFO Display.refreshBrightness():3936 - Refreshing brightness: 47 <> 54
09:51:34.185 VERBOSE Display.brightness():1864 - Won't apply brightness to Built-in [ID 1] ["oldValue": 47, "lockedBrightness": false, "DDC.apply": false, "brightness != oldValue": true, "brightness": 54]
09:51:38.171 DEBUG AppDelegate.listenForScreenConfigurationChanged():974 - Optional(name = NSWorkspaceActiveSpaceDidChangeNotification, object = Optional(<NSWorkspace: 0x600000d68270>), userInfo = nil)
09:51:38.955 DEBUG Display.control():2470 - Display got CoreDisplay Control ["neverUseNetworkControl": false, "showVolumeOSD": true, "alternativeControlForAppleNative": "Unknown", "hasNetworkControl": false, "isAppleDisplay": true, "serial": "37D8832A-2D66-02CA-B9F7-8F30A301B230", "neverFallbackControl": false, "isSource": true, "id": 1, "control": "CoreDisplay Control", "applyGamma": false, "alwaysUseNetworkControl": false, "name": "Built-in", "connected": true, "hasI2C": false, "alwaysFallbackControl": false]
09:51:40.047
This file has been truncated, but you can view the full file.
21:44:13.238 INFO Display.setupHotkeys():3256 - Initialized hotkeyPopoverController for LG HDR 4K [ID 2]
21:44:13.265 INFO Display.setupHotkeys():3256 - Initialized hotkeyPopoverController for Built-in [ID 1]
21:44:13.282 INFO Display.setupHotkeys():3256 - Initialized hotkeyPopoverController for LG HDR 4K [ID 2]
21:44:13.284 INFO Display.setupHotkeys():3256 - Initialized hotkeyPopoverController for Built-in [ID 1]
21:44:13.285 INFO Util.getSerialNumberHash():573 - Ogxd40l5XSDDKxQn1U95t.F9a8U=
21:44:13.294 INFO DisplayController.firstChildMatching():633 - Looking for service (names: ["AppleCLCD2"]) in iterator 61443
21:44:13.297 INFO DisplayController.firstServiceMatching():643 - Found service 72195 in iterator 61443: (names: ["AppleCLCD2"])
21:44:13.300 INFO DisplayController.matchDisplayByEDIDUUID():552 - No display matched for service 61187: (Can't find EDID UUID)
21:44:13.302 INFO DisplayController.firstChildMatching():633 - Looking for service (names: ["AppleCLCD2"]) in iterator 63235
21:44:13.303 INFO Di
@yunyu
yunyu / README.md
Last active June 6, 2021 13:48 — forked from nicerobot/README.md
Mac OS X uninstall script for packaged install of node.js from https://stackoverflow.com/a/9287292/23056

To run this, you can try:

curl -ksO https://gist.githubusercontent.com/yunyu/3b76f198aaaaccfe78de13a3d1a31856/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
@yunyu
yunyu / bottom_sheet_fix.dart
Created February 17, 2019 19:51 — forked from crimsonsuv/bottom_sheet_fix.dart
Flutter Modal bottom sheet whith input fix and full screen sheet
//Flutter Modal Bottom Sheet
//Modified by Suvadeep Das
//Based on https://gist.github.com/andrelsmoraes/9e4af0133bff8960c1feeb0ead7fd749
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:meta/meta.dart';
const Duration _kBottomSheetDuration = const Duration(milliseconds: 200);
// Paste in Chrome dev console when you are on the quiz page
const click = (q, i) =>
document
.getElementsByClassName('samigo-question-callout')
[q].getElementsByTagName('input')
[i].click();
const [A, B, C, D, E, F] = [1, 2, 3, 4, 5, 6];
// Not the real answers
const answers = [
[1, [A]],
@yunyu
yunyu / snapping_list_view.dart
Last active October 1, 2023 02:32
A Flutter PageView replacement/snapping ListView for fixed-extent items
import "package:flutter/widgets.dart";
import "dart:math";
class SnappingListView extends StatefulWidget {
final Axis scrollDirection;
final ScrollController controller;
final IndexedWidgetBuilder itemBuilder;
final List<Widget> children;
final int itemCount;
let
type any = {any : int}
var buffer := " "
function readint() : int =
let var i := 0
var any := any{any=0}
function isdigit(s : string) : int =
ord(buffer)>=ord("0") & ord(buffer)<=ord("9")
function skipto() =
Windows Registry Editor Version 5.00
; Values stored as 00-BB-GG-RR
[HKEY_CURRENT_USER\CONSOLE]
; BLACK DGRAY
"ColorTable00"=dword:001b150e
"ColorTable08"=dword:004d443c
; BLUE LBLUE
"ColorTable01"=dword:00856b26
"ColorTable09"=dword:00cd9d32
@yunyu
yunyu / .travis.yml
Last active November 13, 2017 15:21
language: cpp
sudo: false
matrix:
allow_failures:
# To allow a build matrix entry to fail, add this key to said entry.
- custom_allow_failures: true
include:
- os: linux
FILE(GLOB HIGHLIGHT_FILES src/*.cpp include/*.h)
add_executable(clionhack ${HIGHLIGHT_FILES})
set_target_properties(clionhack PROPERTIES LINKER_LANGUAGE CXX)