init
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| interstitial = SASInterstitialView.alloc.initWithFrame(UIScreen.mainScreen.bounds, | |
| loader:SmartAdServerViewLoaderActivityIndicatorStyleBlack, | |
| hideStatusBar:true) | |
| interstitial.delegate = self | |
| interstitial.loadFormatId(7136, | |
| pageId:"283008", | |
| master:true, | |
| target:nil, | |
| timeout:10.0) | |
| self.view.addSubview(interstitial) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #example | |
| class Request | |
| attr_accessor :delegate | |
| def self.initWithPath(*args, &block) | |
| instance = allocate | |
| instance.myInitializer(*args, &block) | |
| instance | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def initWithPath(path, andMethod:method) | |
| # Le premier paramètre est nommé par la fin de la première partie | |
| # de la méthode, donc déjà y a pas de def f(a:b). | |
| # Ensuite dans WithPath et andMethod ne sont que des | |
| # noms qui ne sont pas réutilisés dans le code. | |
| # De ce que je peux voir la syntaxe ruby2.0 : | |
| def init_with(path: "/foo", method: :get) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Pod::Spec.new do |s| | |
| s.name = "MoodstocksSDK" | |
| s.version = "1.0.0" | |
| s.summary = "MoodstocksSDK..." | |
| s.description = "MoodstocksSDK...." | |
| s.homepage = "www.moodstocks.com" | |
| s.license = { :type => 'a voir', :file => 'LICENSE' } | |
| s.author = { "Moodtoscks" => "Moodtoscks team" } | |
| s.source = { :git => '[email protected]:jjaffeux/moodstocks-sdk-pod.git' } | |
| s.preserve_paths = 'libmoodstocks-sdk.a' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # gem install savon | |
| require 'savon' | |
| login = '' | |
| password = '' | |
| cloud = '' | |
| destination = '' | |
| client = Savon.client do | |
| wsdl "http://vocalgateway.mediakiosque.com/ws/wsdl/HiconnectCloud.wsdl" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class AppDelegate | |
| def application(application, didFinishLaunchingWithOptions:launchOptions) | |
| notificationProc = proc {|message, refCon| | |
| p "MIDI Notify, messageId=#{message[0].messageID}," | |
| } | |
| midiNotification = Pointer.new(MIDINotification.type) | |
| midiClient = Pointer.new(MIDIClientRef.type) | |
| MIDIClientCreate("testcore", notificationProc, nil, midiClient) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| apt-get -y update | |
| apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev make | |
| cd /tmp | |
| wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p327.tar.gz | |
| tar -xvzf ruby-1.9.3-p327.tar.gz | |
| cd ruby-1.9.3-p327/ | |
| ./configure --prefix=/usr/local | |
| make | |
| make install |