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
/** | |
* This software is in the public domain. Where that dedication is not recognized, | |
* you are granted a perpetual, irrevokable license to copy and modify this file | |
* as you see fit. | |
* | |
* Requires SDL 2.0.4. | |
* Devices that do not support Metal are not handled currently. | |
**/ | |
#import <UIKit/UIKit.h> |
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
// | |
// RecipePageRenderer.swift | |
// (c) 2014 Nate Cook, licensed under the MIT License | |
// | |
import UIKit | |
import AVFoundation | |
/// Units for printing content insets | |
let POINTS_PER_INCH: CGFloat = 72 |
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
Shader "Custom/WaveExplo" { | |
Properties { | |
_MainTex ("", 2D) = "white" {} | |
_CenterX ("CenterX", Range(-1,2)) = 0.5 | |
_CenterY ("CenterY", Range(-1,2)) = 0.5 | |
_Radius ("Radius", Range(-1,1)) = 0.2 | |
_Amplitude ("Amplitude", Range(-10,10)) = 0.05 | |
} | |
SubShader { |
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
/* | |
* Copyright (c) 2017 Emil Davtyan | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining | |
* a copy of this software and associated documentation files (the | |
* "Software"), to deal in the Software without restriction, including | |
* without limitation the rights to use, copy, modify, merge, publish, | |
* distribute, sublicense, and/or sell copies of the Software, and to | |
* permit persons to whom the Software is furnished to do so, subject to | |
* the following conditions: |
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
# xcode-build-bump.sh | |
# @desc Auto-increment the build number every time the project is run. | |
# @usage | |
# 1. Select: your Target in Xcode | |
# 2. Select: Build Phases Tab | |
# 3. Select: Add Build Phase -> Add Run Script | |
# 4. Paste code below in to new "Run Script" section | |
# 5. Drag the "Run Script" below "Link Binaries With Libraries" | |
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.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
/*! | |
Return the -boundingBox of another node, converted into this node's local | |
coordinate space. | |
*/ | |
-(CGRect) boundingBoxConvertedToNodeSpace:(CCNode *)other | |
{ | |
// Get the bottomLeft and topRight corners of the other node's bounding box | |
// in the other node's coordinate space. | |
CGRect boundingBox = [other boundingBox]; | |
CGPoint bottomLeft = CGPointMake(boundingBox.origin.x, boundingBox.origin.y); |
NewerOlder