This file contains 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 Stupid{ | |
public void DoSomething(){ | |
} | |
} |
This file contains 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 Stupid{ | |
public void DoSomething(){ | |
} | |
} |
This file contains 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 expand_template( template_file, output_file) | |
puts "Building #{output_file}" | |
template = File.open(template_file, "r") | |
output = File.open(output_file, "w") | |
template.each_line do |template_line| | |
template_line.gsub(/@([^@]+)@/) do |token| | |
value = @config[$1.downcase] | |
unless value.nil? |
This file contains 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
@config = YAML::load_file "local.properties.yml" |
This file contains 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 'yaml' | |
require 'fileutils' | |
@config = YAML::load_file "local.properties.yml" | |
desc "Building config files from templates..." | |
task :expand_template_files do | |
expand_template(WEBSITE_CONFIG_TEMPLATE, WEBSITE_SRC + "web.config") | |
end |
This file contains 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 'Albacore' | |
require 'fileutils' | |
class DeepCopy | |
include Logging | |
attr_accessor :source_dir, :dest_dir, :extensions, :includes, :excludes | |
def initialize | |
super() |
This file contains 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 'fileutils' | |
require 'Rake' | |
class SmartFileList < Rake::FileList | |
attr_accessor :base_path | |
def initialize(base_path) | |
super() | |
@base_path = base_path.sub(%r{/$}, "") | |
end |
This file contains 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 MyViewController: UIViewController{ | |
//DO THIS | |
UIAlertView alertView; // class level variable | |
public void ShowAlertView(){ | |
// NOT THIS | |
// var alertView = new UIAlertView; // This is a local variable | |
alertView = new UIAlertView(); | |
} |
This file contains 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
using System; | |
using MonoTouch; | |
using MonoTouch.UIKit; | |
using System.Drawing; | |
using MonoTouch.Foundation; | |
using System.Text; | |
using System.IO; | |
namespace MRB | |
{ |
This file contains 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
dc = DeepCopy.new | |
dc.extensions = ["dll", "aspx", "ascx", "svc", "asmx", "ashx", "asax", "config", "xap", | |
"resx", "jpg", "gif", "png", "css", "js", "swf", "lic", "xml", "master", | |
"dic", "txt", "htm"] | |
dc.excludes = ["obj/**", "upload/**"] | |
dc.source_dir = web_src | |
dc.dest_dir = deploy_target | |
dc.copy |
OlderNewer