Skip to content

Instantly share code, notes, and snippets.

View amitaibu's full-sized avatar

Amitai Burstein amitaibu

View GitHub Profile
@amitaibu
amitaibu / Main.elm
Created December 29, 2015 20:59
Hello world in Elm
import Graphics.Element exposing (..)
main =
show "Hello world"
drush si --debug -y
Using the Drush script found at /Users/amitai/.composer/vendor/drush/drush/drush.launcher
Starting Drush preflight. [0.01 sec, 2.8 MB] [preflight]
Cache HIT cid: 8.0-dev-commandfiles-0-b4193524a3d51226e4854e9337455b38 [0.01 sec, 2.87 MB] [debug]
Scanning into /etc/drush for /.*aliases\.drush(8|)rc\.php$/ [0.03 sec, 5.35 MB] [sitealias]
Scanning into /etc/drush for /self\.alias\.drush(8|)rc\.php$/ [0.03 sec, 5.35 MB] [sitealias]
Scanning into /Users/amitai/.composer/vendor/drush/drush/includes/.. for /.*aliases\.drush(8|)rc\.php$/ [0.03 [sitealias]
sec, 5.36 MB]
Scanning into /Users/amitai/.composer/vendor/drush/drush/includes/.. for /self\.alias\.drush(8|)rc\.php$/ [sitealias]
[0.04 sec, 5.36 MB]
drush si -y --debug
Phar detected. Proceeding to drush_main().Drush preflight prepare loaded autoloader at [0.01 sec, 3.41 MB] [preflight]
Starting Drush preflight. [0.01 sec, 3.42 MB] [preflight]
Loading drushrc "/Users/user/.drush/drushrc.php" into "home.drush" scope. [bootstrap]
[0.01 sec, 3.42 MB]
Cache HIT cid: 8.0.0-rc3-commandfiles-0-eb9c6efd5f3fd6da3fc676615d1d854f [0.02 [debug]
sec, 3.48 MB]
Scanning into /etc/drush for /.*aliases\.drush(8|)rc\.php$/ [0.04 sec, 7.38 [sitealias]
MB]
Scanning into /etc/drush for /self\.alias\.drush(8|)rc\.php$/ [0.04 sec, 7.39 [sitealias]
var jsdom = require("jsdom");
jsdom.env({
html: "<html><body></body></html>",
done: function(errs, window) {
global.window = window;
module.exports =
(function(){
window = {Date: Date};
$field = field_info_field('field_foo');
$field['translatable'] = TRUE;
field_save_field($field);

Looking for experienced web developers

Gizra is a 20+ person company, located in central Tel Aviv and US.

We work solely with Open Source technologies, some of our products are themselves released as Open Source. Our contributions help power websites like whitehouse.gov, The Economist, MSNBC and others. Among our clients are Harvard University, the European Commission and the UN.

It's important to us to work on interesting projects, with advanced technologies and clients who see us as partners. In particular we love projects that challenge us to figure out new stuff - technology and otherwise - and we look for people with a similar mindset.

Everyone at Gizra can code. We aim to hold ourselves to the highest coding standards and constantly seek better ways to do our work.

getJson : String -> String -> Effects Action
getJson url accessToken =
let
encodedUrl = Http.url url [ ("access_token", accessToken) ]
httpTask =
Task.toResult <|
Http.get decodeData encodedUrl
actionTask =
import Debug;
view arg1 =
let
d = Debug.log "arg1 is" arg1
in
div [] []
type Page
= Event
| User
type alias Model =
{ activePage : Page
-- If the user is anonymous, we want to know where to redirect them.
, nextPage : Maybe Page
}
import Json.Decode as Json exposing ((:=))
import Graphics.Element exposing (show)
import String
seralized : String
seralized =
"""
{\"data\":[{\"id\":3,\"label\":\"demo\",\"mail\":\"[email protected]\",\"companies\":[{\"id\":\"1\",\"label\":\"Lexihouse\",\"created\":\"1419533914\",\"updated\":\"1419533914\",\"logo\":{\"fid\":\"1\",\"uid\":\"1\",\"filename\":\"company1.jpg\",\"uri\":\"private:company1.jpg\",\"filemime\":\"imagejpeg\",\"filesize\":\"3388\",\"status\":\"1\",\"timestamp\":\"1419533914\",\"alt\":null,\"title\":null,\"width\":\"283\",\"height\":\"110\",\"image_styles\":{\"thumbnail\":\"http:dev-hedley.pantheon.iosystemfilesstylesthumbnailprivatecompany1.jpg?itok=CfZEAIN9\",\"medium\":\"http:dev-hedley.pantheon.iosystemfilesstylesmediumprivatecompany1.jpg?itok=wRX9CvmC\",\"large\":\"http:dev-hedley.pantheon.iosystemfilesstyleslargeprivatecompany1.jpg?itok=eDfVYpXr\"}}},{\"id\":\"2\",\"label\":\"Voltex\",\"created\":\"1419533914\",\"updated\":\"1419533914\",\"logo\":{\"fid\":\"2\",\"uid\":\"1\",\