Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
# Xcode Crap | |
build/* | |
*.pbxuser | |
*.mode2v3 | |
*.mode1v3 | |
*.xcworkspace | |
xcuserdata | |
# OS Crap | |
.DS_Store |
cd ~ | |
mkdir bin | |
echo "export PATH=~/bin:$PATH" >> ~/.profile | |
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl | |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
Obj-c | |
find . -iname "*.m" -o -iname "*.h" -not -path "*/Pods/*" -not -path "*ThirdParty*" -exec wc -l '{}' + | |
Swift: | |
find . -iname "*.swift" -not -path "*/Pods/*" -not -path "*/Carthage/*" -not -path "*submodules*" -exec wc -l '{}' + |
// | |
// Hacky script to convert lazy loaded closures into private instance functions | |
// The script ignores Pods, Carthage and build folders, and only looks for | |
// .swift files | |
// This doesn't work on all cases, and may break things. Be warned ⚠️ | |
// | |
// Usage: | |
// node delazy.js <folder path> | |
// |
var Pushover = require('node-pushover'); | |
var moment = require('moment'); | |
var request = require('request'); | |
// Fill out with your secrets | |
var secrets = { | |
pushover: { | |
token: '', | |
user: '' | |
}, |
extension UIImage { | |
convenience init?(inCurrentBundleNamed: String) { | |
class BundleClass { } | |
self.init(named: inCurrentBundleNamed, in: Bundle(for: BundleClass.self), compatibleWith: nil) | |
} | |
} |
#!/bin/sh | |
# Copyright (C) Pierre d'Herbemont, 2010 | |
# Copyright (C) Felix Paul Kühne, 2012-2015 | |
set -e | |
BUILD_DEVICE=yes | |
BUILD_SIMULATOR=yes | |
BUILD_STATIC_FRAMEWORK=no | |
SDK=`xcrun --sdk iphoneos --show-sdk-version` |
// --- vibrateDevice--------------- | |
value nme_vibrate_device() | |
{ | |
#ifdef WEBOS | |
VibrateDevice(); | |
return alloc_null(true); | |
#enif | |
} | |
DEFINE_PRIM(nme_vibrate_device,0); |