Skip to content

Instantly share code, notes, and snippets.

@hyuni
hyuni / Makefile
Created January 18, 2016 07:17 — forked from kanedo/Makefile
Makefile for Xcode C++ projects
#############################################################
# #
# Generic Makefile for C++ projects #
# Author: Gabriel <[email protected]> #
# Date: 2014-04-18 #
# Version: 1.0 #
# #
#############################################################
@hyuni
hyuni / 0_make-v8.md
Created January 7, 2016 12:51 — forked from chitacan/0_make-v8.md
octobersky.js v8 스터디 발표자료

make v8

v8 의 Make 를 분석해 보자.

why we need to hack makefile?

어떤 기술을 응용해 무언가를 만들고자 할 때, 필요한 것 중 하나는 그 기술이 어떻게 구성되어 있는지 확인하는 것. 각각의 구성품들을 살펴보며, 새로운 아이디어를 얻을 수 있다.(레고)

오픈소스의 구성품들은 Makefile에 모두 기술되어 있다.

@hyuni
hyuni / tunnelbroker-net.sh
Created January 7, 2016 06:47 — forked from pklaus/tunnelbroker-net.sh
tunnelbroker.net automatic tunnel IP update and tunnel setup (on Mac OS X)
#!/bin/bash
#### This script is published by Philipp Klaus <[email protected]>
#### on <http://blog.philippklaus.de/2011/05/ipv6-6in4-tunnel-via-hurricane-electric-tunnelbroker-net-automatic-ip-update-on-mac-os-x/>
#### It is originally by freese60 and modified by limemonkey.
#### Found on <http://www.tunnelbroker.net/forums/index.php?topic=287.0>
### Uncomment this line to debug the script:
#set -x
@hyuni
hyuni / better-nodejs-require-paths.md
Created January 4, 2016 06:29 — forked from branneman/better-nodejs-require-paths.md
Better local require() paths for Node.js

Better local require() paths for Node.js

Problem

When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

var Article = require('../../../models/article');

Those suck for maintenance and they're ugly.

Possible solutions

@hyuni
hyuni / gist:7709d2aec20333f25c0e
Created December 31, 2015 16:35 — forked from cridenour/gist:74e7635275331d5afa6b
Setting up Vim as your Go IDE

Setting up Vim as your Go IDE

The final IDE

Intro

I've been wanting to do a serious project in Go. One thing holding me back has been a my working environment. As a huge PyCharm user, I was hoping the Go IDE plugin for IntelliJ IDEA would fit my needs. However, it never felt quite right. After a previous experiment a few years ago using Vim, I knew how powerful it could be if I put in the time to make it so. Luckily there are plugins for almost anything you need to do with Go or what you would expect form and IDE. While this is no where near comprehensive, it will get you writing code, building and testing with the power you would expect from Vim.

Getting Started

I'm assuming you're coming with a clean slate. For me this was OSX so I used MacVim. There is nothing in my config files that assumes this is the case.

@hyuni
hyuni / test-watch.js
Last active December 19, 2015 12:17 — forked from jorangreef/test-watch.js
Test the reliability and average and max latency of the underlying OS notification system used by Node's fs.watch. Uses fsync to flush the filesystem cache to make sure these don't delay notifications (this makes little to no difference).
var Node = {
child: require('child_process'),
fs: require('fs'),
path: require('path')
};
// This will be removed and then created and then removed:
var testdirectory = 'testfswatchmisses';
if (Node.fs.remove !== undefined) throw new Error('fs.remove exists');
@hyuni
hyuni / ExpendingListView
Created November 10, 2015 12:25 — forked from sharoni474/ExpendingListView
A fix for Daniel Olshansky's DevByte example "ListView Expanding Cells Animation"- collapsing part, when last item is visible from top
int offset = computeVerticalScrollOffset();
int range = computeVerticalScrollRange();
int extent = computeVerticalScrollExtent();
int leftoverExtent = range - offset - extent;
// In Case Items does not fill the screen (More accurate, if last
// Item is reachable from offset 0
boolean isfillingScreen = getBottom() - height +yDelta< getHeight();
// added line
@hyuni
hyuni / ExpandingListView
Created November 10, 2015 12:24 — forked from sh0rtshift/ExpandingListView
Fixes for Daniel Olshansky's DevByte example "ListView Expanding Cells Animation" (lines 130-132), also adds compatibility back to API 11. http://www.youtube.com/watch?v=mwE61B56pVQ http://developer.android.com/shareables/devbytes/ListViewExpandingCells.zip Fixes include using ViewCompat for v.hasTransientState() Hacks for getTopAndBottomTransla…
/*
* Copyright (C) 2013 The Android Open Source Project
*
* 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
@hyuni
hyuni / 0_reuse_code.js
Created September 30, 2015 02:45
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@hyuni
hyuni / mobile_development.md
Last active September 15, 2015 06:15 — forked from carocad/mobile_development.md
General overview of the most prominent Operating systems for Smartphones and Frameworks available for cross-platform development

Smartphones app-development overview - as of 06.2015

Marketshare

Global marketshare

Smartphones operating systems overview

Android - Google

  • License:
    • OS: Apache v2
  • kernel: LGPL v3