Skip to content

Instantly share code, notes, and snippets.

@TT--
TT-- / userDefineLang_Gradle.xml
Created November 5, 2018 04:10 — forked from toddb/userDefineLang_Gradle.xml
Gradle language for Notepad++
<UserLang name="Gradle" ext="gradle" udlVersion="2.1">
<Settings>
<Global caseIgnored="yes" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">03/* 04*/ 00// 01 02</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
<Keywords name="Numbers, extras1"></Keywords>
@TT--
TT-- / dark-css-for-MarkdownViewerPlusPlus
Last active November 5, 2018 01:39
dark colors for MarkdownViewerPlusPlus rendering and export
body, p
{
color: #EFEFAF;
background-color: #404040;
}
code, pre
{
color: #8ACCCF;
font-weight: 700;
@TT--
TT-- / github-wiki-how-to-image-links.md
Created November 3, 2018 03:06 — forked from subfuzion/github-wiki-how-to.md
GitHub Wiki How-To for Image and File links
@TT--
TT-- / .gitconfig
Created September 13, 2018 13:57 — forked from rab/.gitconfig
A good starting point for ~/.gitconfig
# -*- Conf -*-
[color]
branch = auto
diff = auto
status = auto
showbranch = auto
ui = true
# color.branch
# A boolean to enable/disable color in the output of git-branch(1). May be set to always, false (or
@TT--
TT-- / README.md
Created June 5, 2018 23:28 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@TT--
TT-- / SubSequenceTest.java
Created October 23, 2017 02:21
a string "contains" a word if a sub-sequence of the characters in the string can spell the word (characters must all appear and in the same order - takes q queries, each query consists of a string, For each query, print YES on a new line if string contains word; otherwise, print NO instead.
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class SubSequenceTest {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
@TT--
TT-- / ReduceString.java
Last active October 21, 2017 01:52
input a string of lowercase. recursively remove instances of doubled characters
/**
* TT 2017-10-20
*
* solution for "Super Reduced String"
* https://www.hackerrank.com/challenges/reduced-string
*
* similar "brute force" ways:
*
* with stringbuilder
* https://github.com/ebolat/HackerRank/blob/master/Algorithms/Strings/Super%20Reduced%20String/Solution.java
@TT--
TT-- / PangramCheck.java
Created October 20, 2017 15:20
check if input contains all letters of alphabet (case in-sensitive)
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class PangramCheck {
public static void main(String args[] ) throws Exception {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
// Output "pangram" or "not pangram" depending if input sentence contains