Skip to content

Instantly share code, notes, and snippets.

View lambdabaa's full-sized avatar
🏠
Working from home

Gareth Ari Aye lambdabaa

🏠
Working from home
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python3
import collections
import json
import os
import random
import re
import sys
IDENT = re.compile(r'^[_a-zA-Z][_a-zA-Z0-9]*$')
C:/msys64/home/Ari/tensorflow/tensorflow/lite/tools/make/gen/windows_x86_64/lib/libtensorflow-lite.a(interpreter.o):interpreter.cc:(.text+0x105d): undefined reference to `tflite::ResourceVariable::~ResourceVariable()'
loss: 1.7888 - acc: 0.6229 - top_k_categorical_accuracy: 0.8030 - val_loss: 2.3576 - val_acc: 0.5946 - val_top_k_categorical_accuracy: 0.7691

CompletionSuggestion fields used by intellij

  • completion
  • element
  • relevance
  • kind
  • elementUri
  • parameterNames
  • defaultArgumentListString

CompletionSuggestion fields used by intellij

  • completion
  • location
  • relevance
  • displayText
  • kind
  • elementUri
  • parameterNames
ariaye-macbookpro2:~ ariaye$ diff sdk/pkg/analysis_server/tool/spec/generated/java/AnalysisServer.java intellij-plugins/Dart/thirdPartySrc/analysisServer/com/google/dart/server/generated/AnalysisServer.java | grep public
< public void analysis_getSignature(String file, int offset, GetSignatureConsumer consumer);
< public void edit_dartfix(List<String> included, DartfixConsumer consumer);
< public void execution_getSuggestions(String code, int offset, String contextFile, int contextOffset, List<RuntimeCompletionVariable> variables, List<RuntimeCompletionExpression> expressions, GetSuggestionsConsumer consumer);
> public void execution_getSuggestions(String code, int offset, String contextFile, int contextOffset, List<RuntimeCompletionVariable> variables, List<RuntimeCompletionExpression> expressions, GetRuntimeCompletionConsumer consumer);
< public void flutter_getChangeAddForDesignTimeConstructor(String file, int offset, GetChangeAddForDesignTimeConstructorConsumer consumer);
< public void flutter
#!/usr/bin/env python
from PIL import Image
import csv
import cairocffi as cairo
import json
import numpy as np
import os
# See https://github.com/googlecreativelab/quickdraw-dataset/issues/19
st-ari1:lib ari$ ./train.py -h
usage: train.py [-h] [--debug DEBUG] [--doubleSampleSpam DOUBLESAMPLESPAM]
[--rank RANK] [--rare2unknown RARE2UNKNOWN]
[--stemmer STEMMER] [--tfidf TFIDF]
Train a svm based spam classifier.
optional arguments:
-h, --help show this help message and exit
--debug DEBUG whether or not to print debug messages
waitForFullyLoaded: function() {
return this.client.findElement('body').then(function(body) {
// XXX: Need to hack client.waitFor to handle promises
return this.client.waitFor(function() {
return body.getAttribute('ready-state').then(function(readyState) {
return readyState === 'fullyLoaded';
});
});
}.bind(this));
},