This file contains hidden or 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
<!-- Samsung --> | |
<uses-permission android:name="com.sec.android.provider.badge.permission.READ" /> | |
<uses-permission android:name="com.sec.android.provider.badge.permission.WRITE" /> | |
<!-- Sony --> | |
<uses-permission android:name="com.sonyericsson.home.permission.BROADCAST_BADGE" /> | |
<!-- HTC --> | |
<uses-permission android:name="com.htc.launcher.permission.READ_SETTINGS" /> | |
<uses-permission android:name="com.htc.launcher.permission.UPDATE_SHORTCUT" /> |
This file contains hidden or 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
ko: | |
datetime: | |
distance_in_words: | |
less_than_x_seconds: "%{count}초 전" | |
less_than_x_minutes: "%{count}분 전" | |
half_a_minute: "30초 전" | |
x_minutes: "%{count}분 전" | |
about_x_hours: "%{count}시간 전" | |
x_days: "%{count}일 전" | |
about_x_months: "%{count}달 전" |
This file contains hidden or 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 'sinatra' | |
$pwd = ENV['PWD'] | |
configure do | |
set :server, :puma | |
set :root, File.dirname(__FILE__) | |
set :port, 7777 | |
end |
This file contains hidden or 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
import React, { Component } from 'react'; | |
import { AppRegistry, View, TouchableHighlight, Text, Alert } from 'react-native'; | |
// corporate ipsum > lorem ipsum | |
var alertMessage = 'Credibly reintermediate next-generation potentialities after goal-oriented ' + | |
'catalysts for change. Dynamically revolutionize.'; | |
class AlertApp extends Component { | |
constructor(props) { | |
super(props) |
This file contains hidden or 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
# check pg backup schedules | |
$ heroku pg:backups schedules | |
# unschedule | |
$ heroku pg:backups unschedule DATABASE_URL | |
# download backup file | |
$ curl -o latest.dump `heroku pg:backups public-url` | |
# restore db-backup-file |
This file contains hidden or 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
# google plus login | |
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore -list -v | |
# facebook login | |
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64 |
This file contains hidden or 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
# "Can't verify CSRF token authenticity" for json format | |
class ApplicationController < ActionController::Base | |
protect_from_forgery with: :null_session, only: Proc.new { |c| c.request.format.json? } | |
end |
This file contains hidden or 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
$ convert [Input_file] [output_file] | |
# convert input.mp4 output.gif |
This file contains hidden or 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
Intent insta_intent = getPackageManager().getLaunchIntentForPackage("com.instagram.android"); | |
insta_intent.setComponent(new ComponentName("com.instagram.android", "com.instagram.android.activity.UrlHandlerActivity")); | |
insta_intent.setData(Uri.parse("https://www.instagram.com/explore/tags/tech/")); // 해시태그 주소 넣기 | |
startActivity(insta_intent); |
This file contains hidden or 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
$ ffprobe -select_streams v -show_streams -count_frames [input file] | |
$ ffmpeg -i [input_file] | |
# fps * duration_time |