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; | |
/******************************************************************************\ | |
*..................................SU SQUARES..................................* | |
*.....................Cute squares you own and personalize.....................* | |
*..............................................................................* | |
* First, I just want to say we are so excited and humbled to get this far and * | |
* that you're even reading this. So thank you! * | |
* * | |
* This file is organized into multiple contracts that separate functionality * |
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; | |
/******************************************************************************\ | |
*..................................SU SQUARES..................................* | |
*.....................Cute squares you own and personalize.....................* | |
*..............................................................................* | |
* First, I just want to say we are so excited and humbled to get this far and * | |
* that you're even reading this. So thank you! * | |
* * | |
* This file is organized into multiple contracts that separate functionality * |
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
<?php | |
# Composer: "google/apiclient": "^2.0" | |
const CREDENTIALS_FILE = '/var/www/vhosts/library/Dashboard-6403d6a8a5b6.json'; | |
function googleGetExperiments() | |
{ | |
return cache(__FUNCTION__, func_get_args(), 3600*6, function() { | |
$scopes = [ 'https://www.googleapis.com/auth/analytics.readonly' ]; | |
$client = new Google_Client(); |
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
<?php | |
# | |
# Input multiple SELECT statements from different SQL queries | |
# get back a single stream of rows with records merged if | |
# they have the same key | |
# | |
function genOneTwoThree() { | |
foreach ([1=>'one',2=>'two',3=>'three'] as $key => $value) { | |
# echo "...ready to yield: $key => $number\n"; |
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
Moved to a full project at: | |
https://github.com/fulldecent/google-sheets-etl |
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
## | |
## backup-to-insecure-remote-server v1.0 | |
## William Entriken / github.com@phor.net | |
## | |
## YOU NEED TO KEEP A BACKUP OF .encfs6.xml AND YOUR PASSKEY!!! | |
## | |
## TODO | |
## * Create a restore action | |
## * Make a quick task to confirm that restoring works | |
## |
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
<?php | |
// Service account code from http://stackoverflow.com/questions/18258593/using-a-service-account-getaccesstoken-is-returning-null | |
// Analytics code from https://code.google.com/p/google-api-php-client/source/browse/trunk/examples/analytics/simple.php?r=474 | |
require_once 'google-api-php-client/src/Google_Client.php'; | |
require_once 'google-api-php-client/src/contrib/Google_AnalyticsService.php'; | |
// Set your client id, service account name (AKA "EMAIL ADDRESS"), and the path to your private key. | |
// For more information about obtaining these keys, visit: | |
// https://developers.google.com/console/help/#service_accounts |
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 #We need tensorflow 2.x | |
import numpy as np | |
#The hashlength in bits | |
hashLength = 256 | |
def buildModel(): | |
#we can set the seed to simulate the fact that this network is known and doesn't change between runs | |
#tf.random.set_seed(42) | |
model = tf.keras.Sequential() |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.4; | |
import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; | |
import "./IERC4907.sol"; | |
contract MyToken is ERC721, IERC4907 { | |
struct UserInfo { | |
address user; // address of user role | |
uint64 expires; // unix timestamp, user expires after this time |
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
<!-- COPIED FROM https://phor.net/gadgets/fen2html/ --> | |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> | |
<title>FEN2HTML</title> | |
<style> | |
table.chess { border: 1px solid black; margin: 2px; font-size: xx-large} |