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
;; learning The Little Schemer | |
;; Chapter 1. Toys | |
(def car first) | |
(def cdr rest) | |
(def cons clojure.core/cons) | |
(def eq? =) | |
(def list? clojure.core/list?) | |
(def atom? | |
(fn [x] | |
(not (list? 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
#!/bin/sh | |
if [ -z "$1" ];then | |
echo "Usage:" | |
echo " proj2ram proj-name" | |
echo " proj2ram restore proj-name" | |
exit 1 | |
fi | |
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
// to count the number of bits set in v | |
// c accumulates the total bits set in v | |
unsigned int | |
count_bit_1(unsigned int v) { | |
unsigned int c; | |
for (c = 0; v; c++) | |
{ | |
v &= v - 1; | |
} |
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
#lang racket | |
;; and the end of : https://yinwang0.wordpress.com/2012/04/09/reinvent-y/ | |
;; Exercise: The Y combinator derived from this tutorial only works for direct recursion, | |
;; try to derive the Y combinator for mutual recursive functions, for example the following two functions even and odd. | |
(define even | |
(lambda (x) | |
(cond | |
[(zero? x) #t] |
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 main | |
import "fmt" | |
type ( | |
tF func(int) int | |
tRF func(tF) tF | |
tX func(tX) tF | |
) |
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
// This code is released as public domain, or under the zlib license. | |
// このコードはパブリックドメインかzlibライセンス、お好きな方で利用してください。 | |
using UnityEngine; | |
using System; | |
using System.IO; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Net.Security; | |
using System.Security.Cryptography.X509Certificates; |
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
class Demo | |
{ | |
class Ret<R> | |
{ | |
int error = -1; | |
R res; | |
} | |
interface request { } | |
interface response_of<T> { } |
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
using System; | |
using System.Text; | |
using System.Security.Cryptography; | |
namespace Musashi.WebApi_v1.Utility | |
{ | |
/// <summary> | |
/// 暗号化・複合化を行う | |
/// </summary> | |
public static class Crypt |
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
swagger: '2.0' | |
info: | |
description: >- | |
Document for a sample audio api server. | |
version: 1.0.0 | |
title: Audio API Server | |
host: audio-api.wardenlym.com | |
basePath: /v1 |
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
In a new folder, enter and accept all the defaults: | |
npm init | |
Let us install the development dependencies: | |
npm install -D typescript | |
npm install -D tslint | |
npm install -D nodemon | |
OlderNewer