This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl genrsa -out ca.key 2048 | |
openssl req -new -key ./ca.key -out ./ca.csr | |
openssl x509 -req -days 365 -in ./ca.csr -out ./ca.crt -signkey ./ca.key | |
openssl x509 -in ca.crt -text | |
openssl rsa -in ca.key -passin pass:XXXX -pubout -out ca.public.key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Make your Code Cleaner with Decorators | |
* https://medium.com/@NetanelBasal/javascript-make-your-code-cleaner-with-decorators-d34fc72af947#.9gq7z3rk4 | |
Making Magic with WebSockets and CSS3 | |
* https://medium.com/outsystems-engineering/making-magic-with-websockets-and-css3-ec22c1dcc8a8#.h52dbfbrq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
class Planet(object): | |
def __init__(self, name, a, e, i, l, lp, ln, | |
ac, ec, ic, lc, lpc, lnc): | |
self.name = name | |
self.a = a | |
self.ac = ac | |
self.e = e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | |
AndroidApplicationConfiguration config = new AndroidApplicationConfiguration(); | |
config.useAccelerometer = false; | |
config.useCompass = false; | |
config.useWakelock = true; | |
config.numSamples = 1; | |
config.resolutionStrategy = new ResolutionStrategy() { | |
@Override | |
public MeasuredDimension calcMeasures(int widthMeasureSpec, int heightMeasureSpec) { | |
int width = widthMeasureSpec; |
NewerOlder