This gist shows the implementation of a group using python. All of the group axioms are checked by the code.
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
// The following is an implementation of OpenQASM | |
// using a recursive descent style parser. | |
// MainProgram := "OPENQASM" Real ";" Program | |
// Program ::= Statement | Program Statement | |
// Statement ::= Decl | |
// | GateDecl GeoList "}" | |
// | GateDecl "}" | |
// | "opaque" Id Idlist ";" | |
// | "opaque" Id "()" IdList ";" |
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
import face_recognition | |
import cv2 | |
import numpy as np | |
# This is a demo of running face recognition on live video from your webcam. It's a little more complicated than the | |
# other example, but it includes some basic performance tweaks to make things run a lot faster: | |
# 1. Process each video frame at 1/4 resolution (though still display it at full resolution) | |
# 2. Only detect faces in every other frame of video. | |
# PLEASE NOTE: This example requires OpenCV (the `cv2` library) to be installed only to read from your webcam. |
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
RT @memecrashes: This meme is a sin. | |
(Submitted by @santiagoaciago) | |
https://t.co/UdzrevTHfY |
I hereby claim:
- I am adamisntdead on github.
- I am adamkelly2201 (https://keybase.io/adamkelly2201) on keybase.
- I have a public key ASAdj9vFFeoYQ7eSauChmQWoiy0jj1HHu1aRSubDV6Gaugo
To claim this, I am signing this object:
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
const blessed = require("blessed"); | |
const earth = | |
" _____\r\n ,-:` \\;',`'-, \r\n .'-;_,; ':-;_,'.\r\n /; '/ , _`.-\\\r\n | '`. (` /` ` \\`|"; | |
// Create a screen object. | |
var screen = blessed.screen({ | |
smartCSR: true, | |
dockBorders: true | |
}); |
Table of Contents
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
module.exports = entry => pack(getModules(entry)) |
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 pack(modules) { | |
const modulesSource = modules.map(module => | |
`${module.id}: { | |
factory: (module, require) => { | |
${module.source} | |
}, | |
map: ${JSON.stringify(module.map)} | |
}` | |
).join() |
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
// A factory function | |
(require, module) => { | |
/* Module Source */ | |
} |
NewerOlder