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
<?php | |
namespace Example\Console\Command; | |
class UserFindCommand extends Symfony\Console\Command\Command | |
{ | |
private $interactor; | |
public function __construct(UserFindInteractor $interactor) | |
{ | |
parent::__construct(); |
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 Test::Spy; | |
use Mouse; | |
use Test::Mock::Guard (); | |
has module => ( | |
is => 'ro', | |
isa => 'ClassName', | |
); | |
has method => ( |
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
'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 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 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 karupanerura; | |
# is me! | |
package main; | |
use strict; | |
use warnings; | |
use Meat; | |
use Beef; | |
use Hormones; |
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
<div id="main"> | |
<header id="page-header"> | |
<div class="title"> | |
<a href="/?__os_id=42981244"></a> | |
</div> <div class="status"> | |
<div class="gauge-space"> | |
<div id="gauge-action" class="gauge"> | |
<div class="frame-center"> | |
<div class="gauge-empty"> |
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
Backbone.Pjax = (function () { | |
"use strict"; | |
var History = Backbone.History.extend({ | |
"navigate": function(fragment, options) { | |
if (!Backbone.History.started) return false; | |
if (!options || options === true) options = {trigger: options}; | |
fragment = this.getFragment(fragment || ''); | |
if (this.fragment === fragment) return; | |
this.fragment = fragment; |
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
#!/usr/bin/env ruby | |
# | |
# adb logcat をもっと見やすく. | |
# | |
require 'optparse' | |
# | |
# global option. |
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
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 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 ぶんしょう |
NewerOlder