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 Helper { | |
companion object { | |
fun setupWithNavController(navigationView: NavigationView, navController: NavController) { | |
navigationView.setNavigationItemSelectedListener { item -> | |
val handled = NavigationUI.onNavDestinationSelected(item, navController) | |
if (handled) { | |
val parent = navigationView.parent | |
if (parent is DrawerLayout) { | |
parent.closeDrawer(navigationView) |
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
from __future__ import print_function | |
from __future__ import division | |
from __future__ import absolute_import | |
from __future__ import unicode_literals | |
__author__ = "nanofi <nanogenomu@gmail.com>" | |
__version__ = "1.0.0" | |
__date__ = "2013/12/25" | |
__license__ = "MIT License http://opensource.org/licenses/mit-license.php" |
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
\newcommand{\p}[1]{{\rm Pr}(#1)} | |
\renewcommand{\vec}[1]{{\boldsymbol #1}} | |
\newcommand{\mat}[1]{{\boldsymbol #1}} | |
\newcommand{\set}[1]{#1} | |
\newcommand{\fset}[1]{{\mathcal #1}} | |
\newcommand{\family}[1]{{\mathcal #1}} | |
\newcommand{\Mean}[2][]{{\rm E}_{#1}\left[ #2 \right]} | |
\newcommand{\Var}[2][]{{\rm Var}_{#1}[#2]} | |
\newcommand{\Cov}[3][]{{\rm Cov}_{#1}[#2,#3]} |
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
public class Test{ | |
public static interface FA<T extends Runnable> { | |
void hello(); | |
T get(); | |
} | |
public static interface FB { | |
void world(); | |
} |
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.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Windows.UI.Xaml; | |
using Windows.UI.Xaml.Controls; | |
using Windows.UI.Xaml.Markup; | |
namespace Nanofi.Common{ |
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
require "dl/import" | |
#libmecab.dllのpathは自分で変えてね | |
module MecabImporter | |
extend DL::Importer | |
path = 'C:/Program Files (x86)/MeCab/bin/libmecab.dll' | |
dlload path | |
extern "mecab_t* mecab_new2(const char*)" |
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 | |
require_once 'service/apiModel.php'; | |
require_once 'service/apiService.php'; | |
require_once 'service/apiServiceRequest.php'; | |
class UserinfoServiceResource extends apiServiceResource { | |
public function get($optParams = array()) { | |
$params = array(); |
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
\NeedsTeXFormat{LaTeX2e}[1994/06/01] | |
\ProvidesPackage{count} | |
[2015/2/6 v0.01 Import and Export counters ] | |
\RequirePackage[lastpage,xr]{zref} | |
\theoremstyle{plain} | |
\newtheorem{theorem}{Theorem} | |
\newtheorem{proposition}{Proposition} | |
\newtheorem{corollary}{Corollary} |
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
module ControllerHelpers | |
def self.included(base) | |
base.class_eval do | |
setup :setup_controller_for_warden, :warden if respond_to?(:setup) | |
end | |
end | |
def process(*) | |
_catch_warden {super} || @response | |
end |
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
%% File: `jplainnat.bst' | |
%% A modification of `plainnat.bst' for japanese citations | |
%% | |
%% Copyright 2014 Kazuto Fukuchi | |
%% E-mail: nanogenomu@gmail.com | |
%% | |
% | |
ENTRY | |
{ address | |
author |
NewerOlder