Skip to content

Instantly share code, notes, and snippets.

@NikolaDespotoski
NikolaDespotoski / BottomNavigationBehavior.java
Last active December 19, 2022 06:14
Bottom Navigation behavior
/*
* BottomNavigationLayout library for Android
* Copyright (c) 2016. Nikola Despotoski (http://github.com/NikolaDespotoski).
* 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
@mihkels
mihkels / MultiConnectionSupport.java
Created March 2, 2016 13:51
Spring Boot with Letsencrypt SSL certificate support
@Configuration
public class MultiConnectionSupport {
@Value("${server.port}")
private int serverPort;
@Value("${server.http.port}")
private int httpServerPort;
@Bean
public EmbeddedServletContainerFactory servletContainer() {
@ihoneymon
ihoneymon / how-to-write-by-markdown.md
Last active May 7, 2024 15:11
마크다운(Markdown) 사용법

[공통] 마크다운 markdown 작성법

영어지만, 조금 더 상세하게 마크다운 사용법을 안내하고 있는
"Markdown Guide (https://www.markdownguide.org/)" 를 보시는 것을 추천합니다. ^^

아, 그리고 마크다운만으로 표현이 부족하다고 느끼신다면, HTML 태그를 활용하시는 것도 좋습니다.

1. 마크다운에 관하여

@rino0601
rino0601 / guide_for_carshlytics.md
Last active August 18, 2017 09:47
Crashlytics 소개 + Android Studio에서 적용하는 방법.

Crashlytics 소개

어디에 쓰는 물건?

클라이언트를 서비스할때 사용자에게 크래쉬 리포트를 부탁하면 백에 아흔아홉은 귀찮아서 안합니다. 그래서 크래쉬 리포트를 자동화를 시켜야 하는데, 이걸 또 직접 만들고 있자니 만만치 않죠. 로그 수집서버도 만들어야하고, 크래쉬 잡는 로직도 만들어야 합니다. Crashlytics는 이런 문제를 개발자의 노력없이! 해결할 수 있게 해주는 서비스 입니다. 설정 코드 몇줄만 추가해주면 끝!(그마저도 플러그인이 알아서 넣습니다.)

Android, iOS를 지원합니다.

장점

@FUT
FUT / install-redis.sh
Last active April 19, 2022 11:16
Install Redis on EC2
1. Install Linux updates, set time zones, followed by GCC and Make
sudo yum -y update
sudo ln -sf /usr/share/zoneinfo/America/Indianapolis \
/etc/localtime
sudo yum -y install gcc make
2. Download, Untar and Make Redis 2.8 (check here http://redis.io/download)
@fatihacet
fatihacet / pubsub-simple.js
Created October 15, 2011 22:02
Simple PubSub implementation with JavaScript - taken from Addy Osmani's design patterns book -
var pubsub = {};
(function(q) {
var topics = {}, subUid = -1;
q.subscribe = function(topic, func) {
if (!topics[topic]) {
topics[topic] = [];
}
var token = (++subUid).toString();
topics[topic].push({
token: token,