We need to generate secret key for development environment.
mix phoenix.gen.secret
# ednkXywWll1d2svDEpbA39R5kfkc9l96j0+u7A8MgKM+pbwbeDsuYB8MP2WUW1hf
Let'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 |
** Add repository and install bitcoind ** | |
sudo apt-get install build-essential | |
sudo apt-get install libtool autotools-dev autoconf | |
sudo apt-get install libssl-dev | |
sudo apt-get install libboost-all-dev | |
sudo add-apt-repository ppa:luke-jr/bitcoincore | |
sudo apt-get update | |
sudo apt-get install bitcoind | |
mkdir ~/.bitcoin/ && cd ~/.bitcoin/ |
'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'); |