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
<div class="bbbx-widget" data-widget="11"></div> | |
<script type="text/javascript"> | |
var bbbx_widget_id = 11; | |
var bbbx_visual = false; | |
var bbbx_share_enabled = false; | |
function bbbx_config() { | |
this.subscribe('published', function(e) { | |
BBBX.$('.bubobox_result').html('<a href="javascript:mybb.openPlayer(\'' + e.entryId + '\')">Video bekijken</a> | <a href="javascript:mybb.openRecorder()">Video opnieuw opnemen</a>'); | |
BBBX.$('#video_id').val(e.entryId); |
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 sum( $number1, $number2 ) | |
{ | |
if( ! is_int( $number1 ) || ! is_int( $number2 ) ) | |
throw new Exception( 'Both arguments should be numeric' ); | |
return $number1 + $number2; | |
} |
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
var http = require('http'), | |
md5 = require('MD5'); | |
var options = { | |
method: 'HEAD', | |
host: 'www.gravatar.com', | |
port: 80, | |
path: '/avatar/' + md5('[email protected]') + '?d=http://bla.com' | |
}; | |
var req = http.request(options, function(res) { |
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
/** | |
* This is an example BBBX widget module | |
* It can be used to add additional functionallity to the BuboBox platform in a modularized way | |
*/ | |
window.bbbx_modules = window.bbbx_modules || []; // Make modules array if not yet exists | |
window.bbbx_modules.push(function(sandbox, $) { | |
var NAME = 'custommodule'; | |
var exports = { |
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
/** | |
* BuboBox form callback module | |
* | |
* @author Wim Mostmans ([email protected]) | |
* @license BSD | |
* | |
* Copyright (c) 2014 BuboBox | |
*/ | |
window.bbbx_modules = window.bbbx_modules || []; // Make modules array if not yet exists |
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
/** | |
* BuboBox form callback module | |
* | |
* @author Wim Mostmans ([email protected]) | |
* @license BSD | |
* | |
* Copyright (c) 2014 BuboBox | |
*/ | |
window.bbbx_modules = window.bbbx_modules || []; // Make modules array if not yet exists | |
window.bbbx_modules.push(function(sandbox, $) { |
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
/** | |
* This is an example BBBX widget module | |
* It can be used to add additional functionallity to the BuboBox platform in a modularized way | |
*/ | |
window.bbbx_modules = window.bbbx_modules || []; // Make modules array if not yet exists | |
window.bbbx_modules.push(function(sandbox, $) { | |
var NAME = 'custommodule'; | |
/** |
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
#!/bin/sh | |
# modified by jfro from http://www.cnysupport.com/index.php/linode-dynamic-dns-ddns-update-script | |
# Update: changed because the old IP-service wasn't working anymore | |
# Uses curl to be compatible with machines that don't have wget by default | |
# modified by Ross Hosman for use with cloudflare. | |
# | |
# Place at: | |
# /usr/local/bin/cf-ddns.sh | |
# if you're lazy (like me): curl https://gist.githubusercontent.com/Sitebase/8552675cb5401fb42791/raw/e646241fd4fc14a0736eab6b5422ba97a3c1d242/cf-ddns.sh > /usr/local/bin/cf-ddns.sh && chmod +x /usr/local/bin/cf-ddns.sh && vim /usr/local/bin/cf-ddns.sh | |
# run `crontab -e` and add next line: |
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
#!/bin/sh | |
# modified by jfro from http://www.cnysupport.com/index.php/linode-dynamic-dns-ddns-update-script | |
# Update: changed because the old IP-service wasn't working anymore | |
# Uses curl to be compatible with machines that don't have wget by default | |
# modified by Ross Hosman for use with cloudflare. | |
# | |
# Place at: | |
# /usr/local/bin/cf-ddns.sh | |
# if you're lazy (like me): curl https://gist.githubusercontent.com/larrybolt/6295160/raw/9efbc7850613e06db1b415bdf4fbdd8361209865/cf-ddns.sh > /usr/local/bin/cf-ddns.sh && chmod +x /usr/local/bin/cf-ddns.sh && vim /usr/local/bin/cf-ddns.sh | |
# run `crontab -e` and add next line: |
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
# How to use: | |
# 1. Make sure you have a large version of the landscape cover and protrait cover and one large version of the icon | |
# 2. Put them in the same folder as this script, also add a dist folder, so the folder will look like: | |
# ipad-landscape.png | |
# ipad-portrait.png | |
# icon.png | |
# thisscript.sh | |
# dist | |
# 3. Now run thisscript.sh and the result will be available in the dist folder | |
log () |