Skip to content

Instantly share code, notes, and snippets.

View uknownothingsnow's full-sized avatar
:octocat:

Young for you uknownothingsnow

:octocat:
  • Open Source
  • singapore
View GitHub Profile
@uknownothingsnow
uknownothingsnow / n1.rb
Created June 13, 2012 02:09 — forked from dchentech/n1.rb
1、11、111、1111、……的平方
# 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)
@uknownothingsnow
uknownothingsnow / articles.dust
Created December 16, 2011 08:00 — forked from vybs/articles.html
articles
<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>
@uknownothingsnow
uknownothingsnow / form.dust
Created December 16, 2011 08:00 — forked from vybs/basic_form.html
add position
<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>
{#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">