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
sil_stage canonical | |
import Builtin | |
import Swift | |
import SwiftShims | |
// static CommandLine._argc | |
sil_global [fragile] @_TZvOs11CommandLine5_argcVs5Int32 : $Int32 | |
// globalinit_33_FD9A49A256BEB6AF7C48013347ADC3BA_token4 |
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 Game | |
def initialize() | |
@turn_index = 0 | |
@players = [Player.new(1), Player.new(2)] | |
@players.first.set_opponent(@players.last) | |
@players.last.set_opponent(@players.first) | |
end | |
def take_turn |
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
import Foundation | |
public class Signpost { | |
static func start( code:UInt32, arg1:UInt = 0, arg2:UInt = 0, arg3:UInt = 0, arg4:UInt = 0 ) -> Int32 { | |
if #available(iOS 10.0, *) { | |
return kdebug_signpost_start(code,arg1,arg2,arg3,arg4); | |
} else { | |
return 0; | |
} | |
} |
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
package org.raml; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.InputStream; | |
import java.util.List; | |
import org.raml.parser.rule.ValidationResult; | |
import org.raml.parser.visitor.RamlValidationService; |
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
public class School { | |
private final String name; | |
private final String nickname; | |
public School(String name, String nickname) { | |
this.name = name; | |
this.nickname = nickname; | |
} | |
@Override |
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
require "rubygems" | |
require "appscript" | |
include Appscript | |
class SystemEvents | |
def initialize( &block ) | |
@app = app( "System Events" ) | |
launch | |
instance_eval &block |
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
preprocess do |file| | |
file.modified_time = File.mtime( file.name ) | |
modified_date = Date.parse modified_time.to_s | |
file.days_since_modified = Date.today - modified_date | |
file.months_since_modified = ( Date.today.year - modified_date.year ) * 12 + (Date.today.month - modified_date.month) | |
end | |
category "Ignoring directories" do | |
match { |file| File.directory?(file.name) } |