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 co.adison.offerwall.utils; | |
import net.objecthunter.exp4j.Expression; | |
import net.objecthunter.exp4j.ExpressionBuilder; | |
public class ExpressionUtils { | |
public static double eval(String expression) { | |
Expression e = new ExpressionBuilder(expression) | |
.operator(LogicOperators.getOperators()) |
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
require 'active_support' | |
require 'csv' | |
module ExportToCsv | |
extend ActiveSupport::Concern | |
def to_csv(attributes = attribute_names) | |
raise 'must have attributes like %w[id created_at]' unless attributes.is_a? Array | |
# 엑셀에서 csv 파일을 열었을 때 utf8을 사용하도록 BOM 표식 추가 |
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
require 'active_support' | |
module CustomEnum | |
extend ActiveSupport::Concern | |
def enum(name, values, attr_name:) | |
attr = name | |
attr = attr_name if attr_name.present? | |
define_method("#{name}") { values.key(read_attribute(attr)) } |
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
08-19 04:25:20.652 6796-6796/com.cashslide E/Zygote: v2 | |
08-19 04:25:20.652 6796-6796/com.cashslide I/SELinux: Function: selinux_compare_spd_ram, index[1], SPD-policy is existed. and_ver=SEPF_SECMOBILE_6.0.1 ver=20 | |
08-19 04:25:20.652 6796-6796/com.cashslide I/libpersona: KNOX_SDCARD checking this for 10743 | |
08-19 04:25:20.652 6796-6796/com.cashslide I/libpersona: KNOX_SDCARD not a persona | |
08-19 04:25:20.662 6796-6796/com.cashslide W/SELinux: Function: selinux_compare_spd_ram, index[1], priority [1], priority version is VE=SEPF_SECMOBILE_6.0.1_0020 | |
08-19 04:25:20.662 6796-6796/com.cashslide E/Zygote: accessInfo : 0 | |
08-19 04:25:20.662 6796-6796/com.cashslide W/SELinux: SELinux: seapp_context_lookup: seinfo=default, level=s0:c512,c768, pkgname=com.cashslide | |
08-19 04:25:20.662 6796-6796/com.cashslide I/art: Late-enabling -Xcheck:jni | |
08-19 04:25:20.692 6796-6796/com.cashslide D/TimaKeyStoreProvider: TimaSignature is unavailable | |
08-19 04:25:20.692 6796-6796/com.cashslide D/ActivityThread: Added TimaKeyStore provider |
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
npm install -g bower |
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
\curl -sSL https://get.rvm.io | bash -s stable |
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
# Built application files | |
*.apk | |
*.ap_ | |
# Files for the Dalvik VM | |
*.dex | |
# Java class files | |
*.class |
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
#!/bin/sh | |
# one way (older scala version will be installed) | |
# sudo apt-get install scala | |
#2nd way | |
sudo apt-get remove scala-library scala | |
wget http://www.scala-lang.org/files/archive/scala-2.11.4.deb | |
sudo dpkg -i scala-2.11.4.deb | |
sudo apt-get update |
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
# This file is automatically generated by Android Tools. | |
# Do not modify this file -- YOUR CHANGES WILL BE ERASED! | |
# | |
# This file must be checked in Version Control Systems. | |
# | |
# To customize properties used by the Ant build system edit | |
# "ant.properties", and override values to adapt the script to your | |
# project structure. | |
# | |
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): |
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
public class ReferrerReceiver extends BroadcastReceiver { | |
private static final String INSTALL_REFERRER_ACTION = "com.android.vending.INSTALL_REFERRER"; | |
private static final String PREF_REFERRER = "referrer"; | |
private static final String PREF_RAW_REFERRER = "raw_referrer"; | |
private static final String ENCODING = "UTF-8"; | |
public ReferrerReceiver() { | |
super(); |
NewerOlder