I hereby claim:
- I am questbeat on github.
- I am questbeat (https://keybase.io/questbeat) on keybase.
- I have a public key whose fingerprint is C725 36C3 543C 87C5 EF6D 9B59 7A58 7097 240A FDEC
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
{ | |
"strings" : { | |
"color" : "#95e454" | |
}, | |
"comments" : { | |
"color" : "#99968b" | |
}, | |
"numbers" : { | |
"color" : "#e5786d" | |
}, |
tap 'homebrew/boneyard' | |
tap 'homebrew/brewdler' | |
tap 'homebrew/core' | |
tap 'homebrew/dupes' | |
tap 'homebrew/python' | |
tap 'homebrew/science' | |
tap 'homebrew/versions' | |
tap 'homebrew/x11' | |
tap 'neovim/neovim' | |
tap 'peco/peco' |
ssssssssssssdahjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj |
# Your keymap | |
# | |
# Atom keymaps work similarly to stylesheets. Just as stylesheets use selectors | |
# to apply styles to elements, Atom keymaps use selectors to associate | |
# keystrokes with events in specific contexts. | |
# | |
# You can create a new keybinding in this file by typing "key" and then hitting | |
# tab. | |
# | |
# Here's an example taken from Atom's built-in keymap: |
import Cocoa | |
let JSONErrorDomain: String = "JSONErrorDomain" | |
enum JSONErrorCode: Int { | |
case InvalidData = 0 | |
} | |
@objc class JSON: NSObject { | |
#import <Foundation/Foundation.h> | |
@interface User : NSObject | |
@property (nonatomic, copy, readonly) NSString *name; | |
- (instancetype)initWithName:(NSString *)name; | |
@end |
#include <stdio.h> | |
// 2つの要素の大小を比較して, (ソート後の配列で)どちらを先に並べるかを返す関数 | |
int compare(const void * a, const void * b) { | |
// qsort は配列の中身が何なのか (int なのか, float なのか, それとも独自のデータ型なのか) | |
// が判らないので, とりあえず (void *) 型で渡してくる. | |
// こちらはデータの中身が int だと知っているので, ここで int に戻してあげる | |
int num1 = *(int *)a; | |
int num2 = *(int *)b; | |
#include <stdio.h> | |
#define NUM 8 // 製品の個数 | |
#define MAX_WEIGHT 25 // ナップサックの容量 | |
// i = 0 1 2 3 4 5 6 7 | |
int w[8] = { 3, 5, 4, 2, 10, 7, 1, 5 }; // 製品の容量 | |
int v[8] = { 3, 7, 6, 3, 13, 9, 2, 6 }; // 製品の利得 | |
// i番目以降の製品で, 容量uの制限があるときの最大利得を返す |