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
pragma solidity ^0.4.24; | |
contract registry{ | |
struct Certificate { | |
mapping(address => bool) attested; | |
mapping(address => string) ipfsRootHash; | |
} | |
mapping(string => Certificate) certificates; |
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
pragma solidity ^0.4.24; | |
import "github.com/Arachnid/solidity-stringutils/strings.sol"; | |
contract registry { | |
using strings for *; | |
struct Certificate { | |
//mapping(address => bool) attested; | |
mapping(address => string) ipfsRootHash; | |
} |
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
pragma solidity ^0.4.24; | |
contract Adoption { | |
address[16] public adopters; | |
mapping(address => bool) adapted; | |
modifier whenRangeIsValid(uint petId) { | |
/// we need to check first if the range is valid | |
require(petId >= 0 && petId <= 15); |
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> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.16/vue.js"></script> | |
<!-- Since there is already a rich ecosystem of ajax libraries --> | |
<!-- and collections of general-purpose utility methods, Vue core --> | |
<!-- is able to remain small by not reinventing them. This also --> |
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
https://developer.jwplayer.com/jw-player/docs/developer-guide/api/javascript_api_introduction/ |
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
<script type="text/javascript"> | |
var adClickURL = "%%CLICK_URL_ESC%%%%DEST_URL%%"; | |
parent.adClickURL = adClickURL; | |
$(document).ready( function() { | |
$(window.parent.document).find('body').css("backgroundColor", "#FFFFFF"); | |
$(window.parent.document).find('body').css("backgroundImage", "url('%%VIEW_URL_UNESC%%https://s3.amazonaws.com/sport360/new-umbro.jpg')"); | |
$(window.parent.document).find('body').css("backgroundPosition", "top center"); | |
$(window.parent.document).find('body').css("backgroundRepeat", "no-repeat"); |
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
SELECT node.nid AS nid, | |
node_data_field_main_image.field_main_image_fid AS node_data_field_main_image_field_main_image_fid, | |
node_data_field_main_image.field_main_image_list AS node_data_field_main_image_field_main_image_list, | |
node_data_field_main_image.field_main_image_data AS node_data_field_main_image_field_main_image_data, | |
node.language AS node_language, | |
node.type AS node_type, | |
node.vid AS node_vid, | |
node_revisions.body AS node_revisions_body, | |
node_revisions.format AS node_revisions_format, | |
node_comment_statistics.comment_count AS node_comment_statistics_comment_count, |
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
- delete them manually | |
- use image_style_flush | |
- use the command line: rm -rf sites/default/files/styles | |
- use drush: drush image-flush |
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
//Update google Analytics - client side | |
$window._gaq.push(['_trackPageview', $location.path()]); | |
//reload DFP banners | |
googletag.pubads().refresh(); |
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
git push origin master:gh-pages |
NewerOlder