Skip to content

Instantly share code, notes, and snippets.

View monajalal's full-sized avatar
🎯
Focusing

Mona Jalal monajalal

🎯
Focusing
View GitHub Profile
class Beer
def self.song
array=(1..99).to_a.reverse
array.each do |a|
if a==1
puts "No bottles of beer on the wall, no bottles of beer.\nTake one down and pass it around, 99 bottles of beer on the wall"
class Beer
def self.song
array=(1..99).to_a.reverse
array.each do |a|
if a==1
puts "No bottles of beer on the wall, no bottles of beer.\nTake one down and pass it around, 99 bottles of beer on the wall"
def token_stemming(tokens, suffixes):
suffixes.sort(key=len,reverse=True)
for token in tokens:
counter=0
for suffix in suffixes:
if token[(len(token)-len(suffix)): ]==suffix:
print token[:(len(token)-len(suffix))]
break
else :
counter+=1
def token_stemming(tokens, suffixes):
suffixes.sort(key=len,reverse=True)
for token in tokens:
counter=0
for suffix in suffixes:
if token[(len(token)-len(suffix)): ]==suffix:
print token[:(len(token)-len(suffix))]
break
else :
counter+=1
def remove_all_similar_words(array, word):
new_array=[]
for i in range(0,len(array)):
if array[i] !=word :
new_array.append(array[i])
return new_array
def remove_stopwords(query, stopwords):
for search in stopwords:
for word in query:
@monajalal
monajalal / # opencv3 - 2016-08-02_18-54-22.txt
Created August 3, 2016 00:17
opencv3 (homebrew/science/opencv3) on Mac OS X 10.11.6 - Homebrew build logs
Homebrew build logs for homebrew/science/opencv3 on Mac OS X 10.11.6
Build date: 2016-08-02 18:54:22
@monajalal
monajalal / # opencv3 - 2016-08-04_02-34-46.txt
Created August 4, 2016 07:46
opencv3 (homebrew/science/opencv3) on Mac OS X 10.11.6 - Homebrew build logs
Homebrew build logs for homebrew/science/opencv3 on Mac OS X 10.11.6
Build date: 2016-08-04 02:34:46
@monajalal
monajalal / # opencv3 - 2016-08-04_14-25-56.txt
Created August 4, 2016 19:33
opencv3 (homebrew/science/opencv3) on Mac OS X 10.11.6 - Homebrew build logs
Homebrew build logs for homebrew/science/opencv3 on Mac OS X 10.11.6
Build date: 2016-08-04 14:25:56
@monajalal
monajalal / # opencv3 - 2016-08-04_15-03-05.txt
Created August 4, 2016 20:09
opencv3 (homebrew/science/opencv3) on Mac OS X 10.11.6 - Homebrew build logs
Homebrew build logs for homebrew/science/opencv3 on Mac OS X 10.11.6
Build date: 2016-08-04 15:03:05
@monajalal
monajalal / # opencv3 - 2016-08-04_19-23-04.txt
Created August 5, 2016 00:30
opencv3 (homebrew/science/opencv3) on Mac OS X 10.11.6 - Homebrew build logs
Homebrew build logs for homebrew/science/opencv3 on Mac OS X 10.11.6
Build date: 2016-08-04 19:23:04