Skip to content

Instantly share code, notes, and snippets.

@luan-cestari
luan-cestari / IMDB + TFIDF + LogReg.ipynb
Last active March 26, 2017 23:02 — forked from prhbrt/IMDB + TFIDF + LogReg.ipynb
Notebook of TFIDF Logistic regression on IMDB sentiment dataset (provided by keras)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
uname -a
Linux localhost.localdomain 4.4.6-300.fc23.x86_64 #1 SMP Wed Mar 16 22:10:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
lspci -vnn | grep VGA
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Hawaii PRO [Radeon R9 290] [1002:67b1] (rev 80) (prog-if 00 [VGA controller])
content of the fglrx-install.log:
Unloading radeon module...
rmmod: ERROR: Module radeon is in use
Unloading drm module...
~/torch ⮀ master ⮀ 7d17h28m ⮀ uname -a ⮂ ruby-2.3.0
Linux localhost.localdomain 4.3.5-300.fc23.x86_64 #1 SMP Mon Feb 1 03:18:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
~/torch ⮀ master ⮀ 7d17h25m ⮀ clinfo ⮂ ruby-2.3.0
Number of platforms 1
Platform Name Clover
Platform Vendor Mesa
Platform Version OpenCL 1.1 MESA 11.1.0
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd
@luan-cestari
luan-cestari / flutter.log
Created November 11, 2015 12:33
flutter start --checked && flutter logs > out - Hello world app not working on Samsung S5 - Black screen
○ → flutter start --checked
Installing SkyShell.apk on device.
○ → flutter logs > out
android: --------- beginning of system
android: W/ActivityManager: getTasks: caller 10087 does not hold GET_TASKS; limiting output
android: W/ActivityManager: getTasks: caller 10087 does not hold GET_TASKS; limiting output
android: W/ActivityManager: getTasks: caller 10087 does not hold GET_TASKS; limiting output
android: W/ActivityManager: getTasks: caller 10087 does not hold GET_TASKS; limiting output
android: --------- beginning of main
$ curl -H Content-Type:application/json -X PUT -d @meta.json https://$HOST:$PORT/rest/metadata/cy/1.0.0 --insecure --cert x -v | tee out.json
$ cat meta.json
{
"entityInfo": {
"name": "cy",
"hooks": [
{
"name": "auditHook",
13:30:12.017 [Test worker] WARN c.n.c.s.URLConfigurationSource - No URLs will be polled as dynamic configuration sources.
13:30:12.020 [Test worker] INFO c.n.c.s.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
13:30:12.022 [Test worker] INFO c.n.c.DynamicPropertyFactory - DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@3f831b83
13:30:12.094 [hystrix-TestThreadPool-1] INFO d.HystrixCommandWithErrorTest$StringWithErrorCommand - Run command with input: NewEchoHelloWorld1
13:30:12.107 [hystrix-TestThreadPool-2] INFO d.HystrixCommandWithErrorTest$ErrorCommand - Run command with input: NewEchoHelloWorld1 and the exception: {}
java.lang.Exception: Throwable caught while executing.
at com.netflix.hystrix.AbstractCommand.getExceptionFromThrowable(AbstractCommand.java:1903) ~[hystrix-core-1.4.0.jar:1.4.0
# GitHub Infrastructure Engineer Questionnaire
Thanks again for applying to the Infrastructure Engineer job at GitHub! The purpose of this gist is to get a better sense of your technical skills and overall communication style. Take as much time as you need to answer these questions.
## Section 1
Engineers at GitHub communicate primarily in written form, via GitHub Issues and Pull Requests. We expect our engineers to communicate clearly and effectively; they should be able to concisely express both their ideas as well as complex technological concepts.
Please answer the following questions in as much detail as you feel comfortable with. The questions are purposefully open-ended, and we hope you take the opportunity to show us your familiarity with various technologies, tools, and techniques. Limit each answer to half a page if possible; walls of text are not required, and you'll have a chance to discuss your answers in further detail during a phone interview if we move forward in the process. Finally, feel
{
"$schema":"http://json-schema.org/draft-04/schema#",
"type":"object",
"description":"JSON schema for entity 'user' version '1.0.0'",
"properties":{
"enumTest":{
"type":"string",
"constraints":{
"enum":"site_type_enum"
}
@luan-cestari
luan-cestari / gist:b1a20dddf00865e445cd
Created October 28, 2014 13:05
openage-> ./configure --mode=debug
$ ./configure --mode=debug
./configure is a convenience script that creates the build directory and invokes cmake for an out-of-source build.
don't feel obliged to use this, especially if you're packaging openage.
compiler suite: gnu
build_type | Debug
c_compiler | gcc
c_flags | -O1
@luan-cestari
luan-cestari / gist:c1ddafb368cce54576bb
Created September 29, 2014 11:17
Tips how to make awesome presentations and links to free stock photos / pictures / images
Presentation tips
http://www.convinceandconvert.com/content-marketing/top-5-slideshare-marketing-tips/
http://www.slideshare.net/jessedee/you-suck-at-powerpoint
http://www.slideshare.net/damonnofar/8-tips-for-slideshare
http://www.slideshare.net/soappresentations/52-presentation-tips-the-best-of-2013
Photos / Images
http://startupstockphotos.com/
http://www.imcreator.com/free
http://www.morguefile.com/