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
inputFile=$1 | |
outputFile=$(echo $inputFile | sed 's|\.pdf$|\.c\.pdf|ig') | |
echo " input is $inputFile, \noutput is $outputFile" | |
while true; do | |
# Prompt the user | |
read -p "Do you want to continue? (Y/N): " answer | |
# Convert the input to lowercase |
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
package com.example.android.utils; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Collection; | |
import java.util.Collections; | |
import java.util.Comparator; | |
import java.util.HashMap; | |
import java.util.HashSet; | |
import java.util.Iterator; |
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
package com.sam016.vsflatomation.service.ble; | |
import java.util.HashMap; | |
import java.util.UUID; | |
public class AllGattCharacteristics { | |
private static HashMap<String, String> attributes = new HashMap(); | |
static { | |
attributes.put("00002a00-0000-1000-8000-00805f9b34fb", "Device Name"); |
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
# Notice: | |
# GOOGLE_SERVICE_JSON, KEY_STORE_PROP, and STORE_FILE are the variants you can configure in | |
# project settings so that you can avoid to expose it in project codebase. | |
# The content of these variants are in Base64 format. | |
image: openjdk:8-jdk | |
variables: | |
ANDROID_COMPILE_SDK: "28" | |
ANDROID_BUILD_TOOLS: "28.0.3" |
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 python3 | |
""" | |
Binary Indexed Tree / Fenwick Tree | |
https://www.hackerearth.com/practice/notes/binary-indexed-tree-made-easy-2/ | |
https://www.topcoder.com/community/data-science/data-science-tutorials/binary-indexed-trees/ | |
https://www.youtube.com/watch?v=v_wj_mOAlig | |
https://www.youtube.com/watch?v=kPaJfAUwViY | |
""" |
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
[ | |
{ | |
"keys": [ "super+f12" ], | |
"command": "unquote" | |
}, | |
{ | |
"keys": [ "home" ], | |
"command": "move_to", | |
"args": { "to": "bol" } | |
}, |
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
/* | |
create `build.sbt` and add following content | |
``` | |
scalaVersion := "2.11.1" | |
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/" | |
libraryDependencies += "com.typesafe.play" %% "play" % "2.5.12" | |
libraryDependencies += "com.typesafe.play" % "play-ws_2.11" % "2.5.12" | |
``` |
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
alias ll='ls -GlA' | |
alias la='ls -GlA' | |
alias findall=' find . -type f -not -path '\''*/\.*/*'\'' -a -not -path '\''*/node_modules/*'\'' -a -not -path '\''*/build/*'\'' -a -not -path '\''*/lib/*'\'' -print0 | xargs -0 grep --color=auto' | |
alias findpy=' find . -type f -not -path '\''*/\.*/*'\'' -a -not -path '\''*/node_modules/*'\'' -a -not -path '\''*/build/*'\'' -a -not -path '\''*/lib/*'\'' -a \( -name '\''*.py'\'' -or -name '\''*.templ'\'' \) -print0 | xargs -0 grep --color=auto' | |
alias findjs=' find . -type f -not -path '\''*/\.*/*'\'' -a -not -path '\''*/node_modules/*'\'' -a -not -path '\''*/build/*'\'' -a -not -path '\''*/lib/*'\'' -name '\''*.js'\'' -print0 | xargs -0 grep --color=auto' | |
alias findc=' find . -type f -not -path '\''*/\.*/*'\'' -a -not |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <String.h> | |
#define MAX_LINE_NUM 1000 | |
#define MAX_COLUMN_NUM 30 | |
#define MAX_RECORD_LENGTH 51 | |
#define IDENT_LENGTH 4 | |
void readFile(char A[MAX_LINE_NUM][MAX_COLUMN_NUM][MAX_RECORD_LENGTH], int *numOfLine, int *numOfCol); |
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
APK is pulled from Nexus6p and dumped with `aapt dump permissions base.apk` | |
package: com.eg.android.AlipayGphone | |
uses-permission: name='com.alipay.permission.ALIPAY_UPDATE_CREDENTIALS' | |
uses-permission: name='com.android.launcher.permission.INSTALL_SHORTCUT' | |
uses-permission: name='android.permission.BLUETOOTH' | |
uses-permission: name='android.permission.CHANGE_WIFI_STATE' | |
uses-permission: name='android.permission.CAMERA' | |
uses-permission: name='android.permission.ACCESS_NETWORK_STATE' | |
uses-permission: name='android.permission.MODIFY_AUDIO_SETTINGS' |
NewerOlder