Skip to content

Instantly share code, notes, and snippets.

View mk2's full-sized avatar
💭
Internet

Haruka Asakura mk2

💭
Internet
View GitHub Profile
@Gab-km
Gab-km / github-flow.ja.md
Last active February 23, 2026 01:59 — forked from juno/github-flow.ja.md
GitHub Flow (Japanese translation)
@P7h
P7h / IntelliJ_IDEA__Perf_Tuning.txt
Last active October 16, 2025 02:52
Performance tuning parameters for IntelliJ IDEA. Add these params in idea64.exe.vmoptions or idea.exe.vmoptions file in IntelliJ IDEA. If you are using JDK 8.x, please knock off PermSize and MaxPermSize parameters from the tuning configuration.
-server
-Xms2048m
-Xmx2048m
-XX:NewSize=512m
-XX:MaxNewSize=512m
-XX:PermSize=512m
-XX:MaxPermSize=512m
-XX:+UseParNewGC
-XX:ParallelGCThreads=4
-XX:MaxTenuringThreshold=1
@ashikawa
ashikawa / memcache.md
Created January 7, 2013 09:27
コンソールで memcache と戦う方法
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active April 7, 2026 15:44
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@p1nox
p1nox / postgresql_configuration_on_ubuntu_for_rails.md
Last active September 5, 2025 05:28
PostgreSQL configuration without password on Ubuntu for Rails

Abstract

You could have postgre installed on localhost with password (or without user or password seted after instalation) but if we are developing we really don't need password, so configuring postgre server without password for all your rails project is usefull.

Install Postgre packages

  • postgresql
  • postgresql-client
  • libpq-dev
@flarb
flarb / MapUtils.cs
Created February 18, 2013 20:50
A port of this PHP code: http://stackoverflow.com/questions/1763917/google-static-maps-move-maps-with-a-finger To C# in Unity3D to convert google maps lat/lng to pixel coordinates and vice versa.
using UnityEngine;
using System.Collections;
public class MapUtils {
static float GOOGLEOFFSET = 268435456f;
static float GOOGLEOFFSET_RADIUS = 85445659.44705395f;//GOOGLEOFFSET / Mathf.PI;
static float MATHPI_180 = Mathf.PI/180f;
static private float preLonToX1 = GOOGLEOFFSET_RADIUS * (Mathf.PI/180f);
@ympbyc
ympbyc / FunctionalJs.md
Last active November 2, 2024 00:52
Functional JavaScript

Functional JavaScript

2013 Minori Yamashita ympby@gmail.com

-- ここにあなたの名前を追記 --

目次

@hlidotbe
hlidotbe / insert.rb
Created May 16, 2013 07:49
Closure Table in redis
def insert(item, parent, comment)
cid = @redis.incr 'comments_counter'
parent_path = @redis.zrangebyscore("asc:#{item}:#{parent}", "0", "+inf", with_scores: true) if parent
parent_path ||= []
@redis.multi do |multi|
multi.set "comments:#{cid}", {
data: comment,
item: item,
date: Time.now,
@julianshen
julianshen / CircleTransform.java
Last active November 12, 2025 12:39
CircleTransform for Picasso
/*
* Copyright 2014 Julian Shen
*
* 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
@mk2
mk2 / setup_devenv_on_windows.md
Last active February 17, 2021 09:27
Wndowsにおける快適な開発環境のセットアップ

Windows上における快適な開発環境のセットアップについて

Windows上で快適な開発環境をセットアップするためのメモです。

更新履歴

更新日 更新内容
2014-02-23 Sleipnir4の部分を修正

ソフトウェア