This file contains hidden or 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
| # METEOR CORE: | |
| Anywhere: Meteor.isClient | |
| Anywhere: Meteor.isServer | |
| Anywhere: Meteor.startup(func) | |
| Anywhere: Meteor.absoluteUrl([path], [options]) | |
| Anywhere: Meteor.settings | |
| Anywhere: Meteor.release | |
This file contains hidden or 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
| with recursive generation1(x,y) as ( --the initial board setup | |
| select 2, 3 | |
| union | |
| select 3, 3 | |
| union | |
| select 4, 3 | |
| ), | |
| game(n, x, y) as ( | |
| select 1, x, y from generation1 -- generation 1 is initial board setup | |
| union all |
This file contains hidden or 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
| /** | |
| * GenerateVanityKey.java – generates keypairs with a prefix | |
| * Copyright © 2014 David ‘Bombe’ Roden | |
| * <p> | |
| * This program is free software; you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation; either version 3 of the License, or | |
| * (at your option) any later version. | |
| * <p> | |
| * This program is distributed in the hope that it will be useful, |
This file contains hidden or 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
| /* | |
| Link to libcrypto and libgmp. Only tested on a 64 bit machine. | |
| This program may disclose your private key, harm your computer or kill your cat. Use only if you | |
| understand what it does. I accept no responsibility for any use of this program. | |
| */ | |
| #include <openssl/evp.h> | |
| #include <gmp.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <inttypes.h> |
This file contains hidden or 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
| function calculateDistance(rssi) { | |
| var txPower = -59 //hard coded power value. Usually ranges between -59 to -65 | |
| if (rssi == 0) { | |
| return -1.0; | |
| } | |
| var ratio = rssi*1.0/txPower; | |
| if (ratio < 1.0) { |
This file contains hidden or 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
| # METEOR CORE: | |
| Anywhere: Meteor.isClient | |
| Anywhere: Meteor.isServer | |
| Anywhere: Meteor.startup(func) | |
| Anywhere: Meteor.absoluteUrl([path], [options]) | |
| Anywhere: Meteor.settings | |
| Anywhere: Meteor.release | |
This file contains hidden or 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
| <head> | |
| <meta name="viewport" content="initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0, width=device-width"> | |
| </head> | |
| <body> | |
| {{> gauge id="demo" style="basic"}} | |
| </body> | |
| <template name="gauge"> | |
| <div id="demo" style="display:inline-block;width:200px;height:200px;"></div> |
This file contains hidden or 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
| #!/bin/bash | |
| #Lightweight script to automatically detect and install the required Node version for Meteor in Elastic Beanstalk | |
| #This does this by parsing the MIN_NODE_VERSION from {APP}/programs/server/boot.js | |
| #To run the script, you must supply the path to the Meteor application like this ./install-node.sh "/tmp/deployment/application/bundle" | |
| #To see more details about the script, see the blog post here https://thesauceco.de/blog/Automatically-install-custom-Node-for-Meteor-in-Elastic-Beanstalk/ | |
| APP_DIR=$1 | |
| WORKING_DIR=/tmp/deployment | |
| DEST_DIR=/opt/elasticbeanstalk/node-install |
This file contains hidden or 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
| #!/usr/bin/bash -l | |
| # | |
| # The MIT License (MIT) | |
| # | |
| # Copyright (c) 2015-2017 Stefan Tatschner | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| """ Example multiprocess based python file | |
| """ | |
| import multiprocessing | |
| import argparse | |
| import itertools | |
| ARGP = argparse.ArgumentParser( |