Skip to content

Instantly share code, notes, and snippets.

Avatar
💪
Engineering ML Systems

queirozfcom queirozfcom

💪
Engineering ML Systems
View GitHub Profile
View proc-freq-post
data mytable;
input id= name=$12. balance= state=$2.;
DATALINES;
id=1 name=alice balance=5.12 state=NE
id=2 name=bob balance=12.31 state=SC
id=3 name=charlie balance=45.14 state=NY
id=4 name=daniel balance=32.78 state=
id=5 name=alice balance=20.23 state=WA
View proc-univariate-example
data mytable;
length name $20.;
input id name $ balance;
DATALINES;
1 alice 5.12
2 bob 12.31
3 charlie 45.14
4 daniel 32.78
4 ella 20.23
View sample buildspec.yml file
version: 0.2
phases:
pre_build:
commands:
- echo Logging in to Amazon ECR...
- $(aws ecr get-login --region $AWS_DEFAULT_REGION)
build:
commands:
- echo Build started on `date`
View gist:0aece2c4912017f0941a78a03de97fe9
java.lang.NullPointerException
at java.util.regex.Pattern.<init>(Pattern.java:1350)
at java.util.regex.Pattern.compile(Pattern.java:1028)
at scala.util.matching.Regex.<init>(Regex.scala:191)
at scala.collection.immutable.StringLike$class.r(StringLike.scala:255)
at scala.collection.immutable.StringOps.r(StringOps.scala:29)
at scala.collection.immutable.StringLike$class.r(StringLike.scala:244)
at scala.collection.immutable.StringOps.r(StringOps.scala:29)
at ReadSOStanfordTokenize$$anonfun$2.apply(ReadSOStanfordTokenize.scala:102)
at ReadSOStanfordTokenize$$anonfun$2.apply(ReadSOStanfordTokenize.scala:72)
View import_json_appsscript.js
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
View jupyter-scala-example.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View jupyter-scala-example
{
"cells": [
{
"cell_type": "code",
"execution_count": 8,
"metadata": {
"collapsed": false
},
"outputs": [
{
View CrossValTesting.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:865579baeb1b80d65618
{
"query": {
"multi_match": {
"query": "foo",
"fields": [
"title",
"document"
],
"fuzziness": "AUTO"
},
View sample_spec.rb
before(:each) do
# doesn't work for what I need.
# allow_any_instance_of(Edge).to receive(:freeze).and_return(nil)
@c = Converter.new name: 'c'
@edge_in = instance_double(Edge, from: double(), to: @c, freeze: nil)
@edge_out = instance_double(Edge, from: @c, to: double(), freeze: nil)
@c.attach_edge!(@edge_in).attach_edge!(@edge_out)
end
You can’t perform that action at this time.