Skip to content

Instantly share code, notes, and snippets.

View jrdmcgr's full-sized avatar

Jared McGuire jrdmcgr

  • Qgiv
  • Central Florida, USA
  • 07:32 (UTC -05:00)
View GitHub Profile
@jrdmcgr
jrdmcgr / debug
Created August 18, 2017 16:41
Vagrant not working on CygWin / Babun
{ ~ } » VAGRANT_DEBUG_LAUNCHER=1 vagrant --debug ~ 127
2017/08/18 12:33:04 launcher: path = C:\HashiCorp\Vagrant\bin\vagrant.exe
2017/08/18 12:33:04 launcher: installerDir = C:\HashiCorp\Vagrant
2017/08/18 12:33:04 launcher: embeddedDir = C:\HashiCorp\Vagrant\embedded
2017/08/18 12:33:04 launcher: gemPaths (initial) = []string{"C:\\HashiCorp\\Vagrant\\embedded\\gems\\gems\\vagrant-1.9.7", "C:\\HashiCorp\\Vagrant\\embedded\\gems\\gems\\vagrant-share-1.1.9"}
2017/08/18 12:33:04 launcher: bad gemPath += C:\HashiCorp\Vagrant\embedded\gems\gems\vagrant-share-1.1.9\lib\vagrant\version.rb
2017/08/18 12:33:04 launcher: gemPaths (final) = []string{"C:\\HashiCorp\\Vagrant\\embedded\\gems\\gems\\vagrant-1.9.7"}
2017/08/18 12:33:04 launcher: gemPath = C:\HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.9.7
2017/08/18 12:33:04 launcher: windows detected OS - cygwin
2017/08/18 12:33:04 launcher: env "CFLAGS" = ""
<?php
class Link
{
public function __construct($name, $url)
{
$this->name = $name;
$this->url = $url;
}
}
@jrdmcgr
jrdmcgr / packer.log
Last active August 19, 2016 17:04
Packer Issue
2016/08/19 12:51:36 [INFO] Packer version: 0.10.1
2016/08/19 12:51:36 Packer Target OS/Arch: darwin amd64
2016/08/19 12:51:36 Built with Go Version: go1.6.2
2016/08/19 12:51:36 Detected home directory from env var: /Users/jmcguire
2016/08/19 12:51:36 Using internal plugin for null
2016/08/19 12:51:36 Using internal plugin for virtualbox-iso
2016/08/19 12:51:36 Using internal plugin for amazon-chroot
2016/08/19 12:51:36 Using internal plugin for docker
2016/08/19 12:51:36 Using internal plugin for parallels-iso
2016/08/19 12:51:36 Using internal plugin for vmware-iso
create table exercise (
id integer primary key,
name varchar(50)
);
create table session (
id integer primary key,
date datetime
);
@jrdmcgr
jrdmcgr / mortals.pl
Created August 24, 2015 01:01
mortals.pl
declare_mortals([]).
declare_mortals([X|Xs]) :- mortal(X), declare_mortals(Xs).
mortal(socrates).
main :-
OtherMortals = [plato, aristotle, philosoraptor],
declare_mortals(OtherMortals).
% ?- main.
:- dynamic people/1.
:- dynamic portray_message/2.
:- use_module(library(prosqlite)).
set_gender(_, []).
set_gender(Sex, [Name|Names]) :-
sex(Name, Sex),
set_gender(Sex, Names).
@jrdmcgr
jrdmcgr / weakref-example.ipynb
Last active August 29, 2015 14:09
Example of a weak reference.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# first import the global
from global import myspecialglobal
# now import bootstrap which changes the global
import bootstrap
# what is the value of myspecial global?
print myspecialglobal
/**
* Firefox custom CSS for Numix GTK Theme
* To use with Firefox Numix Theme : https://addons.mozilla.org/fr/firefox/addon/numix-gtk3theme/
* Better with Omnibar FIrefox Add-On : https://addons.mozilla.org/fr/firefox/addon/omnibar/
*/
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
/* Awesomebar improvements */
#urlbar {
# Robots
This is supposed to be the future. Where are my robot servants!?
The robots below could potentially be split up into a group of specialized robots.
Those independent robots could also potentially connect with each other and transform into a more powerful robot.
## Mailbot