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 numpy import* | |
vector=[1,2,3] | |
norm=norm=linalg.norm(vector) | |
normalized_vector=vector/norm |
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
import org.nazt.lexto.* | |
class Tokenizer | |
{ | |
private def lextoObj = new LongLexTo(new File('lexitron.txt')) | |
private def TypeList,IndexList=[] | |
def tokenizedText=[] | |
Tokenizer(String srcText) | |
{ | |
lextoObj.wordInstance(srcText) | |
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
import java.security.MessageDigest | |
// Create a Message Digest from a Factory method | |
MessageDigest md = MessageDigest.getInstance("SHA1"); | |
// Create the message |
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
import org.nazt.lexto.* | |
System.setProperty("file.encoding","UTF-8") | |
class Tokenizer | |
{ | |
private def lextoObj = new LongLexTo("SELF") | |
private def TypeList,IndexList=[] | |
def tokenizedTextList | |
Tokenizer(String srcText) | |
{ | |
new File('lexitron.txt').eachLine { lextoObj.addDict(it)} |
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
select t_snapbkk(setsrid(st_makepoint(100.583267,13.800741),4326)) ; | |
select st_makepoint(100.583267,13.800741); | |
select link_id, (ST_Distance(ST_Transform(setsrid(st_makepoint(100.53816,13.76439),4326),32647),ST_Transform(setsrid(line_geom,4326),32647))) AS distance from bkktraffic_linkdef | |
select vms.link_id, vms_id,(ST_Distance(ST_Transform(setsrid(st_makepoint(100.53816,13.76439),4326),32647),ST_Transform(setsrid(line_geom,4326),32647))) AS distance from bkktraffic_linkdef as bkk , bkk_traffic_vms2way as vms where vms.link_id=bkk.link_id order by distance |
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
<property name="domain.name" value="domain1"/> | |
<property name="instance.name" value="server"/> | |
<property name="admin.user" value="admin"/> | |
<property name="admin.password" value="adminadmin"/> | |
<property name="admin.port" value="4848"/> | |
<property name="instance.port" value="8080"/> | |
<property name="orb.port" value="3700"/> | |
<property name="imq.port" value="7676"/> | |
<property name="https.port" value="8181"/> |
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
<tomcat-users> | |
<!-- | |
<role rolename="tomcat"/> | |
<role rolename="role1"/> | |
<user username="tomcat" password="tomcat" roles="tomcat"/> | |
<user username="both" password="tomcat" roles="tomcat,role1"/> | |
<user username="role1" password="tomcat" roles="role1"/> | |
--> | |
<user username="admin" password="password" roles="standard,manager,admin"/> | |
</tomcat-users> |
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
import java.io.UnsupportedEncodingException; | |
// program to parse RSS Feed | |
def rssurl = "http://twitter.com/statuses/user_timeline.xml?screen_name=ctis_tu" | |
def slurp = new XmlSlurper() | |
def rssObj = slurp.parse(rssurl) | |
rssObj.status.eachWithIndex { item , num -> | |
println "-------------------------------------------" | |
def name = item.user.screen_name.toString() | |
// def url = item.user.profile_image_url.toString() | |
println item |
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
00001fb6 <_main>: | |
1fb6: 55 push %ebp | |
1fb7: 89 e5 mov %esp,%ebp | |
1fb9: 53 push %ebx | |
1fba: 83 ec 24 sub $0x24,%esp | |
1fbd: e8 00 00 00 00 call 1fc2 <_main+0xc> | |
1fc2: 5b pop %ebx | |
1fc3: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) | |
1fca: eb 13 jmp 1fdf <_main+0x29> | |
1fcc: 8d 83 2e 00 00 00 lea 0x2e(%ebx),%eax |
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
00001fb6 <_main>: | |
1fb6: 55 push ebp | |
1fb7: 89 e5 mov ebp,esp | |
1fb9: 53 push ebx | |
1fba: 83 ec 24 sub esp,0x24 | |
1fbd: e8 00 00 00 00 call 1fc2 <_main+0xc> | |
1fc2: 5b pop ebx | |
1fc3: c7 45 f4 00 00 00 00 mov DWORD PTR [ebp-0xc],0x0 | |
1fca: eb 13 jmp 1fdf <_main+0x29> | |
1fcc: 8d 83 2e 00 00 00 lea eax,[ebx+0x2e] |