Skip to content

Instantly share code, notes, and snippets.

View HashNuke's full-sized avatar
💭
Life happened. I now have varied interests. I may be slow to respond.

Akash Manohar HashNuke

💭
Life happened. I now have varied interests. I may be slow to respond.
View GitHub Profile
{
{I have|I've} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any interesting article like yours. {It's|It
is} pretty worth enough for me. {In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners} and bloggers made good content as
you did, the {internet|net|web} will be {much more|a lot more}
useful than ever before.|
I {couldn't|could not} {resist|refrain from} commenting. {Very well|Perfectly|Well|Exceptionally well} written!|
{I will|I'll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch}
your {rss|rss feed} as I {can not|can't} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service. Do {you have|you've} any?
{Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may just|may|could} subscribe.
Thanks.|
updateSize: function(width, height){
// get current center
var centerX = this.pos.x + this.size.x/2,
centerY = this.pos.y + this.size.y/2;
// set new width / height
this.size.x = width;
this.size.y = height;
@HashNuke
HashNuke / lace-usage
Created September 14, 2011 17:26
Semantic CSS with Twitter's Bootstrap
/* Next time you want to make a row or column,
use the .grid_row or .grid_col(n) mixin and be happy!
*/
.post {
.grid_row;
.post_date {
.grid_cols(3);
}
@HashNuke
HashNuke / .env
Created September 6, 2011 09:05
Foreman .env file
GIRLFRIEND_VERSION=0.9beta
GIRLFRIEND_PATH=/dev/null
akashmanohar:cas-auth-app akashmanohar$ rails c
Loading development environment (Rails 3.1.0.rc1)
script/rails: No such file or directory - rvm tools identifier
load error: /Users/akashmanohar/.rvm/rubies/ruby-1.9.2-p180/.irbrc
NoMethodError: undefined method `strip' for nil:NilClass
/Users/akashmanohar/.rvm/gems/ruby-1.9.2-p180@rails31/gems/activesupport-3.1.0.rc1/lib/active_support/whiny_nil.rb:48:in `method_missing'
/Users/akashmanohar/.rvm/scripts/irbrc.rb:40:in `<top (required)>'
/Users/akashmanohar/.rvm/gems/ruby-1.9.2-p180@rails31/gems/activesupport-3.1.0.rc1/lib/active_support/dependencies.rb:237:in `require'
/Users/akashmanohar/.rvm/gems/ruby-1.9.2-p180@rails31/gems/activesupport-3.1.0.rc1/lib/active_support/dependencies.rb:237:in `block in require'
/Users/akashmanohar/.rvm/gems/ruby-1.9.2-p180@rails31/gems/activesupport-3.1.0.rc1/lib/active_support/dependencies.rb:223:in `block in load_dependency'
> binding
#<Binding:0x0000000140aa28>
> binding.class
=> Binding
> respond_to? :binding
false
> defined? binding
@HashNuke
HashNuke / gist:936044
Created April 22, 2011 04:55
remove file from git cache
git rm --cached config/database.yml
@HashNuke
HashNuke / .rvmrc
Created April 15, 2011 14:36
Automatically create and switch gemsets for your projects. Add this .rvmrc file to your project's dir
rvm_trust_rvmrcs=1
rvm_gemset_create_on_use_flag=1
rvm use 1.9.2@projectname

In the words of Abrasive. I just ordered mashed up the answers to my questions also into it for clarity.

High probability that these tablets come with uboot as their bootloader.

There are two ways of doing this - tell uboot to boot linux from the SD-card or install linux on the flash.

The easiest route is to start by booting from SD, then move everything into flash. However your main problem would be the fact that the only input device on a tablet is a touch-screen and debian installer doesn't support touch-screens as of this writing.

Setup your SD-card to be bootable

The PCT tutorial episode-3 instructs to add this to Actions.pm
method term:sym<integer_constant>($/) {
make PAST::Val.new(:value($<integer>.ast), :returns<Integer>);
}
method term:sym<string_constant>($/) {
my $past := $<quote>.ast;
$past.returns('String');
make $past;
}