Discover gists
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
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref | |
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.github.io | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php | |
*/ |
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 | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
*/ |
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
from IPython.lib.display import Audio | |
import numpy as np | |
framerate = 4410 | |
play_time_seconds = 3 | |
t = np.linspace(0, play_time_seconds, framerate*play_time_seconds) | |
audio_data = np.sin(2*np.pi*300*t) + np.sin(2*np.pi*240*t) | |
Audio(audio_data, rate=framerate, autoplay=True) |
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
use std::{ | |
sync::{atomic::AtomicUsize, Arc}, | |
time::Duration, | |
}; | |
use anyhow::{anyhow, Result}; | |
use arc_swap::ArcSwap; | |
use async_stream::stream; | |
use futures::{Stream, StreamExt}; | |
use lapin::{ |
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
@echo off | |
@title Microsoft Edge Uninstaller [Windows 10 LTSC 2021/21H1 Edition] | |
ver | |
echo+ | |
goto check_admin_permissions | |
:check_admin_permissions | |
echo Script must Run as Administrator! Detecting permissions... | |
net session >nul 2>&1 | |
if %errorLevel% == 0 ( |
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 | |
/** | |
* | |
* Functions and definitons | |
* This is a child theme of Twentysixteen theme | |
* V1.0 - AJAX Filter posts | |
* Largely inspired by Vlado Bosnjak work that you can find here: | |
* https://www.bobz.co/filter-wordpress-posts-by-custom-taxonomy-term-with-ajax-and-pagination/ | |
* | |
* |
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
#! /usr/bin/env bash | |
sudo apt-get -y install \ | |
autotools-dev \ | |
axel \ | |
binutils \ | |
build-essential \ | |
cmake \ | |
console-setup \ | |
dpkg-dev \ | |
expat \ |
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
#define エスティーディー std | |
#define アイオーストリーム <iostream> | |
#define ユージング using | |
#define イフ if | |
#define インクルード #include | |
#define イント int | |
#define シーアウト cout | |
#define シーイン cin | |
#define ネームスペース namespace | |
#define ブール bool |
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
data class BarDataM(val value: Float, val label: String) | |
@Composable | |
fun BarChartComponent( | |
bars: List<BarDataM>, | |
barWidth: Dp, | |
spaceBetweenBars: Dp, | |
animateChart: Boolean | |
) { | |
var selectedBar by remember { mutableIntStateOf(-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
.css-selector { | |
background: linear-gradient(157deg, #132923, #10b981, #151515, #383838); | |
background-size: 800% 800%; | |
-webkit-animation: AnimationName 25s ease infinite; | |
-moz-animation: AnimationName 25s ease infinite; | |
-o-animation: AnimationName 25s ease infinite; | |
animation: AnimationName 25s ease infinite; | |
} | |
@-webkit-keyframes AnimationName { | |
0%{background-position:0% 50%} |
NewerOlder