Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn.
Author: Kaspars Dambis
kaspars.net / @konstruktors
| /* | |
| * $status = { | |
| * "status": "online" | "offline", | |
| * "cover": "open" | "closed", (opt) | |
| * "feeding": "feeding" | "not", (opt) | |
| * "autocutterError": "error" | "not", (opt) | |
| * "unrecoverableError": "error" | "not", (opt) | |
| * "recoverableError": "error" | "not", (opt) | |
| * "paper": "paperEnd" | "paperPresent" (opt) | |
| * } |
| # Keep in mind that when asking for a `return` after another, only the first one will be output. | |
| # This example is meant as a simple starting point, to show how to get the information in the simplest available way. | |
| # Google Chrome | |
| tell application "Google Chrome" to return URL of active tab of front window | |
| tell application "Google Chrome" to return title of active tab of front window | |
| # Google Chrome Canary | |
| tell application "Google Chrome Canary" to return URL of active tab of front window | |
| tell application "Google Chrome Canary" to return title of active tab of front window | |
| # Chromium |
| <?php | |
| function url_slug($string = null, $separator = "-") { | |
| if (is_null($string)) { | |
| return ""; | |
| } | |
| // Remove spaces from the beginning and from the end of the string | |
| $string = trim($string); |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Test App</title> | |
| </head> | |
| <style> | |
| html, body { | |
| height: 100%; |
| { | |
| "name": "jaytaph/security-example", | |
| "require": { | |
| "symfony/security-core": "~2.8" | |
| }, | |
| "authors": [ | |
| { | |
| "name": "Joshua Thijssen", | |
| "email": "jthijssen@noxlogic.nl" | |
| } |
Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn.
Author: Kaspars Dambis
kaspars.net / @konstruktors
| import { NgModule, Component, OnInit } from '@angular/core' | |
| import { AngularRxRest, AngularRxRestConfiguration } from './rxrest' | |
| @Component({ | |
| selector: 'prefix-main', | |
| template: '<prefix-foo></prefix-foo>' | |
| }) | |
| export class MainComponent implements OnInit { | |
| loading: boolean = false | |
| loggedIn: boolean = false |
| <?php | |
| namespace Behat\CommonContext; | |
| use Behat\BehatBundle\Context\BehatContext; | |
| use Behat\Behat\Event\ScenarioEvent; | |
| use Doctrine\ORM\Tools\SchemaTool; | |
| /** | |
| * Provides hooks for building and cleaning up a database schema with Doctrine. |
| #!/bin/bash | |
| # Author: Erik Kristensen | |
| # Email: erik@erikkristensen.com | |
| # License: MIT | |
| # Nagios Usage: check_nrpe!check_docker_container!_container_id_ | |
| # Usage: ./check_docker_container.sh _container_id_ | |
| # | |
| # Depending on your docker configuration, root might be required. If your nrpe user has rights | |
| # to talk to the docker daemon, then root is not required. This is why root privileges are not |