The idea is based on a gist by @jimbojsb.
You can use Pygments or Highlight.
brew install python
/** | |
* Copyright 2013 The Finest Artist | |
* <p/> | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* <p/> | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* <p/> | |
* Unless required by applicable law or agreed to in writing, software |
import android.content.Context; | |
import android.content.res.Resources; | |
import android.util.TypedValue; | |
/** | |
* DipPixelHelper | |
* | |
* @author The Finest Artist | |
*/ | |
public class DipPixelHelper { |
// | |
// NSObject+UTFrameworkProtected.h | |
// UTFramework | |
// | |
// Created by Juyoung Lee on 2014. 1. 2.. | |
// Copyright (c) 2014년 Juyoung.me. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
// NSObject내에 저장된 callback을 실행시키는 핼퍼 |
package com.eatfirst.android.ui.custom; | |
/** | |
* Copyright 2015 Bartosz Lipinski | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
/** | |
* Snackbars | |
* | |
* @author The Finest Artist | |
*/ | |
public class Snackbars { | |
private Snackbars() { | |
} |
import android.content.res.Resources; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import android.graphics.Color; | |
import android.graphics.Rect; | |
import android.graphics.drawable.NinePatchDrawable; | |
import android.util.DisplayMetrics; | |
import java.io.BufferedInputStream; | |
import java.io.File; |
import Foundation | |
/** | |
Provides the default transaction block for perform a Realm transaction. | |
:param: block The block to perform the transaction. The realm is used to store the transaction. | |
*/ | |
func realmTransaction(block: (realm: RLMRealm) -> Void) { | |
let realm = RLMRealm.defaultRealm() | |
/** | |
* Created by TheFinestArtist on 2014. 9. 2.. | |
*/ | |
public class LanguageDetector { | |
public enum Language {Korean, Japanese, English} | |
public static boolean isEnglish(CharSequence charSequence) { | |
boolean isEnglish = true; | |
for (char c : charSequence.toString().toCharArray()) { |
/* | |
* Copyright 2014 Chris Banes | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
The idea is based on a gist by @jimbojsb.
You can use Pygments or Highlight.
brew install python