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
| import { isArray, isObject, isString } from '@/type-guards'; | |
| import type { CamelizeRecursive } from '@/type-utils/camelize'; | |
| import { camelize } from '../string/camelize'; | |
| /** | |
| * 指定したオブジェクトのプロパティを再起的にcamelizeする | |
| * | |
| * @example | |
| * ``` |
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
| <?php | |
| namespace Example\Console\Command; | |
| class UserFindCommand extends Symfony\Console\Command\Command | |
| { | |
| private $interactor; | |
| public function __construct(UserFindInteractor $interactor) | |
| { | |
| parent::__construct(); |
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
| package Test::Spy; | |
| use Mouse; | |
| use Test::Mock::Guard (); | |
| has module => ( | |
| is => 'ro', | |
| isa => 'ClassName', | |
| ); | |
| has method => ( |
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
| 'use strict' | |
| const fs = require('fs') | |
| const path = require('path') | |
| const _ = require('lodash') | |
| const protagonist = require('protagonist') | |
| const filepath = path.join(__dirname, 'user.md') | |
| const raw = fs.readFileSync(filepath, 'utf8') |
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
| import syntagme from 'syntagme' | |
| import repository from 'repository/main' | |
| export function mount () { | |
| return syntagme.ac("MOUNT", function () { | |
| return repository.fetch() | |
| }) | |
| } |
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
| app.psgi | |
| ```perl | |
| use Amon2::Lite; | |
| post '/api/user/', sub { | |
| my ($c, $args) = @_; | |
| my $params = $c->req->parameters; | |
| my $user = $c->db->select_row('SELECT * FROM `user` FROM `name` = ?', [$params->{name}]); | |
| return $c->create_response(409) if $user; | |
| $c->db->query('INSERT INTO `user` (`name`, `email`) VALUES (?, ?)', [$params->{name}, $params->{email}]); |
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
| div.wrapper | |
| article.contents | |
| header.contents__header | |
| h1.title title | |
| div.contents__body | |
| section.section | |
| h3.section__title 超長い文章 | |
| div.section__body.iscroll-content | |
| div.scroller | |
| p ぶんしょう |
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
| div.wrapper | |
| article.contents | |
| header.contents__header | |
| h1.title title | |
| div.contents__body | |
| section | |
| h3 超長い文章 | |
| div.iscroll-content | |
| div.scroller | |
| p ぶんしょう |
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
| var http = require("http"); | |
| var express = require("express"); | |
| var morgan = require("morgan"); | |
| morgan.format("orig-format", "[:date] :method :url :status :response-time ms"); | |
| app = express(); | |
| app.use(morgan("orig-format")); | |
| app.get("/", function (req, res) { | |
| res.send("Hello World\n"); |
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
| div.buttons | |
| a.button--general sample | |
| a.button--important sample | |
| a.button--navigate sample | |
| a.button--payment sample |
NewerOlder