Skip to content

Instantly share code, notes, and snippets.

analyse:
tags:
- xcode11
script:
- pod install
- start-simulator.sh "iPhone 11 Pro"
- run-sonar-swift.sh -sonarurl=$SONAR_URL -sonarlogin=$SONAR_TOKEN
@zippy1978
zippy1978 / test.sh
Last active December 4, 2019 15:35
Sample xcodebuild test command
xcodebuild \
-workspace MyAwesomeApp.xcworkspace \
-scheme MyAwesomeApp \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 6,OS=8.1' \
test
@zippy1978
zippy1978 / test.js
Created May 31, 2016 13:37
Sails.js websocket connection with socket.io-client
var socket = require('socket.io-client')('http://localhost:1337' + '?__sails_io_sdk_version=0.11.0');
socket.on('connect', function(){
console.log("Socket is connected !");
// Subscribe
socket.emit('post', {url: 'http://localhost:1337/subscribe',data: {key: value}}, function() {
});
@zippy1978
zippy1978 / 0_reuse_code.js
Last active September 21, 2015 07:50
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
@zippy1978
zippy1978 / pdfreport.groovy
Created August 12, 2013 22:30
A simple Groovy script using Ghost4J to perform PDF document analyzing (page count, font report, ink coverage)
// A simple Groovy script using Ghost4J to perform PDF document analyzing (page count, font report, ink coverage)
// The script expects a single argument: a PDF filename or URL
@GrabResolver(name='ghost4j', root='http://repo.ghost4j.org/maven2/snapshots/')
@Grab(group='org.ghost4j', module='ghost4j', version='0.5.1-SNAPSHOT')
import org.ghost4j.analyzer.AnalysisItem
import org.ghost4j.analyzer.FontAnalyzer
import org.ghost4j.document.PDFDocument
import org.ghost4j.analyzer.InkAnalyzer
// Parse arguments
@zippy1978
zippy1978 / MyApp.util.I18n.js
Last active December 17, 2015 04:28
Here is a singleton Sencha Touch class to handle internationalization (i18n). For more information on how to use it, please read : http://zippy1978.tumblr.com/post/36131938659/internationalization-i18n-with-sencha-touch#comment-889307386
Ext.define('MyApp.util.I18n', {
singleton : true,
config : {
defaultLanguage : 'en',
translations : {
'en' : {
'signIn' : 'Sign in',
'name' : 'Name',
'hello' : 'Hello {0} !',