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 Mycont_01 where | |
import Control.Monad.Cont | |
fattoriale :: Int -> Int | |
Cont (\c -> c (fattoriale 0)) = return 1 | |
Cont (\c -> c (fattoriale n)) = Cont (\c -> c (fattoriale (n - 1))) | |
>>= (\x -> Cont (\c -> c (n*x))) |
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
Error creating Node.js Express App. Failed command: | |
"C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" install | |
Exit code: -1 | |
Standard error: | |
npm info it worked if it ends with ok | |
npm info using [email protected] | |
npm info using [email protected] | |
npm info preinstall [email protected] | |
npm info attempt registry request try #1 at 08:22:57 | |
npm http request GET https://registry.npmjs.org/cookie-parser |
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
<?xml version="1.0" ?> | |
<!-- | |
SCLEXE - single-country libphonenumber executable | |
Author: Marco Faustinelli ([email protected]) | |
Web: http://faustinelli.net/ | |
http://faustinelli.wordpress.com/ | |
Version: 1.0 | |
The MIT License - Copyright (c) 2015 SCLEXE Project | |
--> | |
<project basedir="." name="libphonenumber-javascript" default="all"> |
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
/* | |
SCLEXE - single-country libphonenumber executable | |
Author: Marco Faustinelli ([email protected]) | |
Web: http://faustinelli.net/ | |
http://faustinelli.wordpress.com/ | |
Version: 1.0 | |
The MIT License - Copyright (c) 2015 SCLEXE Project | |
*/ | |
var fs = require('fs'); |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> | |
<title>monadic validation</title> | |
<style> | |
body { font-family: Verdana; font-size: 1.5em; } | |
.horizon { width: 500px; margin: 0 auto; padding: 10px; border: 2px solid red; } | |
.horizon input, .horizon label { margin: 10px; } |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> | |
<title>FileWriter API</title> | |
<style> | |
body { font-family: Verdana; font-size: 1.5em; } | |
.horizon { width: 500px; margin: 0 auto; padding: 10px; border: 2px solid red; } | |
.horizon input, .horizon label { margin: 10px; } |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<parent> | |
<groupId>com.xxx.yyy</groupId> | |
<artifactId>XXXX</artifactId> | |
<version>1.2.0-SNAPSHOT</version> | |
</parent> | |
<groupId>xxx.yyy.migration</groupId> | |
<artifactId>YYY</artifactId> |
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
- right-click project with issue | |
- maven --> update project | |
- de-select "clean projects" at the bottom | |
- OK |
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
package com.wcg.product.ajax.ajaxserver.connectors; | |
import java.net.URL; | |
import org.apache.commons.lang.StringUtils; | |
import org.eclipse.jetty.server.Server; | |
import org.eclipse.jetty.xml.XmlConfiguration; | |
public class StandaloneServer { |
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
function solution(K, M, A) { | |
// M is a red herring | |
return minimalLargeSumBinarySearch(K, A); | |
} | |
function minimalLargeSumBinarySearch(maxNumBlocks, arra) { | |
var lowerBoundLargeSum = Math.max.apply(null, arra); | |
var upperBoundLargeSum = arra.reduce((a,c)=>a+c,0); | |
var result = -1; | |
OlderNewer