This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create a new repository on the command line | |
touch README.md | |
git init | |
git add README.md | |
git commit -m "first commit" | |
git remote add origin https://github.com/ashim888/iphoneQuiz.git | |
git push -u origin master | |
-------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#------------------------------------------------------------------------------- | |
# Name: module1 | |
# Purpose: | |
# | |
# Author: Ashim | |
# | |
# Created: 14/05/2013 | |
# Copyright: (c) Ashim 2013 | |
# Licence: <your licence> | |
#------------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import urllib2 | |
gh_url = 'https://api.github.com' | |
req = urllib2.Request(gh_url) | |
password_manager = urllib2.HTTPPasswordMgrWithDefaultRealm() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division | |
fuckthis=[['This','fucker','bastard'],['fucker','ok','go','no'],['my','home','is','far'],['hey','you','fucker']] | |
#print len(fuckthis) | |
unique_list=[] | |
my_dict={} | |
def totalwords(): | |
total_words=0 | |
for x in range(0,len(fuckthis)): | |
for y in fuckthis[x]: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
what<-function(id=1:333){ | |
fileLocation<-paste(getwd(),"/",sep="") | |
for(i in id){ | |
if(i<10){ | |
fileName<-paste("00",id,".csv",sep="") | |
return(fileName) | |
} | |
else{ | |
fileName<-paste("0",id,".csv",sep="") | |
return(fileName) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<math.h> | |
#define e 0.001 | |
#define F(x) (2*x)-3 | |
float frac(float a) | |
{ | |
float f1; | |
f1=a*a-3*a+2; | |
return f1; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include <math.h> | |
#define ESP 0.01 | |
//#define F(x) (x)*(x)*(x) + (x)*(x) + (x) + 7 | |
#define F(x) (x)*(x) - 3 | |
//#define F(x) (x)*(x)*(x)-0.165*(x)*(x)+0.0003993 | |
void main() | |
{ | |
int i = 1; | |
float low,up,mid; |
NewerOlder