Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
;; Settings from March 5 2011 onwards: | |
;; TODO states and keys: | |
(setq org-todo-keywords | |
'( | |
(sequence "TODO(t)" "|" "DONE(d)" "CANCELLED(c)") | |
;; (sequence "TODO(t)" "STARTED(s)" "WAITING(w)" "APPT(a)" "EVT(e)" "TRAVEL(v)" "CLASS(c)" | |
;; "|" "DONE(D)" "CANCELLED(C)" "DEFERRED(F)") | |
;; (sequence "DELEGATED(l)" "FOLLOWUP(p)") |
var script = document.createElement("script"); | |
script.setAttribute("src", "http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"); | |
script.addEventListener('load', function() { | |
var script = document.createElement("script"); | |
document.body.appendChild(script); | |
}, false); | |
document.body.appendChild(script); |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#Intro
Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin M5.3
Kotlin project website is at kotlin.jetbrains.org.
All the codes here can be copied and run on Kotlin online editor.
Let's get started.
{ | |
"translatorID": "d1b38d36-6bcc-4828-969f-b08a2a2e0723", | |
"label": "Libgen", | |
"creator": "Ignacio Martinez V.", | |
"target": "libgen\\.org|gen\\.lib\\.rus\\.ec", | |
"minVersion": "1.0", | |
"maxVersion": "", | |
"priority": 100, | |
"inRepository": true, | |
"translatorType": 4, |
import java.time.*; | |
import java.time.format.DateTimeFormatter; | |
import java.time.format.FormatStyle; | |
import java.time.temporal.ChronoUnit; | |
import java.time.temporal.TemporalAdjusters; | |
import java.util.*; | |
import static java.time.temporal.TemporalAdjusters.*; | |
public class Java8DateTimeExamples { |
dig +short which.opendns.com txt @208.67.220.220 | |
import string | |
import nltk | |
from nltk.tokenize import RegexpTokenizer | |
from nltk.corpus import stopwords | |
import re | |
def preprocess(sentence): | |
sentence = sentence.lower() | |
tokenizer = RegexpTokenizer(r'\w+') | |
tokens = tokenizer.tokenize(sentence) |
To use Webster's 1913 dictionary on Android, install Colordict 3, an app that accepts this StarDict format. https://play.google.com/store/apps/details?id=com.socialnmobile.colordict
Next download James's S3 archive. https://s3.amazonaws.com/jsomers/dictionary.zip
You will need to extract the .dict file from inside three containers - .dz, .tar, .bz2 from innermost to outermost. 7zip handles all of these formats.
Place the .dict, .idx and .ifo files in the dictdata directory on your sdcard or local storage root. This is where colordict looks for dictionaries.
When the files are in the right place, you can run Colordict and tap the folder icon in the top right to see the dictionaries installed and set the dictionary priority. I put the 1913 dictionary above the defaults "Wordnet" and "Wikipedia." When you look up a word, ColorDict shows the definition, if available, from these multiple sources.