Skip to content

Instantly share code, notes, and snippets.

View adamaig's full-sized avatar

Adam Ingram-Goble adamaig

View GitHub Profile
@adamaig
adamaig / Usage.md
Last active May 26, 2023 05:54
Bootstrap Win11 for MB Development in Parallels

Simple Scripts for Installing Basic Dev Environment

This command set is in development right now.

$baseGIST = "https://gist.githubusercontent.com/adamaig/93b13258056596673735ef3a4475aa10/raw/3050129835bd1c8d4275c75f991c460a7a06406d"
$bootstrapWin11MBDev = "$baseGIST/bootstrapWin11MBDev.ps1"
$bootstrapClientsWeb = "$baseGIST/bootstrapClientsWeb.ps1"

Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-WebRequest -Uri $bootstrapWin11MBDev -OutFile C:\bootstrapWin11MBDev.ps1; Invoke-WebRequest -Uri $bootstrapClientsWeb -OutFile C:\bootstrapClientsWeb.ps1 
<!DOCTYPE html>
<html>
<head>
<title>Intro to React</title>
<meta charset="utf-8">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/react/15.2.0/react.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/react/15.2.0/react-dom.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.5.2/redux.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/react-redux/4.4.5/react-redux.js"></script>

Keybase proof

I hereby claim:

  • I am adamaig on github.
  • I am adamaig (https://keybase.io/adamaig) on keybase.
  • I have a public key whose fingerprint is 7587 1DA2 49AE 3494 FBDF 4EA2 1C4F 66DA 63C8 BF08

To claim this, I am signing this object:

<!DOCTYPE html>
<html>
<head>
<script src="http://fb.me/react-0.14.3.js"></script>
<script src="http://fb.me/react-dom-0.14.3.js"></script>
<title>JS Bin</title>
<meta charset="utf-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.0.5/redux.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-redux/4.0.6/react-redux.js"></script>
</head>
<!DOCTYPE html>
<html>
<head>
<script src="http://fb.me/react-0.14.3.js"></script>
<script src="http://fb.me/react-dom-0.14.3.js"></script>
<title>JS Bin</title>
<meta charset="utf-8">
<script src="https://wzrd.in/standalone/expect@latest"></script>
<script src="https://wzrd.in/standalone/deep-freeze@latest"></script>
<script src="https://wzrd.in/standalone/redux@latest"></script>
# this query set returns the classmates of a specific user
u1 = Arel::Table.new( :users )
r1 = Arel::Table.new( :roles )
ur1 = Arel::Table.new( :users_roles )
u2 = Arel::Table.new( :users )
r2 = Arel::Table.new( :roles )
ur2 = Arel::Table.new( :users_roles )
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
@import "reset";
/* File: application/_base_styles.scss */
html {overflow-y: scroll;}
body { background-color: #fff; color: #333; }
body, p, ol, ul, td {
font-family: verdana, arial, helvetica, sans-serif;
font-size: 12px;
line-height: 18px;
Paperclip.interpolates :attachable_type do |attachment, style|
attachment.instance.attachable_type
end
Paperclip.interpolates :attachable_id do |attachment, style|
attachment.instance.attachable_id
end
class ItemCollection < ActiveRecord::Base
has_many :item_definitions,
:inverse_of => :item_collection, :conditions => {:type => "item"},
:dependent => :destroy
has_many :meters, :class_name => "ItemDefinition",
:inverse_of => :item_collection, :conditions => {:type => "meter"},
:dependent => :destroy
has_many :timeline_trackers, :class_name => "ItemDefinition",