Each of these commands will run an ad hoc HTTP static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
\ Computing mean and population standard deviation in Forth. | |
\ Tested on Gforth 0.7.0 | |
16 constant FRAC \ number of bits behind fixed-point | |
\ convert from/to fixed point representation | |
: s>fix FRAC lshift ; | |
: fix>s FRAC rshift ; | |
\ fixed-point arithmetic |
Each of these commands will run an ad hoc HTTP static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'active_resource' | |
class Issue < ActiveResource::Base | |
self.site = 'http://localhost' | |
self.user = 'user' | |
self.password = 'password' | |
end |
#!/usr/bin/env nodejs | |
//jshint node: true | |
require('fs').readFile('sessionstore.js', {encoding: 'utf8'}, function (err, data) { | |
"use strict"; | |
var session; | |
if (err) { | |
throw err; | |
} | |
session = JSON.parse(data); | |
session.windows.forEach(function (window) { |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# | |
# Copyright (C) 2014 Savoir-Faire Linux Inc. | |
# Authors: | |
# Sebastien Bourdelin <[email protected]> | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License Version 2 as | |
# published by the Free Software Foundation. |
from __future__ import division # allows floating point division from integers | |
from FreeCAD import Base | |
import Part | |
import math | |
# Run this macro to create a generic project enclosure box | |
# You can change all the parameters by selecting the object in the tree view and tweaking values in the "Data" tab | |
# Possible additions/improvements | |
# counterbore bridging .4mm |
import FreeCAD | |
import importCSG | |
#import prototype | |
importmod=importCSG | |
dirpath='' | |
def comparewithstl(filename,obj,doc): | |
# import MeshPart | |
import Mesh | |
import OpenSCADUtils |