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 =
StartApp.start
{ 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 =
let
d = Debug.watch "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

View common.inc
// 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="//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>
View gist:9296748
<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>
View angular-mock-backend.js
'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,
View gist:9616193
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.
You can’t perform that action at this time.