Skip to content

Instantly share code, notes, and snippets.

View amitaibu's full-sized avatar

Amitai Burstein amitaibu

View GitHub Profile
NewGif maybeUrl ->
( Model model.topic (Maybe.withDefault model.gifUrl maybeUrl)
, Effects.task (Task.sleep (5 * second) `andThen` \_ -> NewGif)
)
update : Action -> Model -> (Model, Effects Action)
update action model =
case action of
RequestMore ->
( model
, getRandomGif model.topic
)
NewGif maybeUrl ->
( Model model.topic (Maybe.withDefault model.gifUrl maybeUrl)
import Effects exposing (Never)
import RandomGif exposing (init, update, view)
import StartApp
import Task
app =
StartApp.start
{ init = init "funny cats"
import Signal exposing (foldp, (<~))
import Mouse
import Time exposing (Time, fps)
import Graphics.Element exposing (..)
import Debug exposing (watch)
timeSoFar : Signal Time
timeSoFar =
let
d = Debug.watch "foo" "bar"

Build Status

"Site preview" module suite for Drupal 7.x

Zariz is a suite of Drupal modules and methodology, that models content (nodes) creation and editing similar to Git's branches, and allows generating static sites from the Drupal backend. You can read more about it in this blog post, and here.

The counterpart of Zariz which is responsible for the static site creation is

// If the location is a relative path, we need to add it to the existing
// scheme and host.
$location_uri = @parse_url($location);
if (empty($location_uri['schema'])) {
$location = $uri['scheme'] . '://' . $uri['host'] . $location;
}
<script src="//nlideposit.fundaciongsr.com/js/1bba.config.js <http://nlideposit.fundaciongsr.com/js/1bba.config.js>"></script>
<script src="//nlideposit.fundaciongsr.com/js/c8e6.cdl.js <http://nlideposit.fundaciongsr.com/js/c8e6.cdl.js>"></script>
<table class="views-table cols-0">
<tbody>
<tr class="odd views-row-first">
<td class="views-field views-field-field-eval-text-field">
entertaining and informative as always </td>
</tr>
<tr class="even">
<td class="views-field views-field-field-eval-text-field">
lack of presentation structure confused me a bit. Site building session had a bit of code that wasn't up for long. </td>
</tr>
'use strict';
angular.module('yourApp')
.constant('Config', {
view_dir: 'views/',
API: {
useMocks: true,
fakeDelay: 2000,
protocol: window.location.protocol.split(':')[0],
host: window.location.hostname,
diff --git a/commands/core/site_install.drush.inc b/commands/core/site_install.drush.inc
index 420c4cd..f19eac2 100644
--- a/commands/core/site_install.drush.inc
+++ b/commands/core/site_install.drush.inc
@@ -51,6 +51,7 @@ function drush_core_pre_site_install($profile = NULL) {
return drush_user_abort();
}
+
// Can't install without sites subdirectory and settings.php.