var name = "soplana";
var user = {
getName : function(){
var name = "javascript";
return (eval)("name");
}
}
This file contains hidden or 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
overloadable = do -> | |
operator = (op, b)-> | |
a = @value() | |
b = b.value?() ? b | |
fn = switch op | |
when '+' then (a, b)-> a + b | |
when '-' then (a, b)-> a - b | |
when '*' then (a, b)-> a * b | |
when '/' then (a, b)-> a / b | |
if Array.isArray(a) |
This file contains hidden or 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 | |
# Called by "git push" after it has checked the remote status, | |
# but before anything has been pushed. | |
# | |
# If this script exits with a non-zero status nothing will be pushed. | |
# | |
# Steps to install, from the root directory of your repo... | |
# 1. Copy the file into your repo at `.git/hooks/pre-push` | |
# 2. Set executable permissions, run `chmod +x .git/hooks/pre-push` |
This file contains hidden or 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
{ | |
"$schema": "http://json-schema.org/draft-03/schema#", | |
"type": [ | |
{ | |
"type": "number", | |
"minimum": 0, | |
"exclusiveMinimum": true | |
}, | |
{ | |
"type": "string", |
This file contains hidden or 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
language: node_js | |
node_js: | |
- "0.10" | |
before_install: | |
- npm install -g grunt-cli bower | |
- npm install | |
- grunt | |
- npm test |
じゃあ this の抜き打ちテストやるぞーをやってみた。
結果として、コードが読めなくて2問空欄解答をするしかなかったので調べてみました。
あ、やってない人は読む前に先にやってみてください。
ちなみにthisの話はあんまりしません。
そして今日調べたばかりなので間違っている可能性や、そもそも自分の知識不足のせいでバカ発見されただけかも知れません。
日時: | 2025-05-13 |
---|---|
作: | 時雨堂 |
バージョン: | 2025.3 |
URL: | https://shiguredo.jp/ |
言語
This file contains hidden or 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.exports = function (grunt) { | |
grunt.initConfig({ | |
generate: { | |
all: { | |
expand: true, | |
cwd: '.grunt/html/', | |
src: ['**/*.hbs', '!**/*.inc.hbs'], | |
filter: 'isFile', | |
dest: './', | |
ext: '.html' |
- express-validator とは何かをメモしておく
- バージョンはよくわからない
- npm では 0.8.0
- commit は https://github.com/ctavan/express-validator/commit/4211ae0075cdba7e0251ebc16b8453f6e76cc132