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
<?php | |
namespace Drupal\symfony_mailer_office365\Transport; | |
use Symfony\Component\Mailer\Transport\Dsn; | |
use Symfony\Component\Mailer\Transport\Smtp\Auth\AuthenticatorInterface; | |
use Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport; | |
use Symfony\Component\Mailer\Transport\Smtp\EsmtpTransportFactory; | |
use Symfony\Component\Mailer\Transport\TransportFactoryInterface; | |
use Symfony\Component\Mailer\Transport\TransportInterface; |
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
#!/usr/bin/env stack | |
-- stack --resolver lts-6.10 runghc --package sqlite-simple --package text --package time | |
{-# LANGUAGE OverloadedStrings #-} | |
import Control.Applicative | |
import Control.Monad | |
import Data.Monoid | |
import Data.Foldable | |
import Data.Maybe |
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
// This doesn't seem to work. The browser only noticed the CSS file if it completely replaced <link type="text/css" rel="stylesheet" href="res-min/themes/default.css">. | |
// So, in a worst-case scenario, you can just copy that CSS file, add your changes to it, host it on Github and do the replacement with a UserCustom extension (https://github.com/benweet/stackedit/wiki/UserCustom-extensions). | |
// Also tried onReady https://github.com/benweet/stackedit/wiki/userCustom.onReady | |
$(document).ready( function() { | |
var loadCSS = function(href) { | |
var cssLink = $("<link rel='stylesheet' type='text/css' href='"+href+"'>"); | |
$("head").append(cssLink); | |
}; | |
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
flags: {} | |
packages: | |
- '.' | |
extra-deps: | |
- Win32-notify-0.3.0.1 | |
- reddit-0.1.1.0 | |
resolver: lts-2.13 |
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
{-# LANGUAGE QuasiQuotes #-} | |
{-# LANGUAGE TemplateHaskell #-} | |
{-# LANGUAGE TypeFamilies #-} | |
{-# LANGUAGE FlexibleContexts #-} | |
module Yesod.DataSource.Data where | |
import Yesod | |
import Data.Text (Text) | |
-- Subsites have foundations just like master sites. |
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
<?php | |
// Some newtypes that allow for richer type hinting in Matt Pryor's Lazy\Sequence library. https://bitbucket.org/mkjpryor/lazy-sequence/wiki/Home | |
interface ArrayInterface extends Traversable { | |
} | |
class Finite implements IteratorAggregate, ArrayInterface { |
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
<?php | |
class Test { | |
private $f = NULL; | |
public function addFunction( callable $f ) { | |
if ($this->f === NULL) { | |
$this->f = $f; | |
} |