We need to generate secret key for development environment.
mix phoenix.gen.secret
# ednkXywWll1d2svDEpbA39R5kfkc9l96j0+u7A8MgKM+pbwbeDsuYB8MP2WUW1hfLet's generate User model and controller.
| using System; | |
| using System.Collections; | |
| using UnityEngine; | |
| namespace SMS.Tools | |
| { | |
| public class AudioSampleData | |
| { | |
| public float rootMeanSquared; |
| using System; | |
| public class DelegateExamples | |
| { | |
| public void Run() | |
| { | |
| Action action1 = delegate { /*Do something*/ }; | |
| action1(); | |
| FunctionWithOnComplete(action1); |
| # In Gemfile: gem 'agora_dynamic_key', '~> 0.1.0' | |
| require 'dynamic_key' | |
| class Agora | |
| EXPIRATION_TIME_IN_SECONDS = 3600*3 | |
| def generate_rtc_token channel_name = 'any_channel_name' | |
| params = { |
| using UnityEngine; | |
| using System; | |
| public class MathParabola | |
| { | |
| public static Vector3 Parabola(Vector3 start, Vector3 end, float height, float t) | |
| { | |
| Func<float, float> f = x => -4 * height * x * x + 4 * height * x; |
| class Dog | |
| attr_writer :name | |
| def initialize(name) | |
| @name = name | |
| end | |
| def bark | |
| puts "patrick" | |
| end |
| require "active_record" | |
| ActiveRecord::Base.establish_connection('postgres:///testing') | |
| ActiveRecord::Migration.verbose = false | |
| ActiveRecord::Migration.class_eval do | |
| create_table :played_quizzes, force: true do |t| | |
| t.integer :player_ids, array: true | |
| t.json :quiz_snapshot | |
| end |
| 'use strict' | |
| var gulp, sass, babelify, browserify, watchify, source, util; | |
| gulp = require('gulp'); | |
| sass = require('gulp-sass'); | |
| babelify = require('babelify') | |
| browserify = require('browserify'); | |
| watchify = require('watchify'); | |
| source = require('vinyl-source-stream'); |
| using UnityEngine; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine.UI; | |
| /// <summary> | |
| /// SpriteCreator, a runtime atlassing system for Unity Sprites. | |
| /// Tries to not create any unneccessary textures, cleans all references when Flushed. | |
| /// Can use with or without the atlassing, just call AddToAtlas and Build when using atlasses. | |
| /// Full control over which atlases to add images to. |