View Supplier.php
error_reporting(E_ALL);
set_error_handler(function ($errno, $errstr, $errfile, $errline ) {
throw new \ErrorException($errstr, 0, $errno, $errfile, $errline);
});
register_shutdown_function(function () {
$last_error = error_get_last();
echo $last_error ['message'] . ' | ' . $last_error ['file'] . ' | ' . $last_error ['line'];
View .eslintrc.txt
{
"parser": "babel-eslint",
"env": {
"browser": true
},
"plugins": [
"react"
],
"extends": [
"eslint:recommended",
View prodigy-depends-on.el
(defvar prodigy-dependency-services nil
"An alist of the service name and some properties that aid in
managing service dependency.")
(defvar prodigy-dependency-service-status-change-hook nil
"A hook for listening in service status changes.")
(defconst prodigy-dependency-condition-prefix "prodigy-dependency-condition"
"A symbol prefix for easier debugging.")
View colored-words.el
(cons "freenode"
(concat ;; freenode
(propertize
"free" 'face '(:foreground "#e6e6e6"))
(propertize
"node" 'face '(:foreground "#4beb4a"))))
(cons "emacs"
(propertize
"emacs"
View browsing-w3m-anonymously-tor.el
;; If there are problems, shoot me an email at francisavmurillo@gmail.com.
;; As I want to make sure this works.
(with-eval-after-load 'w3m
(when (and (executable-find "polipo")
(executable-find "tor"))
(defcustom fn/w3m-polipo-cache-dir (expand-file-name "polipo-cache" user-emacs-directory)
"Polipo cache directory."
:type 'directory)
(defcustom fn/w3m-tor-cache-dir (expand-file-name "tor-cache" user-emacs-directory)
View projin.el
;;; projin.el --- Write projectile ignore files with a DSL -*- lexical-binding: t; -*-
;;
;; Filename: projin.el
;; Description:
;; Author: Francis Murillo
;; Maintainer:
;; Created: Wed Dec 28 21:36:00 2016 (+0800)
;; Version: 0.1
;; Package-Requires: ((emacs "24.4"))
;; Last-Updated:
View magin.el
;;; magin.el --- Write git ignore files with a DSL -*- lexical-binding: t; -*-
;;
;; Filename: magin.el
;; Description:
;; Author: Francis Murillo
;; Maintainer:
;; Created: Wed Dec 28 21:36:00 2016 (+0800)
;; Version: 0.1
;; Package-Requires: ((emacs "24.4"))
;; Last-Updated:
View OrgTbl YAML Export.el
(defun fn/orgtbl-to-yaml (table params)
"Convert an org table to yaml."
(lexical-let ((headers
(mapcar
(lambda (header)
(replace-regexp-in-string
" " "-"
(downcase header)))
(car table)))
(zip
View projectile-project-loader.el
(with-eval-after-load 'projectile
(defconst fn/project-file ".project.el"
"Project configuration file")
(defconst fn/project-local-file ".project-locals.el"
"Project local setting file")
(defconst fn/project-init-files (list fn/project-file fn/project-local-file)
"Project init files")
View projectile-project-loader.el
(with-eval-after-load 'projectile
(defconst fn/project-file ".project.el"
"Project configuration file")
(defconst fn/project-local-file ".project-locals.el"
"Project local setting file")
(defconst fn/project-init-files (list fn/project-file fn/project-local-file)
"Project init files")