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
{#profile_skill} | |
<div class="section" id="profile-skills" style="display:block"> | |
<div class="header"> | |
<h2>{@pre:i18n text="Skills"}</h2> | |
</div> | |
{?skills} {! we still want to display the Skills heading, even if the number of skills is zero !} | |
<div class="content"> | |
<ol class="skills" id="skills-list"> | |
{#skills} | |
<li class="competency show-bean"> |
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
<div class="guided-edit"> | |
{>_close_action/} | |
{<closeText}{i18n_text_plain__close}{/closeText} | |
{?firstTaskTitleString} | |
<h1>{firstTaskTitleString|s}</h1> | |
{/firstTaskTitleString} | |
<form class="standard-form" id="{name}_id" name="{name}" method="{method}" action="{action}"> | |
<fieldset> | |
<legend>{i18n_text_plain__what_is_your_industry}</legend> |
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
<div id="today_feed" class="grid unit_8"> | |
<div id="today_feed-updates" class="unit_8 alpha omega"> | |
{>"Polling"/} | |
</div> | |
<div id="today_feed-articles" class="unit_8 alpha omega"> | |
<ul class="articles"> | |
{#content}{#news_container_section}{#newsList} | |
{>"Article"/} | |
{/newsList}{/news_container_section}{/content} | |
</ul> |
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
# http://www.bjt.name/2011/06/beautiful-math-triangle-r/ | |
proc do |line| | |
(1..line).each do |num| | |
puts "#{' '*(line - num)}#{('1'*num).to_i**2}" | |
end | |
end.call((ARGV[0] || 36).to_i) |
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
/* MODELS */ | |
var ProjectCollection = function(projects){ | |
var self = this; | |
var projects = projects; | |
this.create = function(attrs){ | |
projects.push(attrs) | |
// might want to a bit of ajax here |
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 python | |
# encoding: utf-8 | |
""" | |
author: [email protected] | |
""" | |
import os | |
import random | |
import re | |
class DataPrepare(object): |
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
function doClick(e) { | |
alert('Clicked!'); | |
} | |
// Remove the event listener like this: | |
// $.myWidget.off("click", doClick); | |
$.index.open(); |
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
save_button.addEventListener('click', ()-> | |
if Ti.Filesystem.isExternalStoragePresent | |
save_image = Ti.Filesystem.getFile(path).read() | |
new_path = Titanium.Filesystem.externalStorageDirectory + Date.now().toString() + ".png" | |
f = Ti.Filesystem.getFile(new_path) | |
result = f.write(save_image) | |
unless result | |
return null |
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
# 0. Make sure you have Ruby 1.9.3 installed, and optionally RVM and PostgreSQL | |
# 0.2 If you are on the Mac, make sure you have a c compiler by installing XCode Command Line Tools or gcc4.2 with homebrew | |
# https://github.com/mxcl/homebrew/wiki/Custom-GCC-and-cross-compilers | |
# 0.5 Make sure you have bundler version ~> 1.2 as Rails depends on it | |
gem install bundler | |
# 1. Get edge Rails source (master branch) | |
git clone https://github.com/rails/rails.git |
OlderNewer