This file contains hidden or 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
const candyCharacters = { | |
"emi": { | |
name: "Emi", | |
image: "https://i.imgur.com/BYC1iWI.jpeg", | |
age: "18", | |
description: "I'm a shy Japanese schoolgirl, I love reading mangas", | |
url: "https://candy.ai/conversations/emi-kagawa", | |
cta_text: "CHAT WITH ME", | |
timeout: 3, | |
}, |
This file contains hidden or 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
defmodule MyApp.StringHelperTest do | |
use MyApp.DataCase | |
alias MyApp.StringHelpers | |
describe "titleize/1 with valid string input" do | |
test "returns titleized version of string" do | |
assert "Man From The Boondocks" == StringHelpers.titleize("man from the boondocks") | |
assert "The Man Without A Past" == StringHelpers.titleize("TheManWithoutAPast") | |
assert "Raiders Of The Lost Ark" == StringHelpers.titleize("raiders_of_the_lost_ark") |
This file contains hidden or 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
[ | |
["Italia", "Italia"], | |
["Georgia", "Georgia"], | |
["Italia", "Italia"], | |
["Italia", "Italia"], | |
["Italia", "Italia"], | |
["Italia", "Italia"], | |
["Italia", "Italia"], | |
["Italia", "Italia"], | |
["Italia", "Italia"], |
This file contains hidden or 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
Stem Serle - Withdrawal Center | Via XXV Aprile, 20, 25080 Serle | |
---|---|---|
Stem San Zeno Naviglio - Withdrawal Center | Via Roma, 26, 25010 San Zeno Naviglio |
This file contains hidden or 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
class Tag < ApplicationRecord | |
has_many :taggings | |
has_many :posts, through: :taggings | |
end |
This file contains hidden or 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
class PostsController < ApplicationController | |
def index | |
params[:tag] ? @posts = Post.tagged_with(params[:tag]) : @posts = Post.all | |
end | |
def show | |
@post = Post.find(params[:id]) | |
end | |
def new |
This file contains hidden or 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
run.config: | |
engine: elixir | |
dev_packages: | |
- inotify-tools | |
extra_packages: | |
- nodejs | |
fs_watch: true | |
cache_dirs: | |
- assets/node_modules | |
extra_path_dirs: |
This file contains hidden or 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
import { Socket, Presence } from './Phoenix' | |
const TIMEOUT = 10000 | |
const URL = 'ws://localhost:4000/socket' | |
const ROOM = 'user_chats:13' | |
export default (user, onChat) => { | |
// construct a socket | |
console.time('connection to socket'); | |
const socket = new Socket(URL, { params: { token: "V3RGTm9GbjRFdFRldzE4QzNRSU9UUT09" }}) |
This file contains hidden or 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
import React, { Component } from 'react' | |
import { AsyncStorage } from 'react-native' | |
import request from 'axios' | |
import { NavigationProvider, StackNavigation } from '@exponent/ex-navigation' | |
import { connect } from 'react-redux' | |
import Router from 'app/routes' | |
import { UserActions } from 'app/store/actions' | |
import { UserSelectors } from 'app/store/selectors' | |
let connectProps = {...UserActions} |
NewerOlder