Skip to content

Instantly share code, notes, and snippets.

Avatar

Daniel Nguyen longseespace

View GitHub Profile
@longseespace
longseespace / SignInForm.js
Created Jan 13, 2022
Debug Component Mount Lifecycle
View SignInForm.js
import { useMountDebug } from './useMountDebug';
function SignInForm(props) {
useMountDebug('SignInForm');
return (<div></div>)
}
View README.md

npm version code style: prettier

Project Name

Write a project description

Prerequisites

This project requires NodeJS (version 8 or later) and NPM.

@longseespace
longseespace / 2019-https-localhost.md
Created Sep 6, 2021 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains
View 2019-https-localhost.md

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

View gist:d6c3a628cb67c81dfa6bb5509d0cb076
Verifying my Blockstack ID is secured with the address 192WVK6hX8xVsFZQrB3bDU7YnR1z3VVr4i https://explorer.blockstack.org/address/192WVK6hX8xVsFZQrB3bDU7YnR1z3VVr4i
@longseespace
longseespace / install.sh
Last active Feb 14, 2017
install eh script
View install.sh
#!/usr/bin/env bash
set -e
if [[ ! -d "${HOME}/.eh" ]]; then
git clone --recursive -j4 git@github.com:Thinkei/dev-env.git ${HOME}/.eh
else
(cd ${HOME}/.eh && git fetch --all && git reset --hard origin/master)
fi
@longseespace
longseespace / install.log
Created Apr 23, 2015
buck install antennapod
View install.log
buck install //:antennapod -v 10
Using buckd.
[-] PARSING BUCK FILES...FINISHED 0.2s
Creating a build with 10 threads.
rm -r -f /Users/mrnhim/Desktop/AntennaPod/buck-out/bin/__unpack_appcompat#aar_unzip__ && mkdir -p /Users/mrnhim/Desktop/AntennaPod/buck-out/bin/__unpack_appcompat#aar_unzip__
unzip /Users/mrnhim/Desktop/AntennaPod/libs/appcompat-v7-19.1.0.aar -d /Users/mrnhim/Desktop/AntennaPod/buck-out/bin/__unpack_appcompat#aar_unzip__
rm -r -f /Users/mrnhim/Desktop/AntennaPod/buck-out/gen/__dslv-res_text_symbols__ && mkdir -p /Users/mrnhim/Desktop/AntennaPod/buck-out/gen/__dslv-res_text_symbols__
rm -r -f /Users/mrnhim/Desktop/AntennaPod/buck-out/gen/__antennapod#gen_java_android_build_config_de_danoeh_antennapod__ && mkdir -p /Users/mrnhim/Desktop/AntennaPod/buck-out/gen/__antennapod#gen_java_android_build_config_de_danoeh_antennapod__
rm -r -f /Users/mrnhim/Desktop/AntennaPod/buck-out/gen/__build-config#gen_java_android_build_config__ && mkdir -p /Users/mrnhim/Desktop/AntennaPod/buck-out/gen/__build-conf
We couldn’t find that file to show.
@longseespace
longseespace / script.js
Created Nov 16, 2010
Zing Audio Player
View script.js
var baseurl = 'http://mp3.zing.vn';
var token = 'fb01753add840692df1029d5508a8ee6';
var params = document.querySelectorAll('param[value*="mp3.zing.vn"]');
if (params.length > 0) {
for (var i=0; i < params.length; i++)
{
var zingPlaylist = new Array();
var object = params[i].parentNode;
var xmlurl = baseurl + object.querySelector('param[name=flashvars]').value.replace('xmlURL=', '');
var xmlhttp = new XMLHttpRequest();
View crash.log
Wed Oct 6 00:13:15 unknown UIKitApplication:com.quanganhdo.cyberspace[0xfbb9][488] <Notice>: dyld: Symbol not found: _OBJC_CLASS_$_UIMenuItem
Wed Oct 6 00:13:15 unknown UIKitApplication:com.quanganhdo.cyberspace[0xfbb9][488] <Notice>: Referenced from: /Applications/Cyberspace.app/Cyberspace
Wed Oct 6 00:13:15 unknown UIKitApplication:com.quanganhdo.cyberspace[0xfbb9][488] <Notice>: Expected in: /System/Library/Frameworks/UIKit.framework/UIKit
Wed Oct 6 00:13:15 unknown UIKitApplication:com.quanganhdo.cyberspace[0xfbb9][488] <Notice>: in /Applications/Cyberspace.app/Cyberspace
Wed Oct 6 00:13:17 unknown ReportCrash[489] <Notice>: Formulating crash report for process Cyberspace[488]
Wed Oct 6 00:13:18 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.quanganhdo.cyberspace[0xfbb9]) Job appears to have crashed: Trace/BPT trap
Wed Oct 6 00:13:18 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.quanganhdo.cyberspace[0xfbb9]) Throttling respawn: Will start in 2147483645 seconds
W
View remove-the-3.2-keyboard-APIs-due-to-dyld.patch
From 279e53c3abe39970f6cf946baec95a36f99d95d2 Mon Sep 17 00:00:00 2001
From: Chih-Wei Lee <dlackty@gmail.com>
Date: Thu, 10 Jun 2010 14:39:35 -0700
Subject: [UI|UICommon] remove the 3.2 keyboard APIs due to dyld errors on older OS versions
---
src/Three20UI/Sources/UIViewAdditions.m | 38 ++++++--------------
src/Three20UICommon/Sources/TTBaseViewController.m | 30 +++++-----------
2 files changed, 20 insertions(+), 48 deletions(-)