Skip to content

Instantly share code, notes, and snippets.

@ssinss
ssinss / gist:144c0bb2e4319cb7d0924b89bd837e4b
Created February 15, 2017 10:01
엔턴쉽 채용 공고.md
백엔드 Restful API 개발자 0명
1. 현재 팀에서 사용하는 기술 및 툴
- Typescript
- node.js + express
- Amazon Web Service (EC2, RDS, S3)
- Mysql / sequelize
- Github / Slack
2. 하게 될 일
- 현재 개발되어 있는 API 서버 유지보수 및 새 기능 구현

Keybase proof

I hereby claim:

  • I am ssinss on github.
  • I am ssinss (https://keybase.io/ssinss) on keybase.
  • I have a public key whose fingerprint is EA7B 24EF D143 1C84 170B 1263 2F06 F1E5 FA4A B545

To claim this, I am signing this object:

@ssinss
ssinss / gist:fb6d292ce52815b4220c
Created January 20, 2015 10:49
get extended facebook access token
import facebook
SHORT_ACCESS_TOKEN = "SHORT_ACCESS_TOKEN"
APP_ID = "APP_ID"
APP_SECRET = "APP_SECRET"
graph = facebook.GraphAPI(SHORT_ACCESS_TOKEN)
extended_access_token = graph.extend_access_token(APP_ID, APP_SECRET)
print extended_access_token
@ssinss
ssinss / EndlessRecyclerOnScrollListener.java
Last active January 19, 2024 08:52
Endless RecyclerView OnScrollListener
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
public abstract class EndlessRecyclerOnScrollListener extends RecyclerView.OnScrollListener {
public static String TAG = EndlessRecyclerOnScrollListener.class.getSimpleName();
private int previousTotal = 0; // The total number of items in the dataset after the last load
private boolean loading = true; // True if we are still waiting for the last set of data to load.
private int visibleThreshold = 5; // The minimum amount of items to have below your current scroll position before loading more.
int firstVisibleItem, visibleItemCount, totalItemCount;
@ssinss
ssinss / ci_sql_eval.php
Last active December 16, 2015 05:59
code igniter 에서 sql 문 escape 없이 쓰기
$data = array('name' => $name, 'count' => $count);
$this->db->set('updated_at', 'NOW()', false);
$this->db->insert('mytable');
@ssinss
ssinss / asynctask.java
Last active February 22, 2022 12:50
loopj async http 오버라이딩폼
AsyncHttpClient client = new AsyncHttpClient();
client.get("http://www.google.com", new JsonHttpResponseHandler() {
@Override
public void onStart() {
// Initiated the request
}
@Override
public void onSuccess(JSONObject o) {
// 또는 JSONArray a
@ssinss
ssinss / php_mb_strlen.php
Created April 15, 2013 11:23
utf-8 일 경우에 글자수 체크
if (mb_strlen($name, 'UTF-8') < 3){
return true;
}
<?php die();
/**
* Add you custom models here that you are loading in your controllers
*
* <code>
* $this->site_model->get_records()
* </code>
* Where site_model is the model Class
*