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
<application> | |
<component name="ActionMacroManager"> | |
<macro name="Reformat and Optimize import and Save"> | |
<action id="ReformatCode" /> | |
<action id="OptimizeImports" /> | |
<action id="SaveAll" /> | |
</macro> | |
</component> | |
</application> |
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
/* | |
This example code is in the Public Domain (or CC0 licensed, at your option.) | |
Unless required by applicable law or agreed to in writing, this | |
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR | |
CONDITIONS OF ANY KIND, either express or implied. | |
*/ | |
/**************************************************************************** | |
* | |
* This file is for gatt server. It can send adv data, be connected by client. |
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
## profile | |
export HISTSIZE=2000000 | |
export HISTFILESIZE=20000000 | |
export ANDROID_ADB_SERVER_PORT=25037 | |
export JAVA_HOME=${HOME}/opt/android-studio/jre | |
export ANDROID_HOME=${HOME}/Android/Sdk | |
export GOROOT=${HOME}/opt/go | |
export GOPATH=${HOME} |
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/sh | |
cd `dirname $0`/.. | |
PROJECT_ROOT=$PWD | |
OPENCV_VERSION=3.4.1 | |
if [ "Darwin" = `uname -s` ]; then | |
HOST_ARCH=macosx | |
elif [ "Linux" = `uname -s` ]; then | |
HOST_ARCH=linux |
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
# Acer | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0660", GROUP="plugdev" | |
# ASUS | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0660", GROUP="plugdev" | |
# Dell | |
SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0660", GROUP="plugdev" | |
# Foxconn | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0489", MODE="0660", GROUP="plugdev" | |
# Fujitsu | |
SUBSYSTEM=="usb", ATTR{idVendor}=="04c5", MODE="0660", GROUP="plugdev" |
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 | |
if [ -z "$1" -o -z "$2" ]; then | |
echo "Usage: $0 <from_file> <to_file>" | |
exit | |
fi | |
FROM_FILE=$1 | |
TO_FILE=$2 | |
WORK_DIR=_tmp |
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
CREATE TEMPORARY FUNCTION pullFromQueryParams(s string, key string) | |
RETURNS string | |
LANGUAGE js AS """ | |
// function pullFromQueryParams(s, key) { | |
if (!s) return null; | |
var ts = s.split("&"); | |
for (var i = 0;i<ts.length;i++) { | |
var vs = ts[i].split("=",2); | |
if (vs[0] == key && vs.length >= 2) { | |
return decodeURIComponent(vs[1]); |
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 | |
NUM=$1 | |
if [[ ! "$NUM" =~ ^[0-9]+$ ]] || [ "$NUM" -le 0 ]; then | |
echo "Usage: launch-emurators.sh <num>" | |
exit | |
fi | |
EMULATOR_PIDS="" |
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
{ | |
"version": 2, | |
"name": "My Custom", | |
"inherits": "fdmprinter", | |
"metadata": { | |
"visible": true, | |
"author": "Ultimaker", | |
"manufacturer": "Custom", | |
"category": "Custom", | |
"file_formats": "text/x-gcode", |
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
--- ./mutter-3.30.2_orig/src/core/meta-workspace-manager.c 2019-05-22 05:46:37.667434418 +0900 | |
+++ ./mutter-3.30.2/src/core/meta-workspace-manager.c 2019-05-22 05:46:46.859495121 +0900 | |
@@ -200,6 +200,8 @@ meta_workspace_manager_new (MetaDisplay | |
* variable values in update_num_workspaces () | |
* This can be overriden using _NET_DESKTOP_LAYOUT in | |
* meta_x11_display_new (), if it's specified */ | |
+ workspace_manager->workspace_layout_overridden = FALSE; | |
+ | |
meta_workspace_manager_update_workspace_layout (workspace_manager, | |
META_DISPLAY_TOPLEFT, |