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 | |
/** | |
* @param $value | |
* @param $option_value | |
*/ | |
function my_special_field( $value, $option_value ) { | |
?> | |
<tr> | |
<th scope="row" class="titledesc" colspan="2"> | |
<input type="text" name="my_special_field" value="<?php esc_attr( give_get_option( 'my_special_field' ); ?>" /> |
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 | |
/** | |
* @param $value | |
* @param $option_value | |
*/ | |
function my_custom_subtitle( $value, $option_value ) { | |
?> | |
<tr> | |
<th scope="row" class="titledesc" colspan="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
ropeObject.getHolder().addChildNode(ropeObject.getRope()) | |
links.forEach { link in | |
ropeObject.getHolder().addChildNode( link ) | |
} |
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
/** Generate our rope links **/ | |
var cnt:Float = 0.0 | |
var previousLink: SCNNode = ropeObject.getRope() | |
var links :[SCNNode] = [SCNNode]() | |
while cnt < 2.0 { | |
let link = ropeObject.getLink( y: Float(cnt) ) | |
links.append(link) | |
let joint = SCNPhysicsBallSocketJoint( | |
bodyA: link.physicsBody!, |
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
// | |
// Rope.swift | |
// BiminiRingToss | |
// | |
// Created by Christopher Flannagan on 8/19/17. | |
// Copyright © 2017 Christopher Flannagan. All rights reserved. | |
// | |
import Foundation | |
import SceneKit |
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
var geometry:SCNGeometry | |
geometry = SCNTorus(ringRadius: 0.5, pipeRadius: 0.1) | |
geometry.materials.first?.diffuse.contents = UIColor.blue | |
ring = SCNNode(geometry: geometry) | |
ring.physicsBody = SCNPhysicsBody(type: .dynamic, shape: nil) | |
ring.physicsBody?.mass = 5.0 |
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
var page; | |
var observable = require("data/observable"); | |
var pageData = new observable.Observable(); | |
exports.loaded = function(args) { | |
page = args.object; | |
var pushPlugin = require("nativescript-push-notifications"); | |
var self = pageData; | |
var iosSettings = { |
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
var page; | |
var observable = require("data/observable"); | |
var pageData = new observable.Observable(); | |
exports.loaded = function(args) { | |
page = args.object; | |
var pushPlugin = require("nativescript-push-notifications"); | |
var self = pageData; | |
// All the pushPlugin code you copied from the readme.md at the push notifications repo |
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 | |
$distinct_ids = function ( $groupby ) { | |
global $wpdb; | |
return "{$wpdb->posts}.ID"; | |
}; | |
add_filter( 'posts_groupby', $distinct_ids ); | |
$posts = get_posts( $args ); | |
remove_filter( 'posts_groupby', $distinct_ids ); |
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 | |
$flip_current = array_flip( $this->current_careers ); | |
foreach ( $careers_feed as $career ) { | |
/** | |
* check if post with post_name = $career['id'] exists | |
* | |
* If so, skip and remove from delete | |
*/ | |
$exists = $wpdb->get_var( $wpdb->prepare( |