Skip to content

Instantly share code, notes, and snippets.

tell application "System Preferences"
activate
set the current pane to pane id "com.apple.preferences.internetaccounts"
get the name of every anchor of pane id "com.apple.preferences.internetaccounts"
reveal anchor "com.apple.twitter.iaplugin" of pane id "com.apple.preferences.internetaccounts"
end tell
becomes this obejctive c code:
SystemPreferencesApplication *systemPreferences = [SBApplication applicationWithBundleIdentifier:@"com.apple.systempreferences"];
SystemPreferencesPane *pane = (SystemPreferencesPane *) [[systemPreferences panes] objectWithID:@"com.apple.preferences.internetaccounts"];
{
"Version":"2008-10-17",
"Statement":[{
"Sid":"AllowPublicRead",
"Effect":"Allow",
"Principal": {
"AWS": "*"
},
"Action":["s3:GetObject"],
"Resource":["arn:aws:s3:::BOP_Buildling_Selector/*"
def execute_composite
image_size = @package.resolution.key unless @package.resolution.key.super?
@percentage = self.percentage_by_size
stage_image = "#{Rails.public_path}/#{@stage.stage_image.url(image_size)}"
position = "+250+380"
formula = get_formula(@percentage)
comp_string = size_rules(@percentage)
user_image = @productshot.user_image_path
@jpg_image = user_image.gsub(user_image.split('/')[-1], user_image.split('/')[-1].gsub(/(\.jpe?g|\.png)/, '') << "_temporal.png")
glare_file = @productshot.stage.image_type_id == 6 ? "#{Rails.public_path}/#{@stage.wide_glare_image.url(image_size)}" : "#{Rails.public_path}/#{@stage.glare_image.url(image_size)}"
stages = []
Stage.all.each do |stage|
image = stage.stage_image.path
result = %x[identify -format "%[profile:icc]\n" #{image}]
if result != "\n"
if stage.stage_image.file
file = stage.stage_image.file.filename
stages << [stage.slug, file]
end
end
<!-- Start of StatCounter Code for Default Guide -->
<script type="text/javascript">
var sc_project=9509747;
var sc_invisible=1;
var sc_security="d4073cf6";
var scJsHost = (("https:" == document.location.protocol) ?
"https://secure." : "http://www.");
document.write("<sc"+"ript type='text/javascript' src='" +
scJsHost+
"statcounter.com/counter/counter.js'></"+"script>");
<style type="text/css">
.myButton {
-moz-box-shadow:inset 0px 1px 0px 0px #cf866c;
-webkit-box-shadow:inset 0px 1px 0px 0px #cf866c;
box-shadow:inset 0px 1px 0px 0px #cf866c;
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #d0451b), color-stop(1, #b71c16));
background:-moz-linear-gradient(top, #d0451b 5%, #b71c16 100%);
background:-webkit-linear-gradient(top, #d0451b 5%, #b71c16 100%);
<script type="text/javascript" src="http://enroll.empowerkit.com/include?client=8"></script>
<style type="text/css">
.myButton {
-moz-box-shadow:inset 0px 1px 0px 0px #cf866c;
-webkit-box-shadow:inset 0px 1px 0px 0px #cf866c;
box-shadow:inset 0px 1px 0px 0px #cf866c;
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #d0451b), color-stop(1, #b71c16));
background:-moz-linear-gradient(top, #d0451b 5%, #b71c16 100%);
background:-webkit-linear-gradient(top, #d0451b 5%, #b71c16 100%);
.myButton {
-moz-box-shadow:inset 0px 1px 0px 0px #cf866c;
-webkit-box-shadow:inset 0px 1px 0px 0px #cf866c;
box-shadow:inset 0px 1px 0px 0px #cf866c;
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #d0451b), color-stop(1, #b71c16));
background:-moz-linear-gradient(top, #d0451b 5%, #b71c16 100%);
background:-webkit-linear-gradient(top, #d0451b 5%, #b71c16 100%);
<!-- Google Code for Purchase Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 995760263;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "6VhVCOmVgQUQh7Ho2gM";
if ({{ subtotal_price }}) { var google_conversion_value = {{ subtotal_price | money_without_currency }}; }
/* ]]> */