Skip to content

Instantly share code, notes, and snippets.

@wycks
wycks / chrome-font-fix.css
Last active December 9, 2016 20:09
Chrome font render order
/* chrome fix render svg first */
@media screen and (-webkit-min-device-pixel-ratio:0) {
@font-face {
font-family: 'LarsseitBold';
src: url('../font/good/larsseit-bold.svg') format('svg');
}
@font-face {
font-family: 'LarsseitExtraBold';
src: url('../font/good/larsseit-extrabold.svg') format('svg');
}
@wycks
wycks / .gitignore
Last active August 29, 2015 14:04
.gitignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@wycks
wycks / wp-config.php
Last active September 26, 2015 07:27
Multi Environment wp-config.php
<?php
/**
* The base configurations of the WordPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, WordPress Language, and ABSPATH. You can find more information
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
*
* This file is used by the wp-config.php creation script during the
@wycks
wycks / functions.php
Created September 17, 2014 12:47
WordPress SEO filter to remove from dashboard
add_filter( 'wpseo_use_page_analysis', '__return_false' );
@wycks
wycks / thing.py
Last active January 30, 2025 00:30
python thing
import numpy as np
import math
import random
import time
def gcd_of_list(lst):
"""Returns GCD of a list of numbers, ignoring zeros."""
filtered_lst = [num for num in lst if num != 0] # Ignore zeros
if not filtered_lst:
return 0 # If all are zeros, return 0
Lexical or Preprocessor Issue (Xcode): 'Flutter/Flutter.h' file not found
/Users/kkkt/.pub-cache/hosted/pub.dev/wakelock_plus-1.3.1/ios/wakelock_plus/Sources/wakelock_plus/in
clude/wakelock_plus/WakelockPlusPlugin.h:0:8
Lexical or Preprocessor Issue (Xcode): 'Flutter.h' file not found
/Users/kk/.pub-cache/hosted/pub.dev/wakelock_plus-1.3.1/ios/wakelock_plus/Sources/wakelock_plus/me
ssages.g.m:8:8