Skip to content

Instantly share code, notes, and snippets.

@kimdwkimdw
kimdwkimdw / kakao.link.js
Created May 4, 2012 15:55
kakaolink-mobile-web refactoring
@cblunt
cblunt / MaskedImageView.java
Created July 25, 2012 11:22
Android MaskedImageView - Uses the Background resource as a mask for the src bitmap. If set, foregroundBitmap is overlaid on top of the masked image.
package com.example;
import android.content.Context;
import android.graphics.*;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.NinePatchDrawable;
import android.util.AttributeSet;
import android.util.Log;
import android.widget.ImageView;
@emil2k
emil2k / Connectivity.java
Last active December 22, 2023 06:03
Android utility class for checking device's network connectivity and speed.
/*
* Copyright (c) 2017 Emil Davtyan
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
@kamituel
kamituel / GpxParser.java
Last active July 13, 2017 09:58
Parsing GPX files (Android compatible).
package pl.kamituel.gpx;
import java.io.IOException;
import java.io.InputStream;
public class GpxParser {
private InputStream mIs = null;
private StringBuilder mStringBuilder = new StringBuilder();
public GpxParser (InputStream is) {
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="kr.pe.kingori.silgeupgum">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
@nickoneill
nickoneill / Usage
Last active May 19, 2016 00:40
Post to Slack from Parse Cloud Code
var Slack = require('cloud/slack.js');
var slack = new Slack('https://hooks.slack.com/services/INCOMING_SLACK_WEBHOOK_URL');
return slack.send({text: msg}).then(function(){
// success
}, function(error){
// error
});
@gldraphael
gldraphael / AppCompatPreferenceActivity.java
Last active May 22, 2019 17:19
Abstract base class for the SettingsActivtiy which implements and proxies the necessary calls to be used with AppCompat, and the Settings Activity that inflates a toolbar at runtime.
package com.example.activities;
import android.content.res.Configuration;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatDelegate;
import android.support.v7.widget.Toolbar;
@LeoHeo
LeoHeo / var-let-const.md
Last active July 19, 2024 11:52
javascript var, let, const 차이점

var, let, const 차이점은?

  • varfunction-scoped이고, let, constblock-scoped입니다.

  • function-scopedblock-scoped가 무슨말이냐?

var(function-scoped)

jsfiddle 참고주소

@ahmetb
ahmetb / gcrgc.sh
Last active May 10, 2024 15:17
Script to clean up Google Container Registry images pushed before a particular date
#!/bin/bash
# Copyright © 2017 Google Inc.
# 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
@youminkim
youminkim / Crawling Bills.ipynb
Last active March 9, 2020 02:15
국회 표결정보 긁어오기
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.