Skip to content

Instantly share code, notes, and snippets.

View acro5piano's full-sized avatar
🏠
Working from home

Kay Gosho acro5piano

🏠
Working from home
View GitHub Profile
@Phroneris
Phroneris / howGithubMarkdownDetailsWork.md
Last active February 27, 2025 01:48
GitHubのMarkdownで折りたたみ記法の中身を整形させる方法

どうやら</summary>後の空行以降から整形される。

記述

違いは</summary>後の空行だけ。

<details>
<summary>これは中身が整形されない</summary>
1. 野菜**A**の皮を剥く。
2. 乱切りにする。
@hosseinzoda
hosseinzoda / README.md
Last active August 19, 2021 15:29
UWP BLE Gatt Server Advertising Not Supported, IsPeripheralRoleSupported = FALSE

I intend to gather a list of bluetooth internal/usb adapters that support or do not support advertising Gatt services.

These Devices may support advertising on bluetooth/ble. But the Windows 10 GattServiceProvider do support advertising on it. With this error, The device does not support the command feature. WinRT information: The Bluetooth adapter does not support peripheral role.

Test project on Vistual Studio: https://github.com/hosseinamin/UWPBleGattAdvTest

@wesbos
wesbos / facebookScrape.js
Created January 25, 2019 20:30
marketplace
require('isomorphic-fetch');
async function go(params) {
const variables = {
params: {
bqf: { callsite: 'COMMERCE_MKTPLACE_WWW', query: 'iphone' },
browse_request_params: {
// burlington
filter_location_id: '108043585884666',
// hamilton
@scheibo
scheibo / gen1ou.txt
Created December 3, 2018 02:53
Gen 1 - OU Teams
=== [gen1ou] marcoasd 2014 ===
Gengar
- Hypnosis
- Thunderbolt
- Night Shade
- Explosion
Chansey
- Ice Beam
@kashishgrover
kashishgrover / index.js
Created November 30, 2018 19:31
React Native index.js with default props example
import { Text, TouchableOpacity } from 'react-native';
Text.defaultProps = {
...Text.defaultProps,
allowFontScaling: false,
};
// In other news, we do this as well because 0.6 is too weird
TouchableOpacity.defaultProps = {
...TouchableOpacity.defaultProps,
@acro5piano
acro5piano / App.tsx
Created October 27, 2018 05:56
fetch data HOC with strongly typed
import * as React from 'react'
import { get, WithData } from './decorator'
import * as moment from 'moment'
interface PostResponse {
id: number
userId: number
title: string
body: string
}
@alecgerona
alecgerona / dual_boot_arch_windows.md
Last active March 21, 2024 11:46
Dual Boot install Arch Linux in a Windows 10 preinstalled laptop

Notes: This install was done on MSI GL62M 7REX, ASUS FX503v, and Lenovo Y540 laptops and doesn't implement a secured partition for simplicity and ease of use. Use at your own discretion.

Since the laptop has an SSD, I'd like to install Arch Linux on the SSD as well. Unfortunately, Windows' installation has the whole drive occupied so it needs to be shrunk

  1. Boot into Windows and go into "Create and format hard disk partitions" in Control Panel.
  2. Free up some space in the SSD.

At this point we now have an unallocated disk space. We need to make this space usable by making it of file system type RAW

  1. While still in the Disk Management window, select the unallocated space and create a simple volume in it. Don't assign a path/letter to it, use the whole space, and don't format the drive.
@ipatch
ipatch / alacritty.yml
Created September 21, 2018 19:30
alacritty key bindings
key_bindings:
- { key: V, mods: Command, action: Paste }
- { key: C, mods: Command, action: Copy }
- { key: Q, mods: Command, action: Quit }
- { key: W, mods: Command, action: Quit }
- { key: Home, chars: "\x1bOH", mode: AppCursor }
- { key: Home, chars: "\x1b[H", mode: ~AppCursor }
- { key: End, chars: "\x1bOF", mode: AppCursor }
- { key: End, chars: "\x1b[F", mode: ~AppCursor }
- { key: Key0, mods: Command, action: ResetFontSize }
@a7v8x
a7v8x / graphql_introspection_query.graphql
Last active November 5, 2023 12:36
GraphQL introspection query - for fetching the whole schema (from GraphiQL IDE) for https://atheros.ai/blog/graphql-introspection-and-introspection-queries
query IntrospectionQuery {
__schema {
queryType { name }
mutationType { name }
types {
...FullType
}
directives {
name
description
@bogaotory
bogaotory / install_bionic_on_x1c6.md
Last active May 15, 2024 03:25
Install Ubuntu 18.04 on Thinkpad X1 Carbon 6th Generation

Install Ubuntu 18.04 on Thinkpad X1 Carbon 6th Gen/2018

X1C6 Type: 20KG*

Bionic works out of the box on the new 2018 X1 Carbon. The X1C6 is a beautiful laptop, and Bionic is the best Ubuntu yet. Users of all levels of experties/experiences are recommended to try this combination. The purpose of this documentation is to improve the user's experience.

BIOS/UEFI Changes

Following changes are required by the DSDT patch:

  1. Turn off Secure Boot