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
void setup() { | |
size(480, 120); | |
} | |
void draw() { | |
if (mousePressed) { | |
fill(0); | |
} else { | |
fill(255); | |
} |
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 babel from "@rollup/plugin-babel"; | |
import external from "rollup-plugin-peer-deps-external"; | |
import del from "rollup-plugin-delete"; | |
import { terser } from "rollup-plugin-terser"; | |
import pkg from "./package.json"; | |
export default { | |
input: pkg.source, | |
output: [ | |
{ file: pkg.main, format: "cjs" }, |
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 | |
$posts = get_posts( | |
array( | |
'numberposts' => 20, | |
'post_type' => 'custom_post_type', | |
'tax_query' => array( | |
array( | |
'taxonomy' => 'custom_taxonomy', | |
'field' => 'slug', | |
'terms' => array( 'termslug1', 'termslug2' ) |
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 $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); |
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 datetime | |
x = datetime.datetime.now() | |
print(x.strftime("%Y-%m-%d %H:%M:%S")) |
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
find . -type f -name '*.jpeg' -print0 | xargs -0 rename 's/\.jpeg/\.jpg/' |
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
using Microsoft.AspNetCore.Identity; | |
string UserID = User.FindFirstValue(ClaimTypes.NameIdentifier); |
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> | |
import { page } from '$app/stores'; | |
export let type = 'website'; // or article, or music.album etc. See https://ogp.me/#types | |
export let title = ''; | |
export let description = ''; | |
export let image = '/img/social/preview.jpg'; | |
export let path = $page.url.pathname; |
OlderNewer