Extracted from https://github.com/rpavlik/maya2osg/tree/master/src/GLSL
varying vec2 vTexCoord;
varying vec3 vNormal;
varying vec3 vEye;
void main() {
// requires C++11, compile with -std=c++11 flag | |
#include <string> | |
#include <unordered_map> | |
#include <vector> | |
#include <fstream> | |
#include <iostream> | |
#include <sstream> | |
#include <algorithm> | |
class Counter |
// requires C++11, compile with -std=c++11 flag | |
#include <stdio.h> | |
#include <string.h> | |
#include <ctype.h> | |
#include <algorithm> | |
namespace t1 | |
{ | |
template <typename T> |
// | |
// RecordAudio.swift | |
// | |
// This is a Swift 3.0 class | |
// that uses the iOS RemoteIO Audio Unit | |
// to record audio input samples, | |
// (should be instantiated as a singleton object.) | |
// | |
// Created by Ronald Nicholson on 10/21/16. Updated 2017Feb07 | |
// Copyright © 2017 HotPaw Productions. All rights reserved. |
Extracted from https://github.com/rpavlik/maya2osg/tree/master/src/GLSL
varying vec2 vTexCoord;
varying vec3 vNormal;
varying vec3 vEye;
void main() {
import UIKit | |
import CoreImage | |
func createQRFromString(str: String) -> CIImage? { | |
let stringData = str.data(using: .utf8) as? NSData | |
guard let f1 = CIFilter(name: "CIQRCodeGenerator") else { | |
return nil | |
} | |
import Foundation | |
let FILE_BUFFER_SIZE = 50000 | |
// source data | |
class DebtRec { | |
var company: String = "" | |
var phones: Array<String> = [] | |
var debt: Double = 0.0 | |
} |
import Foundation | |
let FILE_BUFFER_SIZE = 50000 | |
// source data | |
struct DebtRec { | |
var company: String | |
var phones: Array<String> | |
var debt: Double | |
} |
import Foundation | |
import JSON | |
let FILE_BUFFER_SIZE = 50000 | |
// source data | |
struct DebtRec { | |
var company: String | |
var phones: Array<String> | |
var debt: Double |
let table11: [simd_int4] = [ | |
[0, 0, 0, 0], [1, 0, 0, 0], [1, 0, 0, 0], [2, 0, 0, 0], [1, 0, 0, 0], [2, 0, 0, 0], [2, 0, 0, 0], [3, 0, 0, 0], | |
[1, 0, 0, 0], [2, 0, 0, 0], [2, 0, 0, 0], [3, 0, 0, 0], [2, 0, 0, 0], [3, 0, 0, 0], [3, 0, 0, 0], [2, 0, 0, 0], | |
[1, 0, 0, 0], [2, 0, 0, 0], [2, 0, 0, 0], [3, 0, 0, 0], [2, 0, 0, 0], [3, 0, 0, 0], [3, 0, 0, 0], [4, 0, 0, 0], | |
[2, 0, 0, 0], [3, 0, 0, 0], [3, 0, 0, 0], [4, 0, 0, 0], [3, 0, 0, 0], [4, 0, 0, 0], [4, 0, 0, 0], [3, 0, 0, 0], | |
[1, 0, 0, 0], [2, 0, 0, 0], [2, 0, 0, 0], [3, 0, 0, 0], [2, 0, 0, 0], [3, 0, 0, 0], [3, 0, 0, 0], [4, 0, 0, 0], | |
[2, 0, 0, 0], [3, 0, 0, 0], [3, 0, 0, 0], [4, 0, 0, 0], [3, 0, 0, 0], [4, 0, 0, 0], [4, 0, 0, 0], [3, 0, 0, 0], | |
[2, 0, 0, 0], [3, 0, 0, 0], [3, 0, 0, 0], [2, 0, 0, 0], [3, 0, 0, 0], [4, 0, 0, 0], [4, 0, 0, 0], [3, 0, 0, 0], | |
[3, 0, 0, 0], [4, 0, 0, 0], [4, 0, 0, 0], [3, 0, 0, 0], [4, 0, 0, 0], [5, 0, 0, 0], [5, 0, 0, 0], [2, 0, 0, 0], | |
[1, 0, 0, 0], [2, 0, 0, 0], [2, 0, 0, 0], [3, 0, 0, 0], [2, 0, |