Skip to content

Instantly share code, notes, and snippets.

View gythialy's full-sized avatar
🎯
Focusing

Goren G gythialy

🎯
Focusing
View GitHub Profile
@gythialy
gythialy / labels.json
Created July 12, 2018 10:57
github labels
[{
"name": "Priority: Low",
"color": "#009800"
},
{
"name": "Priority: Medium",
"color": "#fbca04"
},
{
"name": "Priority: High",
@gythialy
gythialy / Generate nutz POJOs.groovy
Created February 5, 2018 06:58
Generate nutz POJOs from database
import com.intellij.database.model.DasTable
import com.intellij.database.model.ObjectKind
import com.intellij.database.util.Case
import com.intellij.database.util.DasUtil
/*
* Available context bindings:
* SELECTION Iterable<DasObject>
* PROJECT project
* FILES files helper
@gythialy
gythialy / scoop_list_apps.txt
Last active February 7, 2018 02:32
scoop_list_apps.txt
λ scoop.cmd list
Installed apps:
7zip 18.01
adb 27.0.1
android-sdk 3859397 [extras]
android-studio 3.0.1.0 [extras]
ant 1.10.1
calibre 3.16.0 [extras]
ccleaner 5.39.6399 [extras]
@gythialy
gythialy / char_encoding.txt
Created March 23, 2016 01:18
字符编码详解
字符编码详解
版本:v2.3.1
Crifan Li
摘要
本文主要介绍了字符编码的基础知识,以及常见的字符编码类型,比如ASCII,Unicode,
UTF-8,ISO 8859等,以及各种编码之间的关系,同时专门解释了中文字符相关的编码标准
package org.slive.net;
import java.net.UnknownHostException;
import java.util.regex.Pattern;
/**
* <pre>
* IP地址范围
* 0.0.0.0255.255.255.255包括了mask地址
*
@gythialy
gythialy / elang.java
Created January 11, 2016 05:27
Encode/Decode E language text
import java.io.UnsupportedEncodingException;
import java.nio.charset.Charset;
import com.google.common.io.BaseEncoding;
public class Test {
public static void main(String[] args) {
String string = "3C 21 20 45 6E 74 69 74 79 3D 44 54 48 53 54 20 74 79 70 65 3D 4E 54 43 20 74 69 6D 65 3D 27 32 30 31 33 2D 30 39 2D 32 33 20 31 36 3A 31 38 3A 32 39 27 20 21 3E 0A 3C 6E 74 63 3A 3A 44 54 48 53 54 3E 0A 40 CD A8 D6 AA B1 E0 BA C5 20 20 20 20 20 20 20 20 CD A8 D6 AA C4 DA C8 DD 0A 23 31 33 37 39 39 35 33 31 30 39 20 20 20 20 20 20 20 20 41 47 43 B2 E2 CA D4 A3 A1 0A 3C 2F 6E 74 63 3A 3A 44 54 48 53 54 3E 0A";
@gythialy
gythialy / java.sh
Created December 3, 2015 02:31
Shell to start/stop/restart shell
#!/bin/sh
#
#该脚本为Linux下启动java程序的通用脚本。即可以作为开机自启动service脚本被调用,
#也可以作为启动java程序的独立脚本来使用。
#
#Author: tudaxia.com, Date: 2011/6/7
#
#警告!!!:该脚本stop部分使用系统kill命令来强制终止指定的java程序进程。
#在杀死进程前,未作任何条件检查。在某些情况下,如程序正在进行文件或数据库写操作,
#可能会造成数据丢失或数据不完整。如果必须要考虑到这类情况,则需要改写此脚本,
@gythialy
gythialy / pingpong.c
Created June 18, 2015 12:36
ping pong buffer
/*
* ======== dsk_app.c ========
*
* Version 1.00
*
* This example digitally processes audio data from the line input on the
* AIC23 codec and plays the result on the line output. It uses the McBSP
* and EDMA to efficiently handle the data transfer without intervention from
* the DSP.
*
@gythialy
gythialy / Program.cs
Last active March 27, 2023 14:13
Windows equivalent to Linux ‘watch’ command
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
namespace watch
# default.custom.yaml
customization:
distribution_code_name: Weasel
distribution_version: 0.9.30
generator: "Rime::SwitcherSettings"
modified_time: "Mon Jun 08 13:06:33 2015"
rime_version: 1.1.2
patch:
schema_list:
- {schema: luna_pinyin_fluency}