Skip to content

Instantly share code, notes, and snippets.

@collinjackson
collinjackson / nested_scroll_view.dart
Last active September 25, 2022 05:29
nestedscrollview example
// Copyright 2017, the Flutter project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main() {
runApp(new TestApp());
}
@kylephillips
kylephillips / most-favorited.php
Last active July 27, 2020 03:11
Favorites for WordPress - Display the most favorited posts
<?php
/**
* Display a list of the 10 most favorited posts
* @see https://wordpress.org/plugins/favorites/
*/
$favorites_query = new WP_Query(array(
'post_type' => array('post'),
'posts_per_page' => 10,
'meta_key' => 'simplefavorites_count',
'orderby' => 'meta_value_num',