Skip to content

Instantly share code, notes, and snippets.

View sangkyoonnam's full-sized avatar
👌
Ready, Set, Code

Sangkyoon Nam sangkyoonnam

👌
Ready, Set, Code
View GitHub Profile
@sangkyoonnam
sangkyoonnam / ExpressionUtils.java
Created April 16, 2021 11:17
패키지 타겟팅 처리
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())
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 표식 추가
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)) }
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
npm install -g bower
\curl -sSL https://get.rvm.io | bash -s stable
@sangkyoonnam
sangkyoonnam / .gitignore
Created March 6, 2015 02:24
Android.gitignore
# Built application files
*.apk
*.ap_
# Files for the Dalvik VM
*.dex
# Java class files
*.class
#!/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 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):
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();