#Compilng You need g++ 4.9 to compile this code. Follow these steps to install g++-4.9
After installing run the following command to compile
/usr/bin/g++-4.9 -std=c++11 lambda.cpp
#Running
./a.out
#!/bin/bash | |
f=$(pwd) | |
sips --resampleWidth 1024 "${f}/${1}" --out "${f}/iTunesArtwork@2x.png" | |
sips --resampleWidth 57 "${f}/${1}" --out "${f}/app-icon.png" | |
sips --resampleWidth 114 "${f}/${1}" --out "${f}/app-icon@2x.png" | |
sips --resampleWidth 29 "${f}/${1}" --out "${f}/app-icon-29.png" | |
sips --resampleWidth 58 "${f}/${1}" --out "${f}/app-icon-29@2x.png" |
#Compilng You need g++ 4.9 to compile this code. Follow these steps to install g++-4.9
After installing run the following command to compile
/usr/bin/g++-4.9 -std=c++11 lambda.cpp
#Running
./a.out
#! /usr/bin/env ocamlscript | |
Ocaml.ocamlflags := ["-thread"]; | |
Ocaml.packs := [ "core" ] | |
-- | |
open Core.Std | |
type term = | |
| Ident of string | |
| Lambda of string * term | |
| Apply of term * term |
/* GraphicGlDemoActivity.java | |
* Author: Yong Bakos | |
* Since: 11/26/2012 | |
* Thanks to: | |
* Cube: http://intransitione.com/blog/create-a-spinning-cube-with-opengl-es-and-android/ | |
* OpenGL Boilerplate: http://www.jayway.com/2009/12/03/opengl-es-tutorial-for-android-part-i/ | |
*/ | |
package com.humanoriented.sudoku; | |
import java.nio.ByteBuffer; |
(* Boilerplate *) | |
(* Identity: id :: a -> a *) | |
let id = fun x -> x | |
(* Function composition: (.) :: (b -> c) -> (a -> b) -> a -> c *) | |
let (<.>) (f : 'b -> 'c) (g : 'a -> 'b) : 'a -> 'c = | |
fun x -> f (g x) | |
(* Cont type *) | |
type ('w, 'a) cont = Cont of (('a -> 'w) -> 'w) |
[ | |
{ | |
"hex": "#EFDECD", | |
"name": "Almond", | |
"rgb": "(239, 222, 205)" | |
}, | |
{ | |
"hex": "#CD9575", | |
"name": "Antique Brass", | |
"rgb": "(205, 149, 117)" |
#!/bin/bash | |
f=$(pwd) | |
sips --resampleWidth 512 "${f}/${1}" --out "${f}/iTunesArtwork" | |
sips --resampleWidth 1024 "${f}/${1}" --out "${f}/iTunesArtwork@2x" | |
sips --resampleWidth 57 "${f}/${1}" --out "${f}/Icon.png" | |
sips --resampleWidth 114 "${f}/${1}" --out "${f}/Icon@2x.png" | |
sips --resampleWidth 29 "${f}/${1}" --out "${f}/Icon-Small.png" | |
sips --resampleWidth 58 "${f}/${1}" --out "${f}/Icon-Small@2x.png" | |
sips --resampleWidth 50 "${f}/${1}" --out "${f}/Icon-Small-50.png" |