Skip to content

Instantly share code, notes, and snippets.


Simon/Jinyu Liu passos

View GitHub Profile
passos / find_alias
Last active Oct 29, 2020
aliases for find some in code
View find_alias
alias findall=' find . -type f -not -path '\''*/\.*/*'\'' -a -not -path '\''*/node_modules/*'\'' -a -not -path '\''*/build/*'\'' -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/*'\'' -name '\''*.js'\'' -print0 | xargs -0 grep --color=auto'
alias findc=' find . -type f -not -path '\''*/\.*/*'\'' -a -not -path '\''*/node_modules/*'\'' -a -not -path '\''*/build/*'\'' -a \( -name '\''*.c'\'' -or -name '\''*.h'\'' -or -name '\''*.cpp'\'' -or -name '\''*.cxx'\'' \) -print0 | xargs -0 grep --color=auto'
alias findgo=' find . -type f -not -path '\''*/\.*/*'\'' -a -not -path '\''*/node_modules/*'\'' -a -not -path '\''*/build/*'\'' -name '\''*.go'\'
passos /
Created Oct 28, 2014
DBUtils for Perl
package DBUtils;
require Exporter;
@ISA = qw(Exporter);
passos / .gitlab-ci.yml
Last active Oct 14, 2020
An Android project CI/CD configuration file for GitLab pipeline. it's updated to the latest Google official Android SDK cmdline-tools package
View .gitlab-ci.yml
# 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
passos /
Last active Sep 29, 2020
A perl Data.Dumper clone for Python
A perl Data.Dumper clone for Python
Copyright 2011 Jinyu LIU
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
View filter.txt
passos / Binary Indexed
Created Mar 12, 2020 — forked from rajatdiptabiswas/Binary Indexed
Implementation of Binary Indexed Tree/Fenwick Tree in Python
View Binary Indexed
#!/usr/bin/env python3
Binary Indexed Tree / Fenwick Tree
passos / sublime.keybind
Created Aug 17, 2017
Sublime Keybinding
View sublime.keybind
"keys": ["super+f12"], "command": "unquote"
"keys": [
"command": "move_to",
passos / .scala
Last active Jul 19, 2017
scala play WSRequest standalone script
View .scala
create `build.sbt` and add following content
scalaVersion := "2.11.1"
resolvers += "Typesafe repository" at ""
libraryDependencies += "" %% "play" % "2.5.12"
libraryDependencies += "" % "play-ws_2.11" % "2.5.12"
View L1.c
#include <stdio.h>
#include <stdlib.h>
#include <String.h>
#define MAX_LINE_NUM 1000
#define MAX_COLUMN_NUM 30
#define IDENT_LENGTH 4
void readFile(char A[MAX_LINE_NUM][MAX_COLUMN_NUM][MAX_RECORD_LENGTH], int *numOfLine, int *numOfCol);
View gist:609403deb2a6f9481c2fb703d93666ca
APK is pulled from Nexus6p and dumped with `aapt dump permissions base.apk`
uses-permission: name=''
uses-permission: name=''
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'