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
// Template for display data JSON object | |
template(name="channels") | |
with data | |
if params.error | |
+channels_error | |
.row | |
.col.s12 | |
| Channels Forms Goes Here | |
template(name="channels_error") |
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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package sorts; | |
import java.io.PrintStream; | |
import java.util.ArrayList; | |
/** |
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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package sorts; | |
import java.io.PrintStream; | |
import java.util.ArrayList; | |
/** |
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
#!/bin/bash | |
FILES=/path/to/* | |
for f in $FILES | |
do | |
echo "Processing $f file..." | |
# take action on each file. $f store current file name | |
cat $f | |
done |
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 os | |
import csv | |
from string import maketrans | |
def ngramsProgram(directory, ngramQueries): | |
# Input: get corpus from all text files within a directory | |
# Step 1: Get list of files in a directory | |
txtFileList = os.listdir(directory) | |
# Step 2: Process each text file in our list of files | |
searchResults = [] |
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
def ngramsProgram(corpus, n): | |
# Input comes from our parameters | |
# process our input to find ngrams | |
ngrams = findNGrams(corpus, n) | |
# Output our ngrams. | |
outputNGrams(ngrams) | |
def findNGrams(corpus, n): |
NewerOlder