Resources moved to a git repository in order to make easy fork & contribution
https://github.com/jmolivas/drupal8-links
Feel free to fork & contribute :)
(def jquery (js* "$")) | |
(defn show [msg] | |
(let [data-as-json ((js* "JSON.stringify") msg nil 4)] | |
((js* "alert") data-as-json))) | |
(defn make-js-map | |
"makes a javascript map from a clojure one" | |
[cljmap] | |
(let [out (js-obj)] |
<!DOCTYPE HTML> | |
<html lang="en-US" ng-app="Site"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Angular.js Tutorial</title> | |
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/css/bootstrap.min.css" rel="stylesheet"> | |
<style type="text/css"> | |
body { | |
padding-top:60px; | |
} |
#!/usr/bin/env ruby | |
cmd = %q[echo '3...'; sleep 1; | |
echo '2...'; sleep 1; | |
echo '1...'; sleep 1; | |
echo 'Liftoff!'] | |
puts '------ beginning command ------' | |
output_log = [] | |
IO.popen(cmd).each do |line| |
Resources moved to a git repository in order to make easy fork & contribution
https://github.com/jmolivas/drupal8-links
Feel free to fork & contribute :)
#!/bin/bash | |
PSITE='your-site-name' | |
PUUID='aaaaaaaa-1111-bbbb-2222-cccccccccccc' | |
PEMAIL='your-email@example.com' | |
PPASS='your-password-here--i-know' | |
# Authenticate with Terminus | |
drush pauth $PEMAIL --password=$PPASS |
#!/bin/bash | |
# baseline advagg + httprl configuration | |
$conf['advagg_bundler_active'] = 1; | |
$conf['advagg_cache_level'] = 1; | |
$conf['advagg_combine_css_media'] = 0; | |
$conf['advagg_core_groups'] = 0; | |
$conf['advagg_css_compressor'] = 2; | |
$conf['advagg_css_inline_compressor'] = 2; | |
$conf['advagg_css_inline_compress_if_not_cacheable'] = 1; |
# Shifted this file to my blog | |
The new link is on my blog: https://wei2912.github.io/index.html#introduction_to_haskell | |
I'll update the post on my blog from now on. | |
--- | |
Introduction to Haskell | |
--- |
This does NOT work on Raspberry Pi 2!
sudo dd bs=4M if=fxos-pi-gpio.img of=/path/to/your/disk
sudo dd bs=4m if=fxos-pi-gpio.img of=/dev/rdisk5
(do rdisk, not disk here!)Drupal 7's default behavior is to redirect the user to the full display of a node after it has been saved.
If you want to stay in the edit form after saving, add this snippet to a custom module adjusting the module namespace in the two functions.
For Drupal 8 or 9, have a look at the comment below by @zanvidmar.
# Taxonomy terms: | |
- https://gist.github.com/facine/35bb291811c146b6fc9e#file-create_taxonomy_term-php | |
# Menu links: | |
- https://gist.github.com/facine/35bb291811c146b6fc9e#file-create_menu_link-php | |
# File items: | |
- https://gist.github.com/facine/35bb291811c146b6fc9e#file-create_file-php | |
# Nodes: |