Skip to content

Instantly share code, notes, and snippets.

View mfks17's full-sized avatar

mfks17 mfks17

View GitHub Profile
@mfks17
mfks17 / emacs.rb
Created December 31, 2011 17:37 — forked from uskanda/emacs.rb
Homebrew Emacs 23.3b for OSX Lion with native full-screen, inline patch
require 'formula'
class Emacs < Formula
url 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.3b.tar.bz2'
md5 '917ce0054ef63773078a6e99b55df1ee'
homepage 'http://www.gnu.org/software/emacs/'
if ARGV.include? "--use-git-head"
head 'git://repo.or.cz/emacs.git'
else
@mfks17
mfks17 / gist:3156847
Created July 21, 2012 19:05
勉強会の別途資料
//
// SelfCordingTableViewController.m
// MFIPhoneEnvStudy
//
// Created by mfks17 on 7/22/12.
// Copyright (c) 2012 mfks17 <[email protected]>. All rights reserved.
//
#import "SelfCordingTableViewController.h"
@@ -64,8 +64,8 @@ def _ValidateCertificateHostname(self, cert, hostname):
return False
def connect(self):
- sock = socket.create_connection((self.host, self.port))
- self.sock = ssl.wrap_socket(sock, keyfile=self.key_file,
+ httplib.HTTPConnection.connect(self)
+ self.sock = ssl.wrap_socket(self.sock, keyfile=self.key_file,
certfile=self.cert_file,
cert_reqs=self.cert_reqs,
ca_certs=self.ca_certs)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>homebrew.mxcl.jenkins</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/java</string>
<string>-Xms512m</string>
if which swiftlint >/dev/null; then
swiftlint
else
echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
fi
#!/bin/sh
UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal
# make sure the output directory exists
mkdir -p "${UNIVERSAL_OUTPUTFOLDER}"
# Step 1. Build Device and Simulator versions
xcodebuild -target "${PROJECT_NAME}" ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -sdk iphoneos BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build
#!/bin/sh
lipo -info "${PROJECT_DIR}/${PROJECT_NAME}.framework/${PROJECT_NAME}"
#!/bin/sh
export PATH=$PATH:/Users/mfks17/.rbenv/shims
jazzy \
--clean \
--author mfks17 \
--author_url https://mfks17.org \
--module-version 0.1.2 \
--xcodebuild-arguments -scheme,Ditto \
--module Ditto \
FormView
titleTextField
issueTextView
issuePlaceholder
captureImage
indicator
postButton
cancelButton
issueImageData
issueThumbnailData