Skip to content

Instantly share code, notes, and snippets.

Jake McGinty mcginty

Block or report user

Report or block mcginty

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mcginty
mcginty / material_colors.xml
Last active May 1, 2019
Android XML resource with the full material color palette. Source: http://www.google.com/design/spec/style/color.html#color-color-palette
View material_colors.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="material_red50">#ffffebee</color>
<color name="material_red100">#ffffcdd2</color>
<color name="material_red200">#ffef9a9a</color>
<color name="material_red300">#ffe57373</color>
<color name="material_red400">#ffef5350</color>
<color name="material_red500">#fff44336</color>
<color name="material_red600">#ffe53935</color>
<color name="material_red700">#ffd32f2f</color>
View index.js
const puppeteer = require('puppeteer');
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
(async () => {
const browser = await puppeteer.launch({headless: false});
// const browser = await puppeteer.launch();
View gist:2e4419d3775b5a162cf1e9064d980df7
[ 9.899] (--) Log file renamed from "/var/log/Xorg.pid-755.log" to "/var/log/Xorg.0.log"
[ 9.903]
X.Org X Server 1.20.0
X Protocol Version 11, Revision 0
[ 9.903] Build Operating System: Linux Arch Linux
[ 9.903] Current Operating System: Linux ichi 4.17.13-arch1-1-ARCH #1 SMP PREEMPT Mon Aug 6 23:06:31 UTC 2018 x86_64
[ 9.903] Kernel command line: \vmlinuz-linux cryptdevice=UUID=2d7a85c5-f37e-409c-a153-ec81a8f0afe0:cryptlvm root=/dev/mapper/main_group-root quiet rw initrd=\intel-ucode.img initrd=\acpi_override initrd=\initramfs-linux.img mem_sleep_default=deep
[ 9.903] Build Date: 18 June 2018 03:12:37PM
[ 9.903]
[ 9.903] Current version of pixman: 0.34.0
View gist:e89c06d29a35f77f56ad6d2a4446a049
-- Logs begin at Fri 2018-08-03 05:13:14 CEST, end at Sat 2018-08-11 13:05:37 CEST. --
Aug 11 13:05:05 ichi kernel: Linux version 4.17.13-arch1-1-ARCH (builduser@heftig-19721) (gcc version 8.2.0 (GCC)) #1 SMP PREEMPT Mon Aug 6 23:06:31 UTC 2018
Aug 11 13:05:05 ichi kernel: Command line: \vmlinuz-linux cryptdevice=UUID=2d7a85c5-f37e-409c-a153-ec81a8f0afe0:cryptlvm root=/dev/mapper/main_group-root quiet rw initrd=\intel-ucode.img initrd=\acpi_override initrd=\initramfs-linux.img mem_sleep_default=deep
Aug 11 13:05:05 ichi kernel: KERNEL supported cpus:
Aug 11 13:05:05 ichi kernel: Intel GenuineIntel
Aug 11 13:05:05 ichi kernel: AMD AuthenticAMD
Aug 11 13:05:05 ichi kernel: Centaur CentaurHauls
Aug 11 13:05:05 ichi kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Aug 11 13:05:05 ichi kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
Aug 11 13:05:05 ichi kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
View gist:3d85b55a18b2391f7f3883dd65ea0e76
[ 0.000000] Linux version 4.17.13-arch1-1-ARCH (builduser@heftig-19721) (gcc version 8.2.0 (GCC)) #1 SMP PREEMPT Mon Aug 6 23:06:31 UTC 2018
[ 0.000000] Command line: \vmlinuz-linux cryptdevice=UUID=2d7a85c5-f37e-409c-a153-ec81a8f0afe0:cryptlvm root=/dev/mapper/main_group-root quiet rw initrd=\intel-ucode.img initrd=\acpi_override initrd=\initramfs-linux.img mem_sleep_default=deep
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers'
View gist:e551209252f2f86fb28fead93b16f5ac
[19156.170363] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-12-16.ddc
[19156.173283] Bluetooth: hci0: Applying Intel DDC parameters completed
[19182.575206] PM: suspend entry (deep)
[19182.575210] PM: Syncing filesystems ... done.
[19182.594316] Freezing user space processes ... (elapsed 0.047 seconds) done.
[19182.641628] OOM killer disabled.
[19182.641630] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[19182.643489] Suspending console(s) (use no_console_suspend to debug)
[19183.219210] ACPI: EC: interrupt blocked
[19183.259840] ACPI: Preparing to enter system sleep state S3
View .gitlab-ci.yml
# This file is a template, and might need editing before it works on your project.
# Unofficial language image. Look for the different tagged releases at:
# https://hub.docker.com/r/scorpil/rust/tags/
image: "liuchong/rustup:nightly"
# Optional: Pick zero or more services to be used on all builds.
# Only needed when using a docker container to run your tests in.
# Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-service
#services:
# - mysql:latest
View gist:9728f3024e00d49ada5a1da5ff6164b0
Showing LDR /Users/kaonashi/git/op1-fw-packer/op1_076/te-boot.ldr ...
LDR block 1: [off:0x00000000] [header(0x10): 0650b5ad 0000a0ff 00000000 1c0d0000] [data(0x00000000)]
LDR block 2: [off:0x00000010] [header(0x10): 060038ad 004080ff ac000000 00000000] [data(0x000000ac)]
LDR block 3: [off:0x000000cc] [header(0x10): 0600d0ad 0000a0ff 2c080000 00000000] [data(0x0000082c)]
LDR block 4: [off:0x00000908] [header(0x10): 0600f5ad 0000a1ff 04040000 00000000] [data(0x00000404)]
LDR block 5: [off:0x00000d1c] [header(0x10): 0608fcad 0000a0ff 00000000 00000000] [data(0x00000000)]
LDR block 6: [off:0x00000d2c] [header(0x10): 065087ad 0000a0ff 00000000 80a00300] [data(0x00000000)]
LDR block 7: [off:0x00000d3c] [header(0x10): 060016ad 04000000 f04b0200 00000000] [data(0x00024bf0)]
LDR block 8: [off:0x0002593c] [header(0x10): 06015bad 00000001 0000f000 00000000] [data(0x00f00000)]
LDR block 9: [off:0x0002594c] [header(0x10): 060063ad 0000f001 38010000 00000000] [data(0x00000138)]
View gist:44b8986a36aba7b929c5f77d56710c4c
-28.5 dbfs
-25.5 dbfs
-22.5 dbfs
-19.5 dbfs
-16.5 dbfs
-13.5 dbfs
-10.5 dbfs
constant gain
-76.5 dbfs
-73.5 dbfs
You can’t perform that action at this time.