-
Simplest intro to git by github and codeschool - Try Git
-
[Intro to github]
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
#!/usr/bin/env groovy | |
import groovy.grape.Grape | |
import groovy.sql.Sql | |
import groovy.swing.SwingBuilder | |
import java.awt.event.* | |
import javax.swing.* | |
import javax.swing.table.* | |
Grape.grab(group:'org.apache.derby', module:'derby', version:'10.4.2.0', classLoader:this.class.classLoader.rootLoader) |
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
@Grab(group = 'net.sf.opencsv', module = 'opencsv', version = '2.3') | |
import au.com.bytecode.opencsv.CSVReader | |
import au.com.bytecode.opencsv.CSVParser | |
import au.com.bytecode.opencsv.CSVWriter | |
def TEST_FILE_NAME = 'test.csv' | |
def TEST_OUTPUT_FILE_NAME = 'testOut.csv' | |
List<String[]> rows = new CSVReader(new FileReader(new File(TEST_FILE_NAME)), CSVParser.DEFAULT_SEPARATOR, CSVParser.DEFAULT_ESCAPE_CHARACTER, CSVParser.DEFAULT_QUOTE_CHARACTER, 1).readAll() | |
def rowsOver100 = rows.findAll {it[1].toInteger() > 100} |
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 javax.swing.* | |
import javax.swing.table.* | |
transforms << { result -> | |
if (result instanceof Map) { | |
def table = new JTable( | |
result.collect { k, v -> | |
[k, v?.inspect()] as Object[] | |
} as Object[][], | |
['Key', 'Value'] as Object[]) |
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
def subprojects = ['groovy-ant', | |
'groovy-bsf', | |
'groovy-console', | |
'groovy-docgenerator', | |
'groovy-groovydoc', | |
'groovy-groovysh', | |
'groovy-jmx', | |
'groovy-json', | |
'groovy-jsr223', | |
'groovy-servlet', |
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
Bigdata is like combination of bunch of subjects. Mainly require programming, analysis, nlp, MLP, mathematics. | |
To see links, Go : http://www.quora.com/What-are-some-good-sources-to-learn-big-data | |
Here are bunch of courses I came accross: | |
Introduction to CS Course | |
Notes: Introduction to Computer Science Course that provides instructions on coding. | |
Online Resources: | |
Udacity - intro to CS course, | |
Coursera - Computer Science 101 |
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
# The technical term for a text file of Python code (what we've been creating all semester) is a module. | |
# | |
# This file you're looking at right now, programA.py, is a module. | |
# | |
# The file name acts as the module name. | |
# I.e. for this file programA.py, the corresponding module name is `programA`. | |
# | |
# That's why if we wanted to import this file into another file, we'd just say `import programA`, not `import programA.py` | |
# | |
# Ok, now that we know what a module is, let's look towards what __name__ is... |
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
PROJECT_DIR=/home/pentaho/projects | |
KETTLE_REDIRECT_STDERR=Y | |
KETTLE_REDIRECT_STDOUT=Y | |
KETTLE_MAX_LOGGING_REGISTRY_SIZE=10000 | |
KETTLE_LOG_MARK_MAPPINGS=Y | |
KETTLE_JOB_LOG_SCHEMA=pentaho_dilogs | |
KETTLE_JOB_LOG_DB=live_logging_info | |
KETTLE_JOB_LOG_TABLE=job_logs |
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
-- NOTA: no recuerdo por qué todo esto en lugar de un simple join ?!?!?! | |
-- DO NOT DO THIS!!! | |
CREATE INDEX idx_customer_name ON customer (last_name, first_name); | |
SELECT * | |
FROM customer | |
WHERE first_name || last_name IN ( | |
SELECT first_name || last_name | |
FROM actor |
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
-- https://dzone.com/articles/how-to-calculate-multiple-aggregate-functions-in-a?edition=297992 | |
-- Calculate Multiple Aggregate Functions (diff WHERE conditions) in a Single Query | |
-- ***************** PROBLEM to solve: | |
-- Number of films with a given length / language_id | |
SELECT count(*) | |
FROM film | |
WHERE length BETWEEN 120 AND 150 | |
AND language_id = 1; | |
-- Number of films with a given length / rating |
OlderNewer