Skip to content

Instantly share code, notes, and snippets.

View icyflame's full-sized avatar

Siddharth Kannan icyflame

View GitHub Profile
@icyflame
icyflame / WeeklyProblemSetProblem3.py
Last active December 20, 2015 04:09
This is the code that I used to solve the third problem in the weekly problem set on brilliant.org
def removeSpace():
p = ''
filin = open("pi.txt")
for y in filin:
for i in y :
@icyflame
icyflame / codeFor4thProblem.py
Created July 24, 2013 07:05
Code for the solution of the fourth problem
def pseudoRandomGen():
X = 42
a = 25
c = 31
m = 2 ** 20
for i in range(1,2001):
X = (a * X + c) % m
@icyflame
icyflame / solution.py
Created July 24, 2013 07:11
22/7/2013 - 28/7/2013 Weekly Problem Set Solution
def cookie_monster_simulation():
cookies = 100
cookies = cookies + 1 # get a cookie!
cookies = cookies - 1 # eat a cookie!
for i in range(0, 88):
cookies = cookies + 1 # get a cookie!
cookies = cookies - 1 # eat a cookie!
cookies = cookies - 1 # eat a cookie!
@icyflame
icyflame / AI-Computers.md
Last active December 27, 2017 14:24
A list of all the Artificial Intelligence computers shown in movies

SPOILERS AHEAD

Movies that this gist has associations with :-

  1. I, Robot
  2. Eagle Eye
  3. Oblivion

@icyflame
icyflame / ros-commands.md
Last active August 29, 2015 14:00
Commands related to the smach library.

ROS

To create a package :-

roscd
roscreate-pkg test rospy
cd test/
cd src/
# add any python source files that you want to run here.
@icyflame
icyflame / phpFeatures.md
Last active August 29, 2015 14:02
Features learnt and encountered, which are remotely connected to PHP

Learnt

  • Connecting a server
  • Connecting to a database on a server
  • Accessing and changing and operating the PHPMyAdmin of a server
  • Querying the remote database
  • Retrieving the data returned from the database and then printing it meaningfully.
  • Adding records to the database
  • md5 hashing for storing passwords securely
  • PHP Post (Almost everything uses this!)
siddharth@ubuntu:ros_workspace$ rosrun uwsim uwsim
Starting UWSim...
Loading SimulatedDevices plugin: 'ForceSensor_Factory'
Loading SimulatedDevices plugin: 'SimDev_Echo_Factory'
. Setting localized world: 0.125195s
Loading URDF robot...
· robot/GIRONA500/g500_March11.osg: Can't load file robot/GIRONA500/g500_March11.osg
Error retrieving file robot/GIRONA500/g500_March11.osg Check URDF file or set your data path with the --dataPath option.
terminate called after throwing an instance of 'pluginlib::LibraryUnloadException'
what(): According to the loaded plugin descriptions the class SimDev_Echo_Factory with base class type uwsim::SimulatedDeviceFactory does not exist. Declared types are ForceSensor_Factory SimDev_Echo_Factory
@icyflame
icyflame / searchCodes.md
Last active August 29, 2015 14:04
The codes that have been used in the creation of the ERP for Students' Alumni Cell

Search Status

  • 1 - Yet to be searched
  • 2 - Not Found
  • 3 - Found
  • 4 - Ready

Calling status (Response)

  • 1 - Called (two-way)
@icyflame
icyflame / youtube-dl.txt
Created July 25, 2014 07:23
The command to download a complete youtube playlist on linux
youtube-dl -citk --max-quality FORMAT http://www.youtube.com/playlist?list=XXXXXXXXXXX
@icyflame
icyflame / regcard.txt
Created July 26, 2014 12:51
Change the value of roll_no to view the reg card of any student
https://erp.iitkgp.ernet.in/Acad/studentRegCard.jsp?roll_no=13ME30050&sem=1&ac_ses=2014-2015&ac_sem=AUTUMN&file_name=2014_13BT30009_3_signed.pdf&file_path=/DATA/UG_REG_CARD/2014/3/&registration_stat=Y&sign_stat=N&type=UG&date_of_regn=23-JUL-2014