Skip to content

Instantly share code, notes, and snippets.

Amitai Burstein amitaibu

Block or report user

Report or block amitaibu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View example.elm
NewGif maybeUrl ->
( Model model.topic (Maybe.withDefault model.gifUrl maybeUrl)
, Effects.task (Task.sleep (5 * second) `andThen` \_ -> NewGif)
View example.elm
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)
View Main.elm
import Effects exposing (Never)
import RandomGif exposing (init, update, view)
import StartApp
import Task
app =
{ init = init "funny cats"
View debug.elm
import Signal exposing (foldp, (<~))
import Mouse
import Time exposing (Time, fps)
import Graphics.Element exposing (..)
import Debug exposing (watch)
timeSoFar : Signal Time
timeSoFar =
d = "foo" "bar"
View gist:8756853

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;
View gist:9071413
<script src="// <>"></script>
<script src="// <>"></script>
View gist:9296748
<table class="views-table cols-0">
<tr class="odd views-row-first">
<td class="views-field views-field-field-eval-text-field">
entertaining and informative as always </td>
<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>
View angular-mock-backend.js
'use strict';
.constant('Config', {
view_dir: 'views/',
API: {
useMocks: true,
fakeDelay: 2000,
protocol: window.location.protocol.split(':')[0],
host: window.location.hostname,
View gist:9616193
diff --git a/commands/core/ b/commands/core/
index 420c4cd..f19eac2 100644
--- a/commands/core/
+++ b/commands/core/
@@ -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.
You can’t perform that action at this time.