Skip to content

Instantly share code, notes, and snippets.

View BigaDev's full-sized avatar

Biga Gaber BigaDev

  • Incorta
  • Egypt, Alexandria
View GitHub Profile
@BigaDev
BigaDev / hello
Last active August 29, 2015 14:02
Biga on Rails
class Hello
def say_hello
puts "Hello"
end
end
@BigaDev
BigaDev / TIL
Last active August 29, 2015 14:14
Today I learn
## The --depth=14 option just tells Git to pull down only the last 14 commits. This makes the download much smaller and faster.
git clone --depth=14 https://github.com/xxx/xxx
## typeof method in javascript
typeof 1; // number
typeof "1"; // string
typeof null; // object
typeof undefined; // undefined
// how come that return v in the else block will not raise error
function getx(c) {
if (c) {
var v = "dada"
return v;
} else {
return v;
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>assets</key>
<array>
<dict>