Skip to content

Instantly share code, notes, and snippets.

View uzysjung's full-sized avatar

Jaehoon Jung uzysjung

View GitHub Profile
@firejune
firejune / .eslintrc
Created January 25, 2016 08:31
ESLint
{
/**
* ECMA 요구사항
*/
"ecmaFeatures": {
"jsx": true,
"modules": true,
"experimentalObjectRestSpread": true
},
@lrdiv
lrdiv / nextlot.scpt
Created December 6, 2015 07:19
Scripting iTerm 2
(* Note: `cdnr` and `cdnem` are custom aliases for this project *)
tell application "iTerm"
(* Creates a new window for our project *)
set newWindow to (create window with default profile)
select first window
tell the current window
(* cd to rails directory and start server *)
activate current session
@vgeshel
vgeshel / function.js
Last active February 9, 2022 09:19
AWS Lambda function for forwarding SNS notifications to Slack
console.log('Loading function');
const https = require('https');
const url = require('url');
// to get the slack hook url, go into slack admin and create a new "Incoming Webhook" integration
const slack_url = 'https://hooks.slack.com/services/...';
const slack_req_opts = url.parse(slack_url);
slack_req_opts.method = 'POST';
slack_req_opts.headers = {'Content-Type': 'application/json'};
@dbalan
dbalan / iTerm.md
Last active January 13, 2021 12:55
iterm cheetsheet

iTERM2 Cheetsheet

Fancy Utilities

  1. Paste history: ⌘ + Shift + h
  2. Instant Replay: ⌘ + Opt + b
  3. Mouseless selection: ⌘ + f; Tab
  4. Smart select: Quad-Click
  5. Rectangle Select: ⌘ + Opt + Select
  6. Open link (URL/File): ⌘ + Click
tell application "AppleScript Editor"
open POSIX file "/path/to/some.scpt"
save front document as "application" in POSIX file "/path/to/any.app"
quit
end
@alanzeino
alanzeino / Strong UINavigationBar colour
Last active April 26, 2020 23:34
Combining a strong colour with a blurred and translucent UINavigationBar in iOS 7.
// cheers to @stroughtonsmith for helping out with this one
UIColor *barColour = [UIColor colorWithRed:0.13f green:0.14f blue:0.15f alpha:1.00f];
UIView *colourView = [[UIView alloc] initWithFrame:CGRectMake(0.f, -20.f, 320.f, 64.f)];
colourView.opaque = NO;
colourView.alpha = .7f;
colourView.backgroundColor = barColour;
self.navigationBar.barTintColor = barColour;
@uzysjung
uzysjung / UzysDebugLog.h
Last active December 19, 2015 12:19
Enable NSLog in Debug mode.
//
// DebugLog.h
// Uzys DebugLog
//
// Created by UzysJung on 13. 2. 25..
// Copyright (c) 2013년 Uzys. All rights reserved.
//
/*
How to use
@mipstian
mipstian / UICollectionView+ReloadItemsAnimated.h
Created January 19, 2013 10:53
UICollectionView category to disable animation on reloadItemsAtIndexPaths:
#import <UIKit/UIKit.h>
@interface UICollectionView (ReloadItemsAnimated)
- (void)reloadItemsAtIndexPaths:(NSArray *)indexPaths animated:(BOOL)animated;
@end
@paul-delange
paul-delange / GIFDownloader.h
Created November 18, 2012 09:10
Convert remote GIF into something MPMoviePlayerController can use
//
// GIFDownloader.h
// TheJoysOfCode
//
// Created by Bob on 29/10/12.
// Copyright (c) 2012 Tall Developments. All rights reserved.
//
#import <Foundation/Foundation.h>
@CristinaSolana
CristinaSolana / gist:1885435
Created February 22, 2012 14:56
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream