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.6.12 <0.9.0; | |
contract AssortedTests { | |
struct TestStruct { | |
NestedStruct[] nestedItems; | |
} | |
struct NestedStruct { |
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
{ | |
"overrides": [ | |
{ | |
"files": "*.sol", | |
"options": { | |
"printWidth": 80, | |
"tabWidth": 4, | |
"useTabs": false, | |
"singleQuote": false, | |
"bracketSpacing": false |
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 axios = require('axios').default; | |
const mysql = require('mysql'); | |
const util = require('util'); | |
const slugify = require('slugify'); | |
const GhostAdminAPI = require('@tryghost/admin-api'); | |
const Downloader = require('nodejs-file-downloader'); | |
//Helper function to setup a database wrapper that works with promises | |
//https://codeburst.io/node-js-mysql-and-async-await-6fb25b01b628 | |
function makeDatabase() { |
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 Parser = require('rss-parser'); | |
const request = require('request'); | |
const fs = require('fs'); | |
const mime = require('mime-types'); | |
const slugify = require('slugify'); | |
//Enter your ghost credentials here | |
const clientId = "ghost-frontend"; | |
const clientSecret = "enter-your-secret"; | |
const username = "enter-your-email"; |
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
0x8be65246 | |
0000000000000000000000000000000000000000000000000000000000000123 | |
0000000000000000000000000000000000000000000000000000000000000080 | |
3132333435363738393000000000000000000000000000000000000000000000 | |
00000000000000000000000000000000000000000000000000000000000000e0 | |
0000000000000000000000000000000000000000000000000000000000000002 | |
0000000000000000000000000000000000000000000000000000000000000456 | |
0000000000000000000000000000000000000000000000000000000000000789 | |
000000000000000000000000000000000000000000000000000000000000000d | |
48656c6c6f2c20776f726c642100000000000000000000000000000000000000 |
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
final FrameLayout tabContent = (FrameLayout) view.findViewById(android.R.id.tabcontent); | |
View overlay = (View) view.findViewById(R.id.statusLayout); | |
overlay.setOnTouchListener(new View.OnTouchListener() { | |
private float mDownX; | |
private float mDownY; | |
private final float SCROLL_THRESHOLD = 10; | |
private boolean isOnClick; |
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
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical"> | |
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="0dp" | |
android:layout_weight="1"> |
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
//Watches our .jsx files and our .js. If any change, it calls the build task. | |
const gulp = require('gulp'); | |
const runSequence = require('run-sequence'); | |
const gutil = require('gulp-util'); | |
//Boolean to hold state of watch JSX watch task | |
let taskOngoing = false; | |
//This task simply sets the taskOngoing boolean to false | |
gulp.task('jsxdone', function(callback) { |
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
//Include and initialise web3 | |
var Web3 = require("web3") | |
var web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")); | |
//Output the current block number (to check things are working) | |
web3.eth.blockNumber | |
//Output a list of accounts. On a new Parity node this will be empty [] | |
web3.eth.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
<?php | |
public function callOldVersion($argumentsList) { | |
//If they have requested a NON current API version | |
if (APIHelpers::$API_VERSION != APIHelpers::CURRENT_API_VERSION) { | |
//get the name of the method that they have called | |
$actionName = $this->dispatcher->getActionName(); |
NewerOlder