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
static int secp256k1_ecdsa_sig_recover(const secp256k1_ecmult_context *ctx, const secp256k1_scalar *sigr, const secp256k1_scalar* sigs, secp256k1_ge *pubkey, const secp256k1_scalar *message, int recid) { | |
unsigned char brx[32]; | |
secp256k1_fe fx; | |
secp256k1_ge x; | |
secp256k1_gej xj; | |
secp256k1_scalar rn, u1, u2; | |
secp256k1_gej qj; | |
int r; | |
if (secp256k1_scalar_is_zero(sigr) || secp256k1_scalar_is_zero(sigs)) { |
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
function tradeBalances(address tokenGet, uint amountGet, address tokenGive, uint amountGive, address user, uint amount) private { | |
uint feeMakeXfer = safeMul(amount, feeMake) / (1 ether); | |
uint feeTakeXfer = safeMul(amount, feeTake) / (1 ether); | |
uint feeRebateXfer = 0; | |
if (accountLevelsAddr != 0x0) { | |
uint accountLevel = AccountLevels(accountLevelsAddr).accountLevel(user); | |
if (accountLevel==1) feeRebateXfer = safeMul(amount, feeRebate) / (1 ether); | |
if (accountLevel==2) feeRebateXfer = feeTakeXfer; | |
} | |
tokens[tokenGet][msg.sender] = safeSub(tokens[tokenGet][msg.sender], safeAdd(amount, feeTakeXfer)); |
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
function setSeed() { | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var sheet = ss.getSheets()[0]; | |
var cell = sheet.getRange(ss.getRangeByName('SEED').getA1Notation()); | |
cell.setValue(Date.now()); | |
} | |
function onOpen() { | |
setSeed() | |
} |
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
loc_00000000: | |
0x00000000 60 60 PUSH1 60 | |
0x00000002 60 40 PUSH1 40 | |
0x00000004 52 MSTORE | |
0x00000005 60 04 PUSH1 04 | |
0x00000007 36 CALLDATASIZE | |
0x00000008 10 LT | |
0x00000009 61 6c 00 PUSH2 6c 00 | |
0x0000000c 57 JUMPI |
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
Verifying my Blockstack ID is secured with the address 1KuRN2DXQX86WsU5egTmAnP91UBMxbhXFe https://explorer.blockstack.org/address/1KuRN2DXQX86WsU5egTmAnP91UBMxbhXFe |
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 tensorflow as tf | |
import os | |
import json | |
import subprocess | |
from scipy.misc import imread, imresize | |
from scipy import misc | |
from train import build_forward | |
from utils.annolist import AnnotationLib as al | |
from utils.train_utils import add_rectangles, rescale_boxes |
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
const React = require('react') | |
const ReactDOM = require('react-dom') | |
const Api = require('./../../utils/Api') | |
const LoadingIndicator = require('./../common/LoadingIndicator') | |
const Dialog = require('./../common/Dialog') | |
const Dropzone = require('react-dropzone') | |
const async = require('async') | |
export default class UploadImagesDialog extends React.Component { |
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
/** | |
* Example service definition for Twitter | |
*/ | |
{ | |
id: 'twitter', | |
name: 'Twitter', | |
url: 'http://twitter.com/', | |
siteName: 'Twitter.com', | |
rest: { | |
// Global REST configurations that are inherited by all subsequent definitions |
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
[{ provider: | |
{ id: 'facebook', | |
displayName: 'Facebook', | |
url: 'http://facebook.com/' }, | |
published: '2011-06-29T14:56:58+0000', | |
actor: | |
{ objectType: 'person', | |
id: '653038898', | |
displayName: 'Justin McCurry', | |
image: { url: 'https://graph.facebook.com/653038898/picture' } }, |
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
exports.convertTwitterError = function(error_str) { | |
if(typeof error_str == 'object') { | |
var code = 500; | |
if(error_str.code) { | |
code = error_str.code; | |
} | |
if(error_str.status) { | |
code = error_str.status; | |
} | |
if(error_str.statusCode) { |