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
<epcis:EPCISDocument xmlns:epcis="urn:epcglobal:epcis:xsd:1" schemaVersion="1.1" creationDate="2015-04-14T09:33:00.597-04:00"> | |
<EPCISBody> | |
<EventList> | |
<ObjectEvent> | |
<eventTime>2014-03-15T10:11:12.000Z</eventTime> | |
<eventTimeZoneOffset>-05:00</eventTimeZoneOffset> | |
<epcList> | |
<epc>urn:epc:id:sscc:0614141.0123456789</epc> | |
</epcList> | |
<action>OBSERVE</action> |
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 ./hey -n 50000 -c 50000 http://michalmikolajczyk.com | |
Summary: | |
Total: 27.8550 secs | |
Slowest: 27.8415 secs | |
Fastest: 1.2430 secs | |
Average: 24.6406 secs | |
Requests/sec: 1795.0087 | |
Response time histogram: | |
1.243 [1] | |
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
pragma solidity ^0.4.18; | |
import '../node_modules/zeppelin-solidity/contracts/token/ERC20Basic.sol'; | |
import '../node_modules/zeppelin-solidity/contracts/token/SafeERC20.sol'; | |
/** | |
* @title Ownable | |
* @dev The Ownable contract has an owner address, and provides basic authorization control | |
* functions, this simplifies the implementation of "user permissions". | |
*/ |
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
// Code goes here | |
var regexString = '([^-]*)'; | |
var flags = 'ig'; | |
var regex = new RegExp(regexString, flags); | |
var arr = ['some-property-image.png', 'another-prop-video.png', 'y-no-work.bmp']; | |
var result = []; | |
arr.forEach(function (item) { |
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
var A = []; | |
A[0] = 3; | |
A[1] = 5; | |
A[2] = 6; | |
A[3] = 3; | |
A[4] = 3; | |
A[5] = 5; |
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
// this is NodeJS connecting to SQL Server using tedious http://pekim.github.io/tedious/ | |
// which supports only one active db input at a time | |
// So I run the connections through a helper functions that disables input until the request is done | |
// It also checks availability by running itself recursively. | |
// | |
// Used in backend NodeJS app for an AngularJS Angular UI Calendar (FullCalendar) app | |
// | |
// | |
// below excerpt fromsendMail.js module: |
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
/* | |
* The syncLoop() function creates a synchronous loop | |
* that executes recursively for each element of a given array | |
* and accepts callbacks. | |
* | |
* I needed to wait for user input inside the loop and | |
* could not use process the elements asynchronously | |
* thus, here is the syncLoop() | |
*/ | |