This file contains hidden or 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
#python2 | |
import socket | |
s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
s.sendto('\xff'*6+'\x70\x73\xc2\xbe\xe3\x0d'*16, ('192.168.0.214', 80)) #mac address and ip |
This file contains hidden or 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
/* | |
* This file was generated by the Gradle 'init' task. | |
* | |
* This is a general purpose Gradle build. | |
* Learn how to create Gradle builds at https://guides.gradle.org/creating-new-gradle-builds/ | |
*/ | |
apply plugin: 'java' | |
apply plugin: 'eclipse' |
This file contains hidden or 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
:set list | |
:set listchars=tab:>- | |
# tab size =4 | |
:set tabstop=4 |
This file contains hidden or 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 json | |
import requests | |
# Authentication for user filing issue (must have read/write access to | |
# repository to add issue to) | |
USERNAME = 'CHANGEME' | |
PASSWORD = 'CHANGEME' | |
# The repository to add this issue to | |
REPO_OWNER = 'CHANGEME' |
This file contains hidden or 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
{ | |
"responseHeader":{ | |
"status":0, | |
"QTime":1}, | |
"response":{"numFound":1,"start":0,"docs":[ | |
{ | |
"author":"Marku L", | |
"text":["Marku L", | |
"titletitle", | |
"bah bnah blah blah blah ", |
This file contains hidden or 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
diff --unchanged-line-format= --old-line-format= --new-line-format='%L' FILE_A FILE_B |
This file contains hidden or 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 readline | |
readline.write_history_file('/home/ahj/history') |
This file contains hidden or 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
ArrayList<String> grams = new ArrayList<>(); | |
FileReader fr = new FileReader(args[0]); | |
System.out.println("loading content file: " + args[0]); | |
BufferedReader br = new BufferedReader(fr); | |
This file contains hidden or 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 static org.junit.Assert.assertEquals; | |
import java.io.IOException; | |
import org.apache.log4j.Logger; | |
import org.apache.lucene.analysis.Analyzer; | |
import org.apache.lucene.analysis.cjk.CJKAnalyzer; | |
import org.apache.lucene.document.Document; | |
import org.apache.lucene.document.Field.Store; | |
import org.apache.lucene.document.TextField; |
This file contains hidden or 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
UINib *nib = [UINib nibWithNibName:@"YourCustomView" bundle:nil]; | |
YourCustomView *view = [[nib instantiateWithOwner:self options:nil] objectAtIndex:0]; | |
[superview addSubview:view]; |
NewerOlder