Skip to content

Instantly share code, notes, and snippets.

View Atul9's full-sized avatar
πŸ‘¨β€πŸ’»
Coding

Atul Bhosale Atul9

πŸ‘¨β€πŸ’»
Coding
View GitHub Profile
@Atul9
Atul9 / learn_typescript.md
Created April 26, 2020 14:14 — forked from ekas/learn_typescript.md
Let's Gear Up for TypeScript

πŸš€ πŸš€ Let's Gear Up for TypeScript πŸŽ‰ πŸŽ‰

TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. Any browser. Any host. Any OS. Open source.

Basic Types

  • Boolean
let isDone: boolean = false;
""
"" Janus setup
""
" Define paths
if has('win32') || has('win64') || has('win32unix')
let g:janus_path = expand("~/.vim/janus/vim")
let g:janus_vim_path = expand("~/.vim/janus/vim")
else
let g:janus_path = escape(fnamemodify(resolve(expand("<sfile>:p")), ":h"), ' ')
package main
import (
"fmt"
"io/ioutil"
"net/http"
"os"
)
func main() {
class User
attr_accessor :role
def admin?
role == "admin"
end
end
user = User.new
user.role = "admin"
puts user&.admin?
{
"meta": {
"code": 200,
"type": "ok"
},
"data": {
"110008": true,
"110014": true,
"110015": true,
"110020": true,
@Atul9
Atul9 / .travis.yml
Created September 28, 2015 08:01
Travis configuration
language: ruby
rvm:
- 2.2.0
addons:
postgresql: "9.3"
env:
- DB=postgres
script:
- RAILS_ENV=test bundle exec rake db:migrate --trace
- bundle exec rspec spec/
@Atul9
Atul9 / GitHub in Linux
Created February 16, 2013 04:55
GitHub
GitHub: it's good for you!
A hands on development session on GitHub to help you jump start with collaborative open-source developments. Good if you already know Git; if not, then it'll help you learn.
Session covers GitHub basics, issues, wikis, pull-requests and github-pages for free static web-hosting for the project-websites.
More details: https://gist.github.com/debloper/4954530
Gearing up:
Install Git in your system: http://git-scm.com/downloads