| company | aff url | info |
|---|---|---|
| Amazon Wishlist | https://www.amazon.com/hz/wishlist/ls/3PM30J30P12O | not affil. ref |
| Airtable | https://airtable.com/invite/r/3sNKYPWh | $10 credit |
| Atwood Rope | http://atwoodrope.refr.cc/chuckr | 20% off order |
| Brilliant.org | https://brilliant.org/ref/paopg2qVb8/ | 3 free months of Premium sub |
| Brunt Workwear | https://i.refs.cc/leG0HPlV?smile_ref=eyJzbWlsZV9zb3VyY2UiOiJzbWlsZV91aSIsInNtaWxlX21lZGl1bSI6IiIsInNtaWxlX2NhbXBhaWduIjoicmVmZXJyYWxfcHJvZ3JhbSIsInNtaWxlX2N1c3RvbWVyX2lkIjoyNTk5NzgwNjU5fQ%3D%3D | $10 off |
This file contains hidden or 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 | |
| /** | |
| * Remove jQuery Migrate script | |
| */ | |
| function ryno_remove_jquery_migrate( $scripts ) { | |
| if ( isset( $scripts->registered['jquery'] ) ) { | |
| $script = $scripts->registered['jquery']; | |
| if ( $script->deps ) { // Check whether the script has any dependencies | |
| $script->deps = array_diff( $script->deps, array( 'jquery-migrate' ) ); |
This file contains hidden or 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 | |
| $url = 'https://icanhazdadjoke.com/'; | |
| $ch = curl_init($url); | |
| curl_setopt($ch, CURLOPT_HTTPHEADER, ['Accept:text/plain']); | |
| curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET'); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
| $data = curl_exec($ch); | |
| curl_close($ch); | |
| echo $data; |
This file contains hidden or 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
| { | |
| "username":"twitch.tv/{{ChannelName}} [via RynoBot]", | |
| "content":"@everyone {{ChannelName}} just went LIVE on Twitch! See you in chat! clintusHYPE", | |
| "embeds":[ | |
| { | |
| "title":"{{ChannelUrl}}", | |
| "url":"{{ChannelUrl}}", | |
| "color":6570404, | |
| "thumbnail":{ | |
| "url":"https://static-cdn.jtvnw.net/jtv_user_pictures/b26daa03-975b-4a5d-9dea-a7fe9505a63f-profile_image-300x300.png" |
This file contains hidden or 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
| <html> | |
| <head> | |
| <style> | |
| .wrapper { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(200px, 220px)); | |
| grid-gap: 20px; | |
| } | |
| .box { | |
| background-color: #ebebeb; |
This file contains hidden or 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
| Verifying that "chuckreynolds.id" is my Blockstack ID. https://onename.com/chuckreynolds |
This file contains hidden or 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 | |
| function get_twitter_followers() { | |
| $ttl = 2 * HOUR_IN_SECONDS; | |
| $cache = get_option( 'my_twitter_followers' ); | |
| if ( empty( $cache['timeout'] ) || $cache['timeout'] < time() ) { | |
| $followers = wp_remote_get( ... ); | |
| $cache = array( | |
| 'count' => $followers, |
This file contains hidden or 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
| ./ngrok http -host-header=rewrite localsitename.app:80 |
This file contains hidden or 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
| // Disable users REST API endpoints | |
| add_action( 'rest_endpoints', function( $endpoints) { | |
| foreach ( $endpoints as $endpoint => $args ){ | |
| if( false !== strpos( '/wp/v2/users', $endpoint ) ){ | |
| unset( $endpoints[ $endpoint ] ); | |
| } | |
| } | |
| return $endpoints; | |
| }); |
This file contains hidden or 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
| # editorconfig.org | |
| root = true | |
| [*] | |
| charset = utf-8 | |
| end_of_line = lf | |
| indent_size = 4 | |
| indent_style = tab | |
| insert_final_newline = true | |
| trim_trailing_whitespace = true |