Skip to content

Instantly share code, notes, and snippets.

View jawahar273's full-sized avatar

Jawahar S jawahar273

  • Ormae LLP
  • Bangalore, India
View GitHub Profile
@jawahar273
jawahar273 / output
Last active January 30, 2021 18:28
Razzle Environment
❯❯❯❯ cross-env NODE_ENV=production TEST=foo RAZZLE_TEST=bar node razzle_env.js
{ RAZZLE_TEST: 'bar' }
from aquiladb import AquilaClient as acl
db = acl('localhost', 50051)
sample = db.convertDocument([0.1,0.2,0.3,0.4], {"hello": "world"})
db.addDocuments([sample])

Step 1:

clone repo git clone https://github.com/jawahar273/practNLPTools-lite.git

Step 2:

run the value of the file .env.test.bash

Step 3:

@jawahar273
jawahar273 / angular-pwa.js
Last active March 6, 2018 18:05
Code Angular PWA - 1
var temp = 123123;
console.log(temp);
var temp = 1231.09876;
console.log(temp);
temp = "testing...."; // No problem
console.log(temp);
@jawahar273
jawahar273 / README.md
Last active June 30, 2017 05:11
installing and running giza++ in Windows environment
/* Fira Sans */
@font-face
font-family: 'Fira Sans'
src: url("eot/FiraSans-Light.eot")
src: local("Fira Sans Light"), url("eot/FiraSans-Light.eot") format("embedded-opentype"), url("woff/FiraSans-Light.woff") format("woff"), url("ttf/FiraSans-Light.ttf") format("truetype")
font-weight: 300
font-style: normal
@font-face
# Java
sudo apt-get update
java -version
sudo apt-get install default-jre
sudo apt-get install default-jdk
- Java installed location /usr/lib/jvm/java-7-openjdk-amd64
# Requirements
* Install MySQL
sudo apt-get install mysql-client
sudo apt-get install mysql-server
# Hive install
cd
a = [66.25, 333, 333, 1, 1234.5]
print(a.count(333), a.count(66.25), a.count('x'))
a.insert(4,"fourth place") # the number 4 is consider as index
a.insert(3,"fourth place2")
print(a)
class Classic: pass
class Newstyle(object): pass
print (type(Classic))
print (type(Newstyle))
print("*"*20)
class MyMeta(type):
def __str__(cls):
return ("Beautiful class '%s'"%cls.__name__)
class MyClass:
__metaclass__ = MyMeta