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
/* | |
* Simple javascript mobile OS / iphone/ android detector | |
* | |
* License: GPLv3+ | |
* Author: justin.kelly.org.au | |
* | |
*/ | |
$(document).ready(function() { | |
var deviceIphone = "iphone"; |
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
var isMobile = function() { | |
var mobile = (/iphone|ipad|ipod|iemobile|android|meego|nokia|blackberry|mini|symbian|windows\sce|palm/gi.test(navigator.userAgent.toLowerCase())); | |
if (mobile) return true; | |
} |
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
{ | |
"customConfig":"config.js", | |
"autoUpdateElement":true, | |
"language":"", | |
"defaultLanguage":"en", | |
"contentsLangDirection":"", | |
"enterMode":1, | |
"forceEnterMode":false, | |
"shiftEnterMode":2, | |
"docType":"<!DOCTYPE html>", |
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
defmodule Citrusbyte do | |
@moduledoc """ | |
This module contains custom Citrusbyte implementations of native functions, | |
For fun and profit. | |
All unit tests are in the form of doctests. | |
""" | |
@doc """ | |
Flattens multi dimensional arrays. |
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
mix new messenger --sup |
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
# Run "mix help deps" to learn about dependencies. | |
defp deps do | |
[ | |
{:gen_smtp, "~> 0.11.0"} | |
] | |
end |
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
config :messenger, smtp_opts: [[port: 2525]] |
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
defmodule Messenger do | |
use Application | |
def start(_type, _args) do | |
Messenger.Supervisor.start_link(name: Messenger.Supervisor) | |
end | |
end |
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
defmodule Messenger.Supervisor do | |
use Supervisor | |
def start_link(opts) do | |
Supervisor.start_link(__MODULE__, :ok, opts) | |
end | |
def init(:ok) do | |
children = [ | |
worker(:gen_smtp_server, [Messenger.Server, Application.get_env(:messenger, :smtp_opts)]) |
OlderNewer