This file contains 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
from build123d import * | |
from build123d_draft import * | |
import math | |
def make_hinge(center, # hinge around this point | |
dia, # outer diameter of the hinge round part | |
total_height, # | |
pin_dia=None, # diameter of the hinge pin | |
vertical_clearance=0.5, # clearance in Z axis | |
horizontal_clearance = 0.5, # clearance in X, Y axes |
This file contains 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
"<> {-> x \\if \"\\\"\\\\\" x elemChar: ['\\\\', x] else: [x]} mapConcat '\"' append '\"' prepend | |
say say" | |
<> {-> x \if "\"\\" x elemChar: ['\\', x] else: [x]} mapConcat '"' append '"' prepend | |
say say |
This file contains 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
(defproject one "1.0.0-SNAPSHOT" | |
:description "Getting Started with ClojureScript." | |
:dependencies [[org.clojure/clojure "1.4.0"] | |
[ring "1.1.5"] | |
[compojure "1.1.3"] | |
[org.clojure/clojurescript "0.0-1450"] | |
[enlive "1.0.1"] | |
[domina "1.0.1-SNAPSHOT"] | |
[org.mozilla/rhino "1.7R3"] | |
[com.google.javascript/closure-compiler "r2079"] |
This file contains 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 Main where | |
import qualified Data.ByteString as B | |
import qualified Data.ByteString.Lazy as BL | |
import Data.Binary.Strict.Get | |
import qualified Data.Binary.Strict.BitGet as BG | |
import Data.Word | |
import Control.Monad | |
import Control.Applicative | |
import Data.Binary.Put |
This file contains 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
mvn eclipse:eclipse # creates .project etc. | |
mvn -Declipse.workspace="your Eclipse Workspace" eclipse:configure-workspace # sets M2_REPO | |
# http://www.mkyong.com/maven/how-to-configure-m2_repo-variable-in-eclipse-ide/ | |
# http://stackoverflow.com/questions/2061094/importing-maven-project-into-eclipse |
This file contains 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
http://hpaste.org/83026 |
This file contains 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 Main where | |
import qualified Data.ByteString.Lazy.UTF8 as L | |
import Data.Char | |
import Network.HTTP.Enumerator (simpleHttp) | |
import System.Environment | |
dupa :: String -> String | |
dupa [] = undefined | |
dupa (a:[]) = undefined |
This file contains 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 Main where | |
import qualified Data.ByteString.Lazy.UTF8 as L | |
import Data.Char | |
import Network.HTTP.Enumerator (simpleHttp) | |
import System.Environment | |
dupa :: String -> String | |
dupa [] = undefined | |
dupa (a:[]) = undefined |
This file contains 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
[niteria@cloud]~$ wget "http://ws.audioscrobbler.com/2.0/?method=user.gettopalbums&user=niteria&api_key=b25b959554ed76058ac220b7b2e0a026&period=7day" -O - | |
--2011-10-21 17:40:21-- http://ws.audioscrobbler.com/2.0/?method=user.gettopalbums&user=niteria&api_key=b25b959554ed76058ac220b7b2e0a026&period=7day | |
Translacja ws.audioscrobbler.com... 195.24.233.55 | |
Łączenie się z ws.audioscrobbler.com|195.24.233.55|:80... połączono. | |
Żądanie HTTP wysłano, oczekiwanie na odpowiedź... 200 OK | |
Długość: nieznana [text/xml] | |
Zapis do: `STDOUT' | |
[<=> ] 0 --.-K/s <?xml version="1.0" encoding="utf-8"?> | |
<lfm status="ok"> |
NewerOlder