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 | |
/* | |
* Plugin Name: FrontlineSMS-Posts | |
* Plugin URI: https://gist.github.com/1617749 | |
* Description: Plugin to create WordPress post from Frontline SMS, based on a plugin by Kaka E. Prakasa ( https://github.com/pr4ka5a/wp-frontlinesms_posts/ ) | |
* Author: AxWax | |
* Version: 0.1 | |
* Author URI: http://axwax.de | |
*/ |
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
/** | |
* Xtreme One | |
* | |
* @copyright Copyright 2010-2012, dynamicinternet GmbH | |
* @license see http://xtreme-theme.com/licence/ | |
* @link http://xtreme-theme.com | |
* @package xtreme-one | |
**/ | |
(function(b){b.fn.extend({xtremeTweets:function(c){var d={username:"",showAvatar:false,showUsername:false,showFollower:false,numberTweets:5,avatarSize:40};this.options=b.extend(d,c);var e=this;return this.each(function(){var f=b(this);var g="";b('<ul class="xtreme-tweets"><li class="preLoader">'+xtreme_last_tweets.l10n.loading+"</li></ul>").appendTo(f);b.ajax({type:"GET",url:"https://api.twitter.com/1/statuses/user_timeline.json?screen_name="+e.options.username+"&count="+e.options.numberTweets+"",dataType:"jsonp",error:function(i,j,h){f.find("ul.xtreme-tweets").append("<li>An error occurred "+h+"</li>");},success:function(h){b("li.preLoader").remove();b.each(h,function(l,n){var p=n.created_at;var j=n.text.replace(/((https?|s?ftp|ssh)\:\/\/[^\"\s\<\>]*[^.,;'\">\:\s\<\>\)\]\!])/g,function(i){ret |
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 | |
// add event to google calendar | |
echo '<a href="' . addToGoogleCalendar("Let's test this", "next wednesday 2pm", "next wednesday 4pm", "right here, right now", "bla blah rhubarb http://axwax.de") . '">next weds 2pm</a><br/>'; | |
echo '<a href="' . addToGoogleCalendar("Breakfast at Tiffany's", "tomorrow 8am") . '">Breakfast at Tiffany\'s</a>'; | |
function addToGoogleCalendar($title='', $startdate='', $enddate='', $location='', $details='') | |
{ | |
$startdate = ($startdate ? $startdate : time()); | |
$startdate = (is_numeric($startdate) ? $startdate : strtotime($startdate)); |
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
{ | |
"basics": { | |
"name": "Axel Minet", | |
"label": "Web Developer", | |
"summary": | |
"Axel is a web developer based in Cambridge (UK), specialising in PHP, MySQL, WordPress and Javascript. He has an Audio Engineering background and is an avid maker, with a strong interest in machine learning, electronics and IoT systems.", | |
"website": "https://axwax.uk", | |
"email": "[email protected]", | |
"location": { | |
"city": "Berching", |
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
# MIDI note visualiser for Raspberry Pi Pico and TM1638 LED&KEY module by @AxWax | |
# | |
# Demo: https://twitter.com/AxWax/status/1480659594342899713 | |
# | |
# This is heavily based on and requires | |
# the SimpleMIDIDecoder library by @diyelectromusic, which can be found at | |
# https://diyelectromusic.wordpress.com/2021/06/13/raspberry-pi-pico-midi-channel-router/ | |
# as well as the MicroPython TM1638 LED Driver library by mcauser from | |
# https://github.com/mcauser/micropython-tm1638 | |
# |
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
# MIDI to CV converter for Raspberry Pi Pico and MCP4725 DAC by @AxWax | |
# | |
# Demo: https://www.youtube.com/watch?v=aGfQHL1jU4I | |
# | |
# This is heavily based on and requires | |
# the SimpleMIDIDecoder library by @diyelectromusic, which can be found at | |
# https://diyelectromusic.wordpress.com/2021/06/13/raspberry-pi-pico-midi-channel-router/ | |
# | |
# | |
# Wiring: |
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
# A second CV out for the Raspberry Pi Pico MIDI to CV converter by @AxWax | |
# | |
# Demo: https://www.youtube.com/watch?v=aGfQHL1jU4I | |
# | |
# This is heavily based on and requires | |
# the SimpleMIDIDecoder library by @diyelectromusic, which can be found at | |
# https://diyelectromusic.wordpress.com/2021/06/13/raspberry-pi-pico-midi-channel-router/ | |
# | |
# The NeoPixel code requires the pi_pico_neopixel library by Blaž Rolih | |
# which can be found at https://github.com/blaz-r/pi_pico_neopixel |
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
# mlx90640_pygamer learn guide: | |
# * https://learn.adafruit.com/adafruit-mlx90640-ir-thermal-camera/circuitpython-thermal-camera# | |
# | |
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries | |
# SPDX-License-Identifier: MIT | |
# | |
# Adapted by David Glaude for 240x240 screen. | |
# SPI and I2C pins changed by AxWax for Pimoroni Pico Breakout Garden, MLX90640 Breakout and 1.3" LCD Breakout combo. | |
# | |
# 1) RedRobotics Pico to Zero Adaptor v0.2: |
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
@[email protected] | |
@[email protected] | |
@[email protected] | |
@[email protected] | |
@[email protected] | |
@[email protected] | |
@[email protected] | |
@[email protected] | |
@[email protected] | |
@[email protected] |
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 python3 | |
# Very quickly thrown together script to add (already followed) Mastodon users to a list. | |
# YMMV - it probably needs some tweaking to work for you | |
# relies on Mastodon.py and needs a "credentials.py" file with the variables access_token and api_base_url | |
# I created my access token following the docs at https://docs.joinmastodon.org/client/token/ and https://docs.joinmastodon.org/client/authorized/ | |
# but you might be able to get the access token by going to Settings|Development|New Application (I haven't tried though). | |
# As there is a rate limit for usage of the API I wouldn't try to import lots of users at once - I imported 132 users and it worked though... | |
# @[email protected] |
OlderNewer