Skip to content

Instantly share code, notes, and snippets.

View cSquirrel's full-sized avatar

Marcin Maciukiewicz cSquirrel

View GitHub Profile

Keybase proof

I hereby claim:

  • I am csquirrel on github.
  • I am ciukes (https://keybase.io/ciukes) on keybase.
  • I have a public key ASB2xZ0gBNiAgmkz4TAGeeFgxzssXAWyhRW1FPFmKoHfEgo

To claim this, I am signing this object:

@cSquirrel
cSquirrel / update-bridging-header.rb
Last active May 26, 2016 11:18
Update ObjC/Swift bridging header
#!/usr/bin/ruby
require 'FileUtils'
require 'tempfile'
HEADER_TO_UPDATE = ARGV[0]
FOLDER_TO_SCAN = ARGV[1]
p "Bridging header to update: #{HEADER_TO_UPDATE}"
p "Folder to scan for ObjC headers: #{FOLDER_TO_SCAN}"
/**
Problem
*/
class Parent {
var children:Array<String>
init() {
self.children = discoverChildren() // <-- error: method call 'discoverChildren' before all store properties are initialized
class MyClass : NSObject {
var anArray:Array<String>?
func printDebug() -> String {
if (anArray != nil) {
return "Array has \(anArray!.count) element(s)"
} else {
return "No array"
class MyClass : NSObject {
var anArray:Array<String>?
func printDebug() -> String {
if (anArray != nil) {
return "Array has \(anArray!.count) element(s)"
} else {
return "No array"
1. Facory reset
1. flashing blue - core is in listening mode
2. Setup WiFi
1. spark setup wifi
SSID: ciukesy
Security 0=unsecured, 1=WEP, 2=WPA, 3=WPA2: 2
Wifi Password: internet43
Attempting to configure wifi on /dev/cu.usbmodemfd131
I said: w