Internet Engineering Task Force (IETF) D. Hardt, Ed.
Request for Comments: 6749 Microsoft
Obsoletes: 5849 October 2012
Category: Standards Track
ISSN: 2070-1721
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # rotate_desktop.sh | |
| # | |
| # Rotates modern Linux desktop screen and input devices to match. Handy for | |
| # convertible notebooks. Call this script from panel launchers, keyboard | |
| # shortcuts, or touch gesture bindings (xSwipe, touchegg, etc.). | |
| # | |
| # Using transformation matrix bits taken from: | |
| # https://wiki.ubuntu.com/X/InputCoordinateTransformation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Wayland shm example | |
| * Based on https://jan.newmarch.name/Wayland/SharedMemory/ | |
| * Build: gcc -o shm shm.c -lwayland-client -lpthread | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <wayland-client.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Solution(object): | |
| def maxLeftRight(self, lst, L, R): | |
| """ | |
| :type lst: list of Non-negative int | |
| :type L: int | |
| :type R: int | |
| :rtype: int | |
| """ | |
| # Approach #1, brute force, enumerate all possible cases and keep the maximum | |
| maxi = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os,time,signal | |
| loop = True | |
| def stop_all(*args): | |
| global loop | |
| loop = False | |
| if __name__ == '__main__': | |
| signal.signal(signal.SIGTERM, stop_all) | |
| signal.signal(signal.SIGABRT, stop_all) |
Repository containing the files allowing to patch 8.1.0 Oreo version of AOSP source in order to add support for PN7150 NXP-NCI NFC controller to an Android based system, can be found on CodeAurora: https://source.codeaurora.org/external/nfcncisw/nxpnfc_android_oreo
Information about NXP NFC Controller can be found on NXP website.
Further details about the stack and integration guidelines here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 宣告常式 | |
| private const int APPCOMMAND_VOLUME_MUTE = 0x80000; | |
| private const int APPCOMMAND_VOLUME_UP = 0x0a0000; | |
| private const int APPCOMMAND_VOLUME_DOWN = 0x090000; | |
| private const int WM_APPCOMMAND = 0x319; | |
| [DllImport("user32.dll")] | |
| public static extern IntPtr SendMessageW(IntPtr hWnd, int Msg, IntPtr wParam, IntPtr lParam); | |
| private void btnVup_Click(object sender, EventArgs e) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <cutils/properties.h> | |
| int main(int ac, char **av ) | |
| { | |
| char *percentage = "100"; | |
| if(property_set("persist.bios.percent", percentage)) | |
| fprintf(stderr,"could not set property\n"); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Remove ansi escape code, for example, '\033[0m' | |
| Usage: | |
| type in_ansi.txt | remove_ansi.py > out_no_ansi.txt | |
| cat in_ansi.txt | remove_ansi.py > out_no_ansi.txt | |
| """ | |
| import re, sys | |
| ansi_escape =re.compile(r'(\x9B|\x1B\[)[0-?]*[ -\/]*[@-~]') |
OlderNewer