FIRST PUBLISHED HERE WITH SOME DETAILED EXPLANATIONS
1. Find all numbers divisible by 7 but not a multiple of 5, between 2000 and 3200 (both sides included).
The numbers obtained should be printed in a comma-separated sequence on a single line.
// Get all annotations in current document | |
var annots = this.getAnnots(); | |
// Assemble them into a Tab-delimited string (remove linebreaks in comments, too) | |
var cMyC = "Comment\tPage"; | |
for ( var i=0; i<annots.length; i++ ) | |
cMyC += ("\n"+annots[i].contents.replace(/(\r\n|\n|\r)/gm,"")+ "\t" + annots[i].page); | |
// Export them to MS Excel (opens the data there) | |
this.createDataObject({cName: "myCommentList.xls", cValue: cMyC}); |
To TextGrid (silences): 100, 0, -25, 0.1, 0.1, "", "sound" | |
Set tier name: 1, "phoneme" | |
name$ = selected$("TextGrid") | |
# writeInfoLine: name$ | |
plusObject: "Sound 'name$'" | |
Edit | |
# Add action command: "Sound", 0, "", 0, "", 0, "Usual", "", 0, "" | |
# Add action command: "Sound", 0, "", 0, "", 0, "quickAnnotate", "Usual", 1, "path to quickAnnotate.praat" |
# Xiaoou WANG 30/03/2020 | |
import nltk # pour utiliser le tokeniser de phrases | |
import re | |
from collections import defaultdict | |
import matplotlib.pyplot as plt | |
# dictionnaire des mots contractés | |
contractions = { | |
"she'll": "she will", | |
"shouldn't've": "should not have", |
from os import walk | |
# initiate a empty string | |
final_text = "" | |
# get all the files with extension js, the walk function gives a tuple | |
for (dirpath,dirname,filenames) in walk("/Users/rosingle/Documents/javascript/modernJavascript/"): | |
for file in filenames: | |
# the / is important :D | |
my_path = dirpath+"/"+file | |
if my_path.endswith(".js"): | |
with open(my_path) as file: |
FIRST PUBLISHED HERE WITH SOME DETAILED EXPLANATIONS
The numbers obtained should be printed in a comma-separated sequence on a single line.
<style> | |
/* toc style */ | |
#GoTop { | |
position: fixed; | |
right: 50px; | |
bottom: 30px; | |
background-color: #fafafa; | |
border: 1px solid rgba(0, 0, 0, .07); | |
border-radius: 1px; |
{{- define "main" -}} | |
<article class="article"> | |
{{ partial "page_header" . }} | |
<div class="article-container"> | |
<div class="article-style"> | |
{{ .Content }} |
-- credits to https://stackoverflow.com/questions/30953227/double-click-to-open-an-ipython-notebook | |
variable="'$1'" | |
the_script='tell application "terminal" to do script "nbopen ' | |
osascript -e "${the_script}${variable}\"" |