Skip to content

Instantly share code, notes, and snippets.

Avatar

Chaitanya Gupta iCHAIT

View GitHub Profile
View best_japanese_sg.md

Shin Yuu Japanese Restaurant

4.4 16 Greenwood Ave, Singapore 289209 12–2:30PM, 6–10PM 9688 2996

Kaiseki Yoshiyuki

View TODO's-26-07-2017.md
  • Backup MBA - Documents, apps, chrome bookmarks , what else?
  • Shell like donne's
  • Export all present dotfiles/app settings to git - Fish, sublime, what else?
  • Make sure hard disk works in MBP :/
  • How to import all dotfiles present settings in MBP? - Plug and Play Script?
  • Show NUS Course list, NUS portals, Code, Course Slides
  • Anything else?
View Course_Reg.md

Course List

  • Minimum of 5 modules to be chosen from CS Specialization modules
  • Rest 5 can be chosen from other specializations as well but they need to be level 4k - 6k
  • Overall we are allowed maximum of 2 4k level modules.

Questions

View vpn_connect.py
'''
from pywinauto.application import Application
app = Application(backend="uia").start("C:/Program Files (x86)/RSA SecurID Software Token/SecurID.exe")
keyboard.SendKeys('1')
print(list(app.Properties))
'''
import pyautogui as pygui
#import pywinauto
from pywinauto.application import Application
import pywinauto.keyboard as keyboard
View R-cheats.r
# install packages
install.packages('data.table')
install.packages('ggplot2')
# import library
library(data.table)
library(ggplot2)
# Assigning Vectors
x= c(0,1,2,3,4)
View use_rimesync.rb
### GET METHODS
# ====================
print("\n\n########get_activities()########\n\n")
puts ts.get_activities
print("\n\n########get_projects()########\n\n")
puts ts.get_projects
View rimer.rb
require_relative 'rimesync'
ts = TimeSync.new(baseurl = 'http://localhost:8000/v0')
ts.authenticate(username: '<user>', password: '<password>', auth_type: 'password')
ts.token_expiration_time
View q.c
#include <stdio.h>
#include <stdlib.h>
int main() {
// your code goes here
char *s1, *s2;
printf("%d%d", sizeof(s1), sizeof(s2));
return 0;
}
View cocomo2.c
# include <stdio.h>
# include <math.h>
int main()
{
int size,i,rating;
float PM_nominal,PM_adjusted;
float B,F,EM,a;
char scale_factors[][30]={"Precedentedness","Development Flexibility","Risk Resolution","Team Cohesion","Process Maturity"};
@iCHAIT
iCHAIT / index.html
Last active Mar 27, 2016
All Projects vs Team Size
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<link href="http://ourworldindata.org/wp-content/uploads/nvd3/nvd3_multiBarChart_DeadlinessPerConflictPerTypePerDecade/nv.d3.css" rel="stylesheet" type="text/css">
<link href="http://ourworldindata.org/wp-content/uploads/maxstyle_for_d3/max.nv.d3.css" rel="stylesheet" type="text/css">
<style>body{overflow-y:hidden;overflow-x:hidden;margin:0px 4px 0px 0px;}#CreditsContainer{position:absolute;height:40px;background-color:#FAFAFA;width:100%;bottom:0;margin:0;border:0;padding:0;}#chart1,#chart2{position:absolute;}#chart1 .nv-lineChart circle.nv-point,#chart2 .nv-lineChart circle.nv-point{fill-opacity:0.9;}#chart1 .nv-lineChart path.nv-line,#chart2 .nv-lineChart path.nv-line{stroke-opacity:0.6;stroke-width:0.5px;}.tick line{opacity:0.3;}</style>
<body>
<div>
<svg id="chart1"></svg>
</div>