putStrLn "Hello, Haskell!"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\EasyAdminExtensions\Controller; | |
| use EasyCorp\Bundle\EasyAdminBundle\Config\Action; | |
| use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController; | |
| use EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto; | |
| use EasyCorp\Bundle\EasyAdminBundle\Event\BeforeCrudActionEvent; | |
| use EasyCorp\Bundle\EasyAdminBundle\Event\BeforeEntityPersistedEvent; | |
| use EasyCorp\Bundle\EasyAdminBundle\Event\BeforeEntityUpdatedEvent; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Single Command, runs 2 calls to gdbus to get the currently active Window from Gnome 3.x | |
| # Escaped so you can copy and paste into terminal directly | |
| gdbus call -e -d org.gnome.Shell -o /org/gnome/Shell -m org.gnome.Shell.Eval global.get_window_actors\(\)[`gdbus call -e -d org.gnome.Shell -o /org/gnome/Shell -m org.gnome.Shell.Eval global.get_window_actors\(\).findIndex\(a\=\>a.meta_window.has_focus\(\)===true\) | cut -d"'" -f 2`].get_meta_window\(\).get_wm_class\(\) | cut -d'"' -f 2 | |
| # Unescaped version, will not run | |
| # Broken down into 2 commands. | |
| # Call to Gnome to get the array location of the active Application | |
| gdbus call -e -d org.gnome.Shell -o /org/gnome/Shell -m \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| job "mapd" { | |
| datacenters = ["dc1"] | |
| type = "service" | |
| constraint { | |
| operator = "distinct_hosts" | |
| value = "true" | |
| } | |
| update { | |
| max_parallel = 1 | |
| min_healthy_time = "10s" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(e) { | |
| function t(t) { | |
| for (var n, s, r = t[0], l = t[1], d = t[2], c = 0, m = []; c < r.length; c++) s = r[c], a[s] && m.push(a[s][0]), a[s] = 0; | |
| for (n in l) Object.prototype.hasOwnProperty.call(l, n) && (e[n] = l[n]); | |
| u && u(t); | |
| while (m.length) m.shift()(); | |
| return o.push.apply(o, d || []), i() | |
| } | |
| function i() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Collect all forks of a github project and return the most recently pushed. | |
| Any alternatives I could find searched only the most recent forks of a project, | |
| which does not return accurate results for projects with many forks. | |
| Note that the GitHub API has a rate limit of 60 requests per hour for unauthenticated requests. | |
| You can create a personal access token in order to circumvent this, which will raise the limit |
This document describes the process of Symfony's Easy Admin Bundle, to process the given YAML configuration, with registered ConfigPass classes.
Those ConfigPasses are collections of private methods, which have e.g. action names hardcoded, so you can't reuse the "config auto-magic" for your new actions.
http://www.it.uu.se/edu/course/homepage/asd/ht14/Lecture%204.pdf
https://web.cs.dal.ca/~jin/3132/lectures/dp-13.pdf
https://www.cs.cmu.edu/~aldrich/214/slides/design-grasp.pdf
https://dzone.com/articles/solid-grasp-and-other-basic-principles-of-object-o
A collection of patterns/principles for achieving good design – patterns of assigning responsibility. Refer to software objects not domain objects.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Add repository | |
| ### https://launchpad.net/%7Eondrej/+archive/ubuntu/php | |
| ### https://launchpad.net/~ondrej/+archive/ubuntu/apache2 | |
| sudo add-apt-repository ppa:ondrej/php | |
| sudo add-apt-repository ppa:ondrej/apache2 | |
| sudo apt-get update | |
| sudo apt-get dist-upgrade | |

