code stringlengths 4 1.01M |
|---|
require 'spec_helper'
describe RubygemsController do
before do
@g = Factory.create :rubygem
@v = Factory.create :version, rubygem: @g
end
it 'should #show successfully' do
tr = Factory.create :test_result, rubygem_id: @g.id, version_id: @v.id
get :show, id: @g.name
response.should be_succe... |
using System;
using System.IO;
namespace Pulse.Core
{
/// <summary>
/// НЕ потокобезопасный!
/// </summary>
public sealed class StreamSegment : Stream
{
private long _offset, _length;
public readonly Stream BaseStream;
public StreamSegment(Stream stream, long offset, long... |
import Ember from 'ember';
export default Ember.Component.extend({
tagName: '',
didInsertElement: function() {
this.startPoppover();
},
willDestroyElement: function() {
this.dismissPoppover();
},
startPoppover: function() {
var options = this.getPoppoverOptions();
Ember.$(function() {
... |
#ifndef _RELLIK_H_
#define _RELLIK_H_
#include "gametime.h"
typedef struct rellik Rellik;
Rellik *rellik_Create();
void rellik_Destroy(Rellik *self);
void rellik_Initialize(Rellik *self);
void rellik_Update(Rellik *self, GameTime gameTime);
void rellik_Render(Rellik *self);
#endif
|
header {
width: 100%;
color: #fff;
text-align: center;
}
.container {
width: 80%;
margin: 0 auto;
}
.brand {
background: linear-gradient(-225deg, #2c5499, #3e97e6);
padding: 30px 0;
}
.brand img {
cursor: pointer;
}
h1 {
font-size: 3em;
font-weight: normal;
line-height: 60px;
cursor: pointer... |
FROM debian:8.2
MAINTAINER Stuart Ellis <stuart@stuartellis.eu>
ENV REFRESHED_AT 2015-09-09
ENV PYTHON_VERSION 3.4.2-2
RUN apt-get update && \
apt-get install -qy python3=$PYTHON_VERSION && \
rm -rf /var/lib/apt/lists/*
|
<?php
use Illuminate\Database\Seeder;
use Illuminate\Support\Str;
class TagsTableSeeder extends Seeder
{
/**
* Run the database seeding.
*/
public function run()
{
DB::table('tags')->truncate();
DB::table('tags')->insert([
[
'name' => 'Qnique',
... |
/*
* SonarLint for Visual Studio
* Copyright (C) 2016-2021 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version ... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* SoundcloudSearch Schema
*/
var SoundcloudSearchSchema = new Schema({
// SoundcloudSearch model fields
// ...
search: {
type: String,
required: 'There must be a search term',
trim: true
},
... |
---
layout: home
title: All Posts
description: "An archive of posts."
comments: false
---
{% for post in site.posts %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
{% if forloop.first %}
<article>
<h2 id="{{ this_y... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>io: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
<script type="text/javascript" src="lens.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>... |
{% extends 'base.html' %}
{% block body %}
<div>
rest: {{ restaurant.name }}
</div>
{% endblock %} |
import random
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
_largesize = 300
def __init__(self, head):
self.head = head
self.lsize = 0
while head.next:
h... |
package db
import (
"io/ioutil"
"os"
. "fmt"
"strings"
. "github.com/yak-labs/chirp-lang"
"github.com/yak-labs/smilax-web/table/levi"
)
/*
table get Site Table Row -> []Value
table set Site Table Row []Value
table match Site Table RowPattern ValuePattern -> []{row value}
*/
var Lev = levi.New("leveldb.dat")... |
package com.github.wovnio.wovnjava;
import java.util.HashMap;
import javax.servlet.FilterConfig;
import javax.servlet.http.HttpServletRequest;
import org.easymock.EasyMock;
import java.net.URL;
import java.net.MalformedURLException;
import junit.framework.TestCase;
public class HeadersTest extends TestCase {
p... |
package eu.cyfronoid.core.configuration.evaluator;
import java.util.ArrayDeque;
public class Stack extends ArrayDeque<Double> {
private static final long serialVersionUID = 1L;
@Override
public void push(Double v) {
super.push(v);
}
@Override
public Double pop() {
... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
import unittest
import os
from misura.canon import option
from misura.canon.option import get_typed_cols, get_insert_cmd, base_col_def, print_tree
import sqlite3
from misura.canon.tests import testdir
db = testdir + 'storage/tmpdb'
c1 = testdir + 'storage/Conf.csv'
def go(t)... |
/* Taken from the popular Visual Studio Vibrant Ink Schema */
.cm-s-vibrant-ink.CodeMirror { background: black; color: white; }
.cm-s-vibrant-ink .CodeMirror-selected { background: #35493c !important; }
.cm-s-vibrant-ink .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; }
.cm-s-vibrant-ink .Cod... |
// * ———————————————————————————————————————————————————————— * //
// * cli upload
// * uploads image by providing a link by running:
// * enduro upload http://www.imgur.com/asd.png
// * ———————————————————————————————————————————————————————— * //
var cli_upload = function () {}
// vendor dependencies
var Promise = ... |
import React from "react"
import Img from "gatsby-image"
import { StaticQuery, graphql } from "gatsby"
import html5 from "../images/html5.svg"
import js from "../images/javascript.svg"
import jQuery from "../images/jquery.svg"
import php from "../images/php.svg"
import python from "../images/python.svg"
import css3 fro... |
var debug = require('debug')('harmonyhubjs:client:login:hub')
var Client = require('node-xmpp-client')
var Q = require('q')
var util = require('../util')
/** PrivateFunction: getIdentity
* Logs in to a Harmony hub as a guest and uses the userAuthToken from logitech's
* web service to retrieve an identity token.
*
... |
from players.player import player
from auxiliar.aux_plot import *
import random
from collections import deque
import sys
sys.path.append('..')
import tensorblock as tb
import numpy as np
import tensorflow as tf
# PLAYER REINFORCE RNN
class player_reinforce_rnn_2(player):
# __INIT__
def __init__(self):
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>fundamental-arithmetics: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../b... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>huffman: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... |
<html>
<head>
<title>User agent detail - Blogos/1.13 CFNetwork/548.0.4 Darwin/11.0.0</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</hea... |
<!DOCTYPE html>
<html>
<head>
<title>MyFonts Webfonts Demo for iOS devices</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style type="text/css" media="all">
h2 {
font-weight:normal;
}
@font-face {
font-family:"ProximaNova-Bold";
src:url("2FE569_0.svg#ProximaNova-Bold") fo... |
Namespace Media
''' <summary></summary>
''' <autogenerated>Generated from a T4 template. Modifications will be lost, if applicable use a partial class instead.</autogenerated>
''' <generator-date>17/02/2014 16:03:03</generator-date>
''' <generator-functions>1</generator-functions>
''' <generator-source>Deimos\_Me... |
/*
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Soft... |
module.exports = require('regenerate')(0x261D, 0x26F9, 0x1F385, 0x1F3C7, 0x1F46E, 0x1F47C, 0x1F4AA, 0x1F57A, 0x1F590, 0x1F6A3, 0x1F6C0, 0x1F6CC, 0x1F926).addRange(0x270A, 0x270D).addRange(0x1F3C2, 0x1F3C4).addRange(0x1F3CA, 0x1F3CC).addRange(0x1F442, 0x1F443).addRange(0x1F446, 0x1F450).addRange(0x1F466, 0x1F469).addRan... |
# VivaTalk
Oh god it's time.
run this to push to GH pages:
rm output/images; cp -r images output; ghp-import -n output -p; rm -r output/images; ln -s ../images output/images
|
module SupportEngine
class SupportType < ActiveRecord::Base
attr_accessible :name, :email
has_many :tickets, inverse_of: :support_type
# TODO: Detect background job
def notify!(ticket)
SupportEngine::TicketMailer.notify(self, ticket).deliver
end
end
end
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Story-Ly</title>
<!-- Bootstrap core CSS -->
<link href="ven... |
from SBaaS_base.postgresql_orm_base import *
class data_stage01_rnasequencing_analysis(Base):
__tablename__ = 'data_stage01_rnasequencing_analysis'
id = Column(Integer, Sequence('data_stage01_rnasequencing_analysis_id_seq'), primary_key=True)
analysis_id = Column(String(500))
experiment_id = Column(Str... |
require 'faraday'
# @private
module Faraday
module Disqussion
# @private
class RaiseHttp4xx < ::Faraday::Response::Middleware
def on_complete(env)
case env[:status].to_i
when 400
raise ::Disqussion::BadRequest.new(error_message(env), env[:response_headers])
when 401
... |
#
CuSha is a CUDA-based vertex-centric graph processing framework that uses G-Shards and Concatenated Windows (CW) representations to store graphs inside the GPU global memory. G-Shards and CW consume more space compared to Compressed Spars... |
package jp.co.future.uroborosql.parameter.mapper;
import static org.hamcrest.MatcherAssert.*;
import static org.hamcrest.Matchers.*;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.math.BigDecimal;
import java.sql.Connection;
import java.sql.Timestamp;
import java.text.ParseException;
imp... |
<?php namespace Ejimba\Pesapal\OAuth;
class OAuthRequest {
private $parameters;
private $http_method;
private $http_url;
// for debug purposes
public $base_string;
public static $version = '1.0';
public static $POST_INPUT = 'php://input';
function __construct($http_method, $http_url, $parameters=NULL) {
@... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModu... |
#!/bin/sh
# Capture the current version.
VERSION=`cat ./VERSION`
# Currently using YUI Compressor for minification.
YUICOMPRESSOR=./3pty/yui/yuicompressor/yuicompressor-2.4.7.jar
# To use the YUI Compressor, Java is required (http://java.com).
JAVA=`which java`
if [ "$JAVA" == "" ]; then echo "Not found: java" ; exi... |
<template name="home">
<div id="ww">
<div class="container">
<div class="row">
<div class="col-lg-8 col-md-offset-2 centered">
{{> me}}
</div><!-- /col-lg-8 -->
</div><!-- /row -->
</div> <!-- /container -->
</div><!-- /ww -->
{{> work}}
</template>
|
/**
* Scale Interpolation Function.
*
* @param {number} a start scale
* @param {number} b end scale
* @param {number} v progress
* @returns {string} the interpolated scale
*/
export default function scale(a, b, v) {
// eslint-disable-next-line no-bitwise
return `scale(${((a + (b - a) * v) * 1000 >> 0) / 1000... |
/*
* jQuery ZenPen url/link action
*
* Copyright (c) 2013 Deux Huit Huit (http://www.deuxhuithuit.com/)
* Licensed under the MIT (http://deuxhuithuit.mit-license.org)
* Based on the work of Tim Holman (https://github.com/tholman/zenpen)
* Licensed under the Apache License (https://github.com/tholman/zenpen/b... |
-- aka combobox in java/win32
-- also menubar : multiple dropdown
|
const mockMark = jest.fn();
const mockUnmark = jest.fn();
jest.mock('mark.js', () => () => ({
mark: mockMark,
unmark: mockUnmark,
}));
import { MarkerService } from '../MarkerService';
describe('Marker service', () => {
let marker: MarkerService;
const element = document.createElement('span');
beforeEach(... |
# Copyright (c) 2010-2011 ProgressBound, Inc.
#
# 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, pu... |
'use strict';
var assert = require('assert');
var fs = require('fs');
var path = require('path');
describe('responsive-compass-sprite', function() {
describe('icon-sprite', function() {
function compare(expected, tmp, done) {
var baseExpected = __dirname + '/expected/icon-sprite',
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-odd-order: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap... |
ifeq ($(CC),cc)
CC = clang
endif
ifeq ($(CC),gcc)
CC = clang
endif
CC ?= clang
ifeq ($(V),1)
Q =
else
Q = @
endif
MAKEFILE_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
SDN_SENSOR_BASE ?= $(shell dirname $(MAKEFILE_DIR))
RTE_SDK ?= $(SDN_SENSOR_BASE)/external/dpdk
RTE_TARGET ?=... |
---
id: D2D7DFCE-5BC2-4B6B-929D-A0DE8B1206C9
title: 春天
author: 吴念真
date: 2015-09-11 23:03:51
categories: 小说
tags: default
---
阿圆是金门金沙市场一家杂货店里打杂的小妹,长得不是很好看,加上老板以吝啬出名,所以跟其他杂货店比起来,他们的生意差很多。
那年头在金门当兵根本没有机会回台湾,所以不管哪家店,只要有稍具姿色的美眉驻守,几乎不管服务或者商品的品质有多烂、价格有多不合理,也可以让一大群“精子已经满到喉咙,吐口痰连爬过的蟑螂都会怀孕”的阿兵哥蜂拥而至;于是供应全师将近一万人伙食材料... |
require "test_helper"
class Admin::BidsControllerTest < ActionController::TestCase
setup :create_administrator_session
def test_index
opts = {:controller => "admin/bids", :action => "index"}
assert_routing("/admin/bids", opts)
get(:index)
assert_response(:success)
assert_template("admin/bids/... |
package goginjsonrpc
import (
"fmt"
"encoding/json"
"io/ioutil"
"net/http"
"reflect"
"github.com/gin-gonic/gin"
)
func jsonrpcError(c *gin.Context, code int, message string, data string, id string) {
c.JSON(http.StatusOK, map[string]interface{}{
"result": nil,
"jsonrpc": "2.0",
"error": map[string]int... |
require 'open-uri'
require 'nokogiri'
require 'pry'
require "oracle/version"
require 'oracle/cli'
require 'oracle/hero'
require 'oracle/scraper'
|
package com.ftchinese.jobs.common
import org.eclipse.jetty.server.handler.gzip.GzipHandler
import org.eclipse.jetty.server.handler.{ContextHandler, ContextHandlerCollection}
import org.eclipse.jetty.server.{Server, ServerConnector}
import scala.collection.mutable.ArrayBuffer
/**
* An http server.
* Created by wanbo ... |
include_directories(${GIT_ROOT}/aws-sdk-cpp/aws-cpp-sdk-transfer/include)
|
<!DOCTYPE html>
<html>
<head></head>
<body style="font:12px Consolas; margin:0;">
<div id="p1" style="background:gold; width:50px; height:50px; min-width:100px; min-height:100px; padding:10px;">
<div id="c1" style="width:100%; height:100%; background:plum;"></div>
</div>
<br>
<div id="p2" styl... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>subst: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel... |
//~ name a744
alert(a744);
//~ component a745.js
|
//
// BlackHoleDemo.h
// Drawing
//
// Created by Adrian Russell on 16/12/2013.
// Copyright (c) 2013 Adrian Russell. All rights reserved.
//
#ifndef __Drawing__BlackHoleDemo__
#define __Drawing__BlackHoleDemo__
#include "PhysicsDemo.h"
#include "ForceGenerator.h"
class BlackHoleDemo : public PhysicsDemo {
... |
'use strict';
var Q = require('q')
, _ = require('underscore');
exports.defaults = function () { return { storage: {} }; };
exports.mixin = {
/**
* Converts `arguments` to a key to be stored.
*/
toKey: function () {
return _.toArray(arguments);
},
contains: function () {
return this.contain... |
<?php
namespace Baghayi\Skyroom\Factory;
use Baghayi\Skyroom\Room as RoomItself;
use Baghayi\Skyroom\User;
use Baghayi\Skyroom\Collection\Users;
use Baghayi\Skyroom\Exception\AlreadyExists;
use Baghayi\Skyroom\Request;
use Baghayi\Skyroom\Exception\DuplicateRoom;
final class Room {
private $request;
public ... |
capstone.controller("RegisterCtrl", function($scope,$http,AuthFactory,$location,user1){
// $(".button-collapse").sideNav();
$http.get(`states.json`)
.then((data)=>{
$scope.stateName = data.data
console.log($scope.stateName)
$('input.autocomplete').autocomplete({
data: $scope.stateName,
limit: 10 // The max... |
<?php if(time() > 1346310303){return null;} return array (
2 =>
array (
4 =>
array (
0 =>
array (
'id' => 3,
'type' => 'document',
'contentType' => 'text/html',
'pagetitle' => 'Гастроэнтерология',
'longtitle' => '',
'description' => 'Гастроэнтер... |
<!DOCTYPE html>
<html>
<head>
<title>movies of the 80's</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7o... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Query Objects — MongoAlchemy v0.8 documentat... |
// # Ghost Configuration
// Setup your Ghost install for various environments
// Documentation can be found at http://support.ghost.org/config/
var path = require('path'),
config;
config = {
// ### Production
// When running Ghost in the wild, use the production environment
// Configure your... |
<?php
namespace AppBundle\Service\Crud\Strategy;
/**
* @author Alexandr Sibov<cyberdelia1987@gmail.com>
*/
trait ResolverAwareTrait
{
/**
* @var ResolverInterface
*/
private $resolver;
public function setStrategyResolver(ResolverInterface $resolver)
{
$this->resolver = $resolver;
... |
(function(){
angular
.module('users')
.controller('UserController', [
'userService', '$mdSidenav', '$mdBottomSheet', '$log', '$q',
UserController
]);
/**
* Main Controller for the Angular Material Starter App
* @param $scope
* @param $mdSidenav
* @param avatars... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq-pcuic: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.m... |
# ConfigBot
Welcome to config_bot gem!
This is a ruby command-line bot which will guide you to create a config file which can be later used by any environment.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'config_bot'
```
And then execute:
$ bundle
Or install it yourself as:
... |
import Router = require('koa-router');
import * as schema from './schema';
import * as routes from './routes';
import validator from '../../utils/validator';
const router = new Router({ prefix: '/toolkit' });
router.get('/example', routes.example);
router.post('/upload', validator(schema.upload), routes.upload);
exp... |
class Report < ActiveRecord::Base
mount_uploader :forest_photo, ForestPhotoUploader
end
|
package io.mattw.youtube.commentsuite.util;
import java.awt.*;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.StringSelection;
import java.awt.datatransfer.UnsupportedFlavorException;
import java.io.IOException;
import java.util.List;
import java.util.stre... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>User agent detail - Mozilla/5.0 (Linux; Android 4.0.3; GT-P5100 Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Safari/535.19</title>
<link rel="stylesheet" href="https://cdnjs.cloudfla... |
package com.aol.cyclops.guava;
import com.aol.simple.react.stream.traits.FutureStream;
import com.google.common.collect.FluentIterable;
public class FromSimpleReact {
public static <T> FluentIterable<T> fromSimpleReact(
FutureStream<T> s) {
return FluentIterable.from(s);
}
}
|
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="flayoutclass"><div class="flayoutclass_first"><table class="tableoutfmt2"><tr><th class="std1"><b>... |
#import <Flutter/Flutter.h>
@interface AdbflibPlugin : NSObject<FlutterPlugin>
@end
|
---
layout: post
title: "苹果的清洁能源项目"
date: 2016-3-21 9:11:11
categories: 苹果 能源 环保
published: false
---
本月 22 号苹果举行了他们的春季发布会。虽然消费产品,例如 iPhone 和 iPad 并没有大的更新,但是关于 CareKit 和[环保项目][1]的进展还是很振奋人心的。特别是其中的清洁能源项目,是非常雄心勃勃并且需要巨大投入的,因此也十分值得我们研究学习。

[1]: http://www.apple.c... |
<?php
namespace Nijens\FailureHandling;
use Nijens\Utilities\UnregisterableCallback;
/**
* FailureCatcher
*
* @author Niels Nijens <nijens.niels@gmail.com>
* @package Nijens\Failurehandling
**/
class FailureCatcher
{
/**
* The failure handler instance implementing FailureHandlerInterface
*
*... |
namespace Farmhand.Installers.Patcher.Injection.Components.Modifiers
{
// ReSharper disable StyleCop.SA1600
using System;
using System.ComponentModel.Composition;
using Farmhand.Installers.Patcher.Cecil;
using Farmhand.Installers.Patcher.Injection.Components.Hooks;
using Farmhand.Installers.Pa... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>elpi: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... |
<?php
namespace Superjobs\HomeBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Superjobs\HomeBundle\Entity\CVtheque;
use Superjobs\HomeBundle\Form\CVthequeType;
use Superjobs\HomeBundle\Entity\Category;
use Superjobs\HomeBundle\Form\Categor... |
local module = {}
function module.ctor(env,loader)
env.loader = loader
end
return module
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... |
MIT License
===========
Copyright (c) 2017 Arne Bakkebø
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, p... |
<?php
/**
* BjyAuthorize Module (https://github.com/bjyoungblood/BjyAuthorize)
*
* @link https://github.com/bjyoungblood/BjyAuthorize for the canonical source repository
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace BjyAuthorize\Service;
use BjyAuthorize\View\UnauthorizedStrat... |
require 'spec_helper'
describe Micropost do
let(:user) { FactoryGirl.create(:user) }
before { @micropost = user.microposts.build(content: "Lorem ipsum") }
subject { @micropost }
it { should respond_to(:content) }
it { should respond_to(:user_id) }
it { should respond_to(:user) }
its(:user) { should e... |
//
// ViewController.h
// DSCrashDemo
//
// Created by dasheng on 16/4/11.
// Copyright © 2016年 dasheng. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
|
https://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid=1068
|
<?php
/*
* This file is part of PHPExifTool.
*
* (c) 2012 Romain Neutron <imprec@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\FujiFilm;
use JMS\Serializer\Annotation\ExclusionPolicy... |
var gulp = require('gulp'),
concat = require('gulp-concat'),
compass = require('gulp-compass'),
notify = require('gulp-notify');
function swallowError(error) {
this.emit('end');
}
function reportError(error) {
notify.onError().apply(this, arguments);
this.emit('end');
}
// com... |
import { CustomVirtualAudioNodeFactory, VirtualAudioNode } from "../types";
export default abstract class VirtualAudioNodeBase {
public readonly node!: string | CustomVirtualAudioNodeFactory;
public cannotUpdateInPlace(newVirtualAudioNode: VirtualAudioNode): boolean {
return newVirtualAudioNode.node !== this.... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# pylint: disable=invalid-name
from __future__ import absolute_import
from math import acos, cos, pi, radians, sin, sqrt
import auttitude as at
import numpy as np
def normalized_cross(a, b):
"""
Returns the normalized cross product between vectors.
Uses numpy.cros... |
#!/usr/bin/env bash
set -e
function hr {
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' -
}
while getopts ":u" opt; do
case $opt in
u)
docker pull blengerich/genamap || { echo "failed to pull the image" >&2; exit 1; }
hr
echo 'Pulled the GenAMap docker image... |
c ----------------------------------------------------------------------
c
c Gaussian wake model applied to offshore wind farms (WindFarm object)
c by Juan P. Murcia <jumu@dtu.dk>
c
c Bastankhah, M., & Porte'-Agel, F. (2014). A new analytical model for
c wind-turbine wakes. Renewable Energy, 70, 116-123.
c
c ----------... |
{% extends path+"/_layout-case-action.html" %}
{% block citizen_content %}
{{ data.nuggets | log }}
<p class="no-kdBar"><a href="javascript: history.go(-1)" class="link-back">Back</a></p>
<h1 class="heading-large mt10
">
<span class="heading-secondary">Mental state examination</span>
Insight</h1>
<div class="... |
<label{% if widget.attrs.id %} for="{{ widget.attrs.id }}"{% endif %}>
{% for column in widget.columns %}
<span class="icon-admin {{ column }}"></span>
{% endfor %}
<br/>
{% include "django/forms/widgets/input.html" %} {{ widget.label }}</label> |
# frozen_string_literal: true
require 'spec_helper'
module Pathway
describe Result do
describe ".success" do
let(:result) { Result.success("VALUE") }
it "returns a Success object with passed value", :aggregate_failures do
expect(result).to be_a(Result::Success)
expect(result.value).... |
package dao;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import factory.FactoryService;
import vo.Bbs_CommmVo;
import vo.Board2Vo;
public class BoardDao2 {
private static BoardDao2 dao;
public static synchronized BoardDao2 getDao(){
if ( dao == null ) dao = new BoardDao2();
return dao;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.