Partial evaluation means to fix some variables in the given code before execution. With a traditional implementation of a compiler or an interpreter, all variables are replaced with its value on each evaluation of that variable. This is because a variable can change at any timing. This is, however, not always true in actual applications. Almost all of large applications has setting variables and data
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
(ns friends-relationship-twitter.core | |
(:require [borneo.core :as neo] | |
[oauth.client :as oauth])) | |
(def oauth-consumer (oauth/make-consumer "KEY" | |
"SECRET" | |
"https://api.twitter.com/oauth/request_token" | |
"https://api.twitter.com/oauth/access_token" | |
"https://api.twitter.com/oauth/authorize" |
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
;;; cljdoc.el --- eldoc mode for clojure | |
;; Copyright (C) 2011 tomykaira | |
;; Version 0.1.0 | |
;; Keywords: eldoc clojure | |
;; Author: tomykaira <tomykaira@gmail.com> | |
;; URL: https://gist.github.com/1386472 | |
;; This file is not part of GNU Emacs. |
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
#ifndef _MACARON_BASE64_H_ | |
#define _MACARON_BASE64_H_ | |
/** | |
* The MIT License (MIT) | |
* Copyright (c) 2016-2024 tomykaira | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining | |
* a copy of this software and associated documentation files (the | |
* "Software"), to deal in the Software without restriction, including |
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
// The MIT License (MIT) | |
// Copyright (c) 2015 tomykaira | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
// | |
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
// | |
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CON |
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 count_rest (text) { | |
var limit = 140; | |
// take t.co shorten into account | |
// https://dev.twitter.com/blog/next-steps-with-the-tco-link-wrapper | |
var regex = /(?:https?\:\/\/|www\.)[^\s]+/g; | |
var noURL = text.replace(regex, ""); | |
var URLs = text.match(regex); | |
var length = noURL.length; |
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 -e | |
separator="----8<----8<----8<----8<----" | |
function make_chunk { | |
cd $1 | |
if ! git diff --exit-code --ignore-submodules --quiet; then | |
echo "${PWD#$root}/" | |
git --no-pager diff --no-color --ignore-submodules | |
echo "$separator" |
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
a あ ア ア 0 | |
i い イ イ 0 | |
u う ウ ウ 0 | |
e え エ エ 0 | |
o お オ オ 0 | |
ka か カ カ 0 | |
ki き キ キ 0 | |
ku く ク ク 0 | |
ke け ケ ケ 0 | |
ko こ コ コ 0 |
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 | |
# | |
# Copyright (c) 2006 Johannes E. Schindelin | |
# SHORT DESCRIPTION | |
# | |
# This script makes it easy to fix up commits in the middle of a series, | |
# and rearrange commits. | |
# | |
# The original idea comes from Eric W. Biederman, in |
NewerOlder