I hereby claim:
- I am letz on github.
- I am letz (https://keybase.io/letz) on keybase.
- I have a public key whose fingerprint is 6759 8FE9 DCD3 6A90 79B8 30C9 E55E 05AE 5852 6CB2
To claim this, I am signing this object:
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
I hereby claim:
To claim this, I am signing this object:
# Create Object dynamically | |
klass = Object.const_set 'DynamicWorker', Class.new | |
klass.redefine_method(:perform) { |*args| } | |
klass.include Sidekiq::Worker |
================================================================================ | |
Error executing action `start` on resource 'service[mongos]' | |
================================================================================ | |
Mixlib::ShellOut::ShellCommandFailed | |
------------------------------------ | |
Expected process to exit with [0], but received '1' | |
---- Begin output of /etc/init.d/mongos start ---- | |
STDOUT: Starting mongos: [FAILED] |
DisplayMetrics metrics = new DisplayMetrics(); | |
getActivity().getWindowManager().getDefaultDisplay().getMetrics(metrics); | |
float yInches= metrics.heightPixels/metrics.ydpi; | |
float xInches= metrics.widthPixels/metrics.xdpi; | |
double diagonalInches = Math.sqrt(xInches*xInches + yInches*yInches); | |
if (diagonalInches>=6.5){ | |
// 6.5inch device or bigger | |
}else{ | |
// smaller device |
/****** Current Format ******/ | |
// Basic Message | |
metadata = { | |
id: 1234234234, // Randomly generated by the client. Used for receiving success/fail callbacks | |
client_id: 123456 // Sent from the server with the `websocket_rails.client_connected` event which is sent after the connection is opened. Store this and send it with each message. | |
data: {name: 'shoes'} // Arbitrary data. Can be Object or String. This is available through #message or #data in the controller. | |
} | |
event = ["products.new", metadata] |
#include <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <ESP8266mDNS.h> | |
#include <WiFiUdp.h> | |
#include <PubSubClient.h> | |
#include <Adafruit_NeoPixel.h> | |
#define PIN 4 | |
Adafruit_NeoPixel strip = Adafruit_NeoPixel(4, PIN, NEO_GRB + NEO_KHZ800); |
create role DBNAME with createdb login; | |
create role DBNAME with createdb login password 'password1'; |
heroku pg:backups:capture | |
heroku pg:backups:download | |
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U myuser -d mydb latest.dump |