Skip to content

Instantly share code, notes, and snippets.

Miguel Espinoza purefan

Block or report user

Report or block purefan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:6dfdb478c51908ef6aefc1a1dd5349be
FAIL src/EngineChain/test.spec.js
● Test suite failed to run
Jest encountered an unexpected token
This usually means that you are trying to import a file which Jest cannot parse, e.g. it's not plain JavaScript.
By default, if Jest sees a Babel config, it will use that to transform your files, ignoring "node_modules".
Here's what you can do:
purefan / ws-client.cpp
Last active May 10, 2018
cpp ws client - not working
View ws-client.cpp
#include "stdafx.h"
#include <websocketpp/config/asio_no_tls_client.hpp>
#include <websocketpp/client.hpp>
#include <Windows.h>
#include <iostream>
#include <stdio.h>
#include <fstream>
#include <future>
typedef websocketpp::client<websocketpp::config::asio_client> client;
purefan / 2017-06-29.json
Last active Jun 29, 2017
Stylus styles
View 2017-06-29.json
This file has been truncated, but you can view the full file.
"sections": [
purefan / generic-dark-theme.css
Created Mar 31, 2017
Generic dark theme for Stylish based on Krebs on security
View generic-dark-theme.css
h1, h2, h3,
div > h2,
.post h2,
ol.commentlist li,
ol.commentlist li.even,
#commentform > p > label > small

Keybase proof

I hereby claim:

  • I am purefan on github.
  • I am purefan ( on keybase.
  • I have a public key whose fingerprint is D2CF D858 B1EC C85E C149 B7F6 8E99 4C00 AB86 566A

To claim this, I am signing this object:


Keybase proof

I hereby claim:

  • I am purefan on github.
  • I am purefan ( on keybase.
  • I have a public key ASAGHxbvAk3qB4QbuvMRa98GZ1iMh2xdOvmuZnd7vG_54Qo

To claim this, I am signing this object:

purefan /
Created Jan 26, 2016
Simple ping wrapper
echo $0
runCurl() {
PING=$(curl --connect-timeout 1 --max-time 1 --head -s ${1});
if [[ $PING == *"200 OK"* ]]; then
purefan / gist:b3e72ed6847edfcf7eaa
Created Mar 7, 2015
NullPointer Exception running
View gist:b3e72ed6847edfcf7eaa
[info] Set current project to tmp-6tdmfihlov (in build file:/tmp/tmp.6tdmfIhloV/)
[info] Packaging /tmp/tmp.6tdmfIhloV/target/scala-2.10/tmp-6tdmfihlov_2.10-0.1-SNAPSHOT-sources.jar ...
[info] Done packaging.
[info] Updating {file:/tmp/tmp.6tdmfIhloV/}tmp-6tdmfihlov...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Wrote /tmp/tmp.6tdmfIhloV/target/scala-2.10/tmp-6tdmfihlov_2.10-0.1-SNAPSHOT.pom
[info] :: delivering :: default#tmp-6tdmfihlov_2.10;0.1-SNAPSHOT :: 0.1-SNAPSHOT :: integration :: Sat Mar 07 01:14:23 UTC 2015
[info] delivering ivy file to /tmp/tmp.6tdmfIhloV/target/scala-2.10/ivy-0.1-SNAPSHOT.xml
[info] Packaging /tmp/tmp.6tdmfIhloV/target/scala-2.10/tmp-6tdmfihlov_2.10-0.1-SNAPSHOT-javadoc.jar ...
View gist:4a33210d4bbec670b843
Verifying that +purefan is my Bitcoin username. You can send me #bitcoin here:
purefan / gist:335626db8cf739c9cd08
Created Sep 24, 2014
Sublime natural tab order
View gist:335626db8cf739c9cd08
Put in (Preferences -> Key Bindings - User):
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" }
You can’t perform that action at this time.