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
5 print chr$(147) | |
10 get a$:if a$="" then 10 | |
20 a=asc(a$) | |
30 c=-1 | |
40 if a>= 32 and a<=63 then c=a | |
50 if a>= 64 and a<=95 then c=a-64 | |
60 if a>= 96 and a<=127 then c=a-32 | |
70 if a>=160 and a<=191 then c=a-64 | |
80 if a>=192 and a<=254 then c=a-128 | |
90 if a=255 then c=a-161 |
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
L = [ | |
65, | |
66, | |
67 | |
] | |
''.join(chr(i) for i in L) |
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
# Appender for BaseLogger | |
log4j.appender.BaseLoggerAppender=org.apache.log4j.RollingFileAppender | |
log4j.appender.BaseLoggerAppender.maxFileSize=1024MB | |
log4j.appender.BaseLoggerAppender.maxBackupIndex=4 | |
log4j.appender.BaseLoggerAppender.file=/var/log/activities.log | |
log4j.appender.BaseLoggerAppender.layout=org.apache.log4j.PatternLayout | |
log4j.appender.BaseLoggerAppender.layout.ConversionPattern=%d{yyyyMMddHHmmss}|%t|%p|%m%n | |
log4j.additivity.BaseLoggerAppender=false |
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.apache.tika.parser.txt.CharsetDetector; | |
public class GetBytesEncoding { | |
public static String getBytesEncoding(final byte[] data) { | |
final CharsetDetector detector = new CharsetDetector(); | |
detector.setDeclaredEncoding("UTF-8"); | |
detector.setText(data); | |
return detector.detect().getName(); | |
} | |
} |
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 com.google.api.client.googleapis.auth.oauth2.GoogleCredential; | |
import com.google.api.client.http.HttpTransport; | |
import com.google.api.client.http.javanet.NetHttpTransport; | |
import com.google.api.client.json.JsonFactory; | |
import com.google.api.client.json.jackson2.JacksonFactory; | |
import com.google.api.services.blogger.Blogger; | |
import com.google.api.services.blogger.BloggerScopes; | |
import com.google.api.services.blogger.model.Blog; | |
import com.google.api.services.blogger.model.Post; | |
import com.google.api.services.blogger.model.PostList; |
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
alias bytes='od -t dC|sed -E '\''s/-/ -/g'\''|sed -E '\''s/ +$//'\'' | sed -E '\''s/ +/, /g'\''| cut -c10-|sed -E '\''s/(.)$/\1,/'\''' | |
cat file | bytes |
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
public String convert(long num, String code) { | |
final int base = code.length(); | |
String text = ""; | |
do { | |
text = code.charAt((int) (num%base)) + text; | |
num /= base; | |
} while (num > 0); | |
return text; | |
} |
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
D 3000 3011 | |
. 3000 A5 CA LDA $CA | |
. 3002 18 CLC | |
. 3003 65 C8 ADC $C8 | |
. 3005 8D 0D FF STA $FF0D | |
. 3008 A5 C9 LDA $C9 | |
. 300A 69 00 ADC #$00 | |
. 300C E9 0B SBC #$0B | |
. 300E 8D 0C FF STA $FF0C | |
. 3011 60 RTS |
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
10 ifpeek(1)>199thenpoke65305,0:poke65301,0 | |
20 ifpeek(1)<200thenpoke53280,0:poke53281,0 | |
30 r$=chr$(18):printchr$(147); | |
110 printr$chr$(144)" ctrl + 1 " | |
120 printr$chr$(005)" ctrl + 2 " | |
130 printr$chr$(028)" ctrl + 3 " | |
140 printr$chr$(159)" ctrl + 4 " | |
150 printr$chr$(156)" ctrl + 5 " | |
160 printr$chr$(030)" ctrl + 6 " | |
170 printr$chr$(031)" ctrl + 7 " |
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
GET /_nodes/_master |
OlderNewer