0x05f37c67a0ff5023feae3c76bc660251a78a4597eb5de119b9a4d3c7a9c93377
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> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Third Party Cookies Test</title> | |
</head> | |
<body> |
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
{ | |
"title": "Asset Metadata", | |
"type": "object", | |
"properties": { | |
"name": { | |
"type": "string", | |
"description": "My first NFT" | |
}, | |
"description": { | |
"type": "string", |
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
SOL_RESET_PASSWORD_FORM_URL, | |
EXCHANGE_AUTH_CODE_URL, |
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 Participant = function(name) { | |
this.name = name; | |
this.chatroom = null; | |
}; | |
Participant.prototype = { | |
send: function(message, to) { | |
this.chatroom.send(message, this, to); | |
}, | |
receive: function(message, from) { |
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 Participant = function(name) { | |
this.name = name; | |
this.chatroom = null; | |
}; | |
Participant.prototype = { | |
send: function(message, to) { | |
this.chatroom.send(message, this, to); | |
}, | |
receive: function(message, from) { |
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
class EventEmitter { | |
constructor() { | |
this.events = {}; | |
} | |
emit(eventName, data) { | |
const event = this.events[eventName]; | |
if( event ) { | |
event.forEach(fn => { | |
fn.call(null, data); |
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 $start = $($('img')[2]).clone(); | |
var $end = $('img')[0]; | |
var rectStart = $($('img')[2])[0].getBoundingClientRect(); | |
var rectEnd = $end.getBoundingClientRect(); | |
$start.css({ | |
position: 'absolute', | |
top: rectStart.top + window.scrollY, | |
left: rectStart.left, |
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 class SingletonHelper { | |
private static SingletonHelper instance; | |
private static Context mContext = null; | |
public static SingletonHelper getInstance(Context context) | |
{ | |
if (instance == null) { | |
instance = new SingletonHelper(context); | |
} else { |
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
// Simple | |
array.sort(function(a,b){ | |
a = new Date(a.date); | |
b = new Date(b.date); | |
return a<b?-1:a>b?1:0; | |
}); | |
// Generic | |
(function(){ | |
if (typeof Object.defineProperty === 'function'){ |
NewerOlder