this guide may be outdated for MacOS versions beyond 10.14 Mojave (and implied Xcode versions)
Table of Contents
from http.server import BaseHTTPRequestHandler, HTTPServer | |
import socketserver | |
import json | |
import cgi | |
import sqlite3 | |
''' | |
DATE: Mon Jun 3 19:51:44 2024 |
this guide may be outdated for MacOS versions beyond 10.14 Mojave (and implied Xcode versions)
Table of Contents
import Graphics.UI.GLUT | |
import Data.IORef | |
import Data.List (delete) | |
import System.Random (randomRIO) | |
import Control.Monad (forM_, when) | |
type Coord = (Int, Int) | |
type Snake = (Direction, [Coord]) | |
type SnakeDigestion = [Coord] | |
type Food = [Coord] |
Filter | Description | Example |
---|---|---|
allintext | Searches for occurrences of all the keywords given. | allintext:"keyword" |
intext | Searches for the occurrences of keywords all at once or one at a time. | intext:"keyword" |
inurl | Searches for a URL matching one of the keywords. | inurl:"keyword" |
allinurl | Searches for a URL matching all the keywords in the query. | allinurl:"keyword" |
intitle | Searches for occurrences of keywords in title all or one. | intitle:"keyword" |
Revised date: 07/11/2012
Between us [company name] and you [customer name]
We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.
-- | |
-- https://wiki.haskell.org/OpenGLTutorial1 | |
-- | |
-- rewrite for GLFW-b | |
-- | |
import Graphics.Rendering.OpenGL as GL | |
import Graphics.UI.GLFW as GLFW | |
import Control.Monad | |
import System.Exit ( exitWith, ExitCode(..) ) | |
import System.Environment ( getArgs) |
import Control.Monad | |
------------------------------------------------------------------------------- | |
-- State Monad Implementation | |
------------------------------------------------------------------------------- | |
newtype State s a = State { runState :: s -> (a,s) } | |
instance Monad (State s) where | |
return a = State $ \s -> (a, s) |
let floatingWindow; | |
const createFloatingWindow = function() { | |
const electron = require('electron'); | |
const BrowserWindow = electron.BrowserWindow; | |
if (!floatingWindow) { | |
floatingWindow = new BrowserWindow({ | |
width: 1000, | |
height: 80, | |
titleBarStyle: 'hide', | |
transparent: true, |