This file contains 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
#!/usr/bin/env bash | |
BASE_PATH="your domain" | |
GITLAB_PRIVATE_TOKEN="your private token" | |
if [ -z "$1" ] | |
then | |
echo "group name is required." | |
exit 1; |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>DeepLink</title> | |
</head> | |
<body> | |
<p> |
This file contains 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
#!/usr/bin/env python | |
#coding:utf-8 | |
#This script is aimed to grep logs by application(User should input a packageName and then we look up for the process ids then separate logs by process ids). | |
import os | |
import sys | |
packageName=str(sys.argv[1]) | |
def getDeviceId(): |
This file contains 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 | |
# i3-get-window-criteria - Get criteria for use with i3 config commands | |
# To use, run this script, then click on a window. | |
# Output is in the format: [<name>=<value> <name>=<value> ...] | |
# Known problem: when WM_NAME is used as fallback for the 'title="<string>"' criterion, | |
# quotes in "<string>" are not escaped properly. This is a problem with the output of `xprop`, | |
# reported upstream: https://bugs.freedesktop.org/show_bug.cgi?id=66807 |
This file contains 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
function toHex(str) { | |
var result = ''; | |
for (var i = 0; i < str.length; i++) { | |
result += `0x${str.charCodeAt(i).toString(16)} `; | |
} | |
return result; | |
} | |
let res = toHex('http') | |
console.log('===================================='); |
This file contains 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
.markdown-here-wrapper { | |
} | |
/* To add site specific rules, you can use the `data-md-url` attribute that we | |
add to the wrapper element. Note that rules like this are used depending | |
on the URL you're *sending* from, not the URL where the recipient views it. | |
*/ | |
/* .markdown-here-wrapper[data-md-url*="mail.yahoo."] ul { color: red; } */ | |
This file contains 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
const path = require("path"); | |
const process = require("child_process"); | |
const findCommand = "find"; | |
const dir2Clean = __dirname; | |
const args = [dir2Clean, ..."-type d -name .git".split(" ")]; | |
const cleanCommand = "git clean -xdf ."; | |
const findSizeCommand = "du -hd0 " + dir2Clean; | |
const sizeBeforeClean = process |
This file contains 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
/** | |
* | |
* After react-native v0.56.0, `react-native-scrollable-tab-view` case app failed to run. Npm server show below: | |
``` | |
error: bundling failed: SyntaxError: /node_modules/react-native-scrollable-tab-view/SceneComponent.js: A trailing comma is not permitted after the rest element (9:32) | |
7 | | |
8 | const SceneComponent = (Props) => { |
This file contains 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 java.text.DateFormat; | |
import java.text.SimpleDateFormat; | |
import java.util.Date; | |
import java.util.Random; | |
import java.util.Timer; | |
import java.util.TimerTask; | |
import java.util.concurrent.ArrayBlockingQueue; | |
import java.util.concurrent.BlockingQueue; | |
public class TaskTest { |
This file contains 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
#!/usr/bin/env python | |
# coding:utf-8 | |
# This script is aimed to grep logs for React-Native. | |
import os | |
import sys | |
def getDeviceId(): | |
devices = [] | |
command = "adb devices -l | sed '1d'| awk '{print $1}'" |
NewerOlder