code stringlengths 4 1.01M |
|---|
body {
background: #edefed;
font-family: 'Lato', sans-serif;
color: #FDFCFB;
text-align: center;
}
form {
width: 450px;
margin: 17% auto;
}
.header {
font-size: 35px;
text-transform: uppercase;
letter-spacing: 5px;
color: #333;
}
.description {
font-size: 14px;
le... |
{template '_header'}
<div class="page-heading">
<span class='pull-right'>
{ifp 'shop.nav.add'}
<a class="btn btn-primary btn-sm" href="{php echo merchUrl('shop/nav/add')}">添加新首页导航</a>
{/if}
<a class="btn btn-default btn-sm" href="{php echo merchUrl('shop/nav')}">返回列表</a>
</span>
<h2>{if !e... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Net.Http.Headers;
namespace food_therapist.Areas.HelpPage
{
/// <summary>
/// This is used to identify the place where the sample should be applied.
/// </summary>
public class HelpPageSampleKey
{
/// ... |
package com.f2prateek.segment.model;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import java.util.Collections;
import java.util.Date;
import java.util.Map;
import static com.f2prateek.segment.model.Utils.assertNotNull;
import static com.f2prateek.segment.model.Utils.assertNo... |
namespace BlockEngine.Math
{
public class Mathx
{
public static int DivideRoundDown(int numerator, int positiveDivisor)
{
if (numerator >= 0)
{
return numerator / positiveDivisor;
}
else
{
return (numera... |
(function () {
'use strict';
// var matcher = require('../../lib/matchUsers');
angular
.module('chat.routes')
.config(routeConfig);
routeConfig.$inject = ['$stateProvider'];
var c = "/room";// need to make this somehow return the correct room
function routeConfig($stateProvider) {
$stateProvider
... |
import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import sinon from 'sinon';
import RadioInput from './';
describe('RadioInput', () => {
let wrapper;
let value;
let style;
let onChange;
beforeEach(() => {
value = 'test';
style = { backgroundColor: 'blue' };... |
#include <iostream>
#include <future>
#include <signal.h>
#include <string.h>
#include <vector>
#include "BotHandler.h"
#include "BotService.h"
#include "config.h"
#include "ClientHandler.h"
#include "Net/TCPConnection.h"
#include "Net/TCPServer.h"
using namespace std;
using namespace hlt;
vector<ClientHandler::Ptr>... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"><!-- saved from url=(0014)about:internet --><html>
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Keyins API Documentation</title><link rel="stylesheet" href="style.css" type="text/... |
---
type: post
layout: post
title: Version Control
eye_catch: /assets/img/acw.png
tags:
- agile-chuck-wagon
- devops
- vcs
- versioning
- git
comments: true
categories:
- professional
- podcast
status: publish
published: true
meta:
_edit_last: "1"
---
### Agile Chuck Wagon, season 9, episode 11
In today's episode, Ch... |
#import <Foundation/Foundation.h>
#import "JSONAPIRequest.h"
@class ShuttleStop;
@class ShuttleRoute;
@class ShuttleRouteCache;
@class ShuttleStopLocation;
@protocol ShuttleDataManagerDelegate<NSObject>
// everything is optional.
@optional
// message sent when routes were received. If request failed, this is calle... |
/*global describe, beforeEach, it*/
'use strict';
var assert = require('assert');
describe('ttwebapp generator', function () {
it('can be imported without blowing up', function () {
var app = require('../app');
assert(app !== undefined);
});
});
|
<!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" xml:lang="en" lang="en">
<!-- Mirrored from www.codeigniter.org.tw/user_guide/tutorial/index.html by HTTrack Website Copier/3.x [XR&CO'2013], Mon, 14 Oct ... |
# ProgramRelations_items
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**href** | **string** | | [optional] [default to null]
**model** | **string** | | [optional] [default to null]
**operation** | **string** | | [optional] [default to null]
**params** ... |
require 'test_helper'
class GridTest < ActiveSupport::TestCase
test 'load Grid model correctly' do
assert_kind_of Gridder::Grid, Gridder::Grid.new(12, 60, 20)
end
test 'handle accessors correctly' do
grid = Gridder::Grid.new(12, 60, 20)
assert_same 12, grid.num_cols
assert_same 60, grid.col_wid... |
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang=""> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]... |
//setup Dependencies
var connect = require('connect');
//Setup Express
var express = require('express');
var path = require('path');
let app = express();
var server = require('http').Server(app);
var io = require('socket.io')(server);
var keypress = require('keypress');
var port = (process.env.PORT || 8081);
var mut... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.6.0_27) on Thu Jan 23 20:13:40 EST 2014 -->
<meta http-equiv="Content-Type" content="text/html" charset="utf-8">
<title>Uses of Class org.a... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.6.0_27) on Thu Jan 23 20:13:12 EST 2014 -->
<meta http-equiv="Content-Type" content="text/html" charset="utf-8">
<title>org.apache.lucene.s... |
/**
* Created by Tivie on 12-11-2014.
*/
module.exports = function (grunt) {
// Project configuration.
var config = {
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
sourceMap: true,
banner: ';/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Pso extends CI_Controller {
function __construct()
{
parent::__construct();
$this->load->helper('url');
$this->PARTICLE_COUNT = 6;
$this->V_MAX = 8;
$this->MAX_EPOCH = 10000;
$this->CITY... |
class ProfilesController < ApplicationController
before_action :authenticate_user!
before_action :only_current_user
def new
# form where a user can fill out their own profile
@user = User.find( params[:user_id] )
@profile = Profile.new
end
def create
@user = User.find( params[:user_id] )
@profile = @us... |
// The MIT License (MIT)
//
// Copyright (c) 2015-2016 Rasmus Mikkelsen
// Copyright (c) 2015-2016 eBay Software Foundation
// https://github.com/rasmus/EventFlow
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software")... |
from django.conf.urls import url, include
urlpatterns = [
url(r'^postcode-lookup/', include('django_postcode_lookup.urls')),
]
|
The next step in designing the PCB in the KiCad EDA suite is to assign layout footprints to the components included in the schematic with the program CvPcb, which reads the netlist file created by Eeschema. Through-hole footprints are utilized for connectors, protection diodes, and electrolytic capacitors. Surface mo... |
package com.witchworks.api.brew;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.util.DamageSource;
import net.minecraftforge.event.entity.living.LivingDeathEvent;
/**
* This class was created by Arekkuusu on 06/06/2017.
* It's distributed as part of Witchworks under
* the MIT license.
*/
publi... |
\begin{tabular}{ c c c c c c }
Program & Size & Allocs & Runtime & Elapsed & TotalMem\\
\hline
\end{tabular}
\begin{verbatim}
[("Project name","The Glorious Glasgow Haskell Compilation System")
,("GCC extra via C opts"," -fwrapv -fno-builtin")
,("C compiler command","C:\\TeamCity\\buildAgent\\work\\a45bb99c6f82efd... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePcLoginRequest extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
// Recently no errors detected, the deprecated tables should be dest... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyConfigurat... |
TRGS = bc bc_non_partitioned
LIBS += -lpthread -lrt
##BOOST_PATH = /run/pkg/boost-/1.53.0-gcc_4.7.3
##BOOST_FLAGS = -I$(BOOST_PATH)/include -L$(BOOST_PATH)/lib -lboost_graph
CXXFLAGS = -g --std=c++0x -O3
CXXFLAGS += -Wall -Werror
all: $(TRGS)
bc: bc.cc
bc_non_partitioned: bc_non_partitioned.cc
##boost_dijk_real... |
<?php
declare(strict_types=1);
namespace Doctrine\ORM\Mapping;
/**
* @Annotation
* @Target("PROPERTY")
*/
final class JoinColumns implements Annotation
{
/** @var array<\Doctrine\ORM\Mapping\JoinColumn> */
public $value;
}
|
<?php
namespace AvalancheDevelopment\Approach\Schema;
class ExternalDocumentation
{
use Part\Extensions;
/** @var string */
protected $description;
/** @var string */
protected $url;
/**
* @return string
*/
public function getDescription()
{
return $this->descript... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.4.2_05) on Thu Sep 30 22:16:17 GMT+01:00 2004 -->
<TITLE>
ServletContextAwareProcessor (Spring Framework)
</TITLE>
<META NAME="keywords" CONTENT="org.sp... |
using MVC.View;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Configuration;
using System.Text;
using System.Threading.Tasks;
using Webshop.Models;
using DataModels;
using MVC;
namespace Webshop.Controllers
{
public class PublisherController : MVC.Controller.Controller
{
... |
package demo
import (
_ "fmt"
cp "github.com/eka-tel72/go-chipmunk62/chipmunk"
)
/*
#include <stdlib.h>
int Random(void)
{
return rand();
}
void Seed(unsigned int i)
{
srand(i);
}
*/
import "C"
type tumble struct {
*demoClass
rogueBoxBody *cp.Body
}
var tumbleInst = &tumble{
&demoClass{
name: "Tumbl... |
<?php
/**
* @copyright 2009-2016 Vanilla Forums Inc.
* @license MIT
*/
namespace HipChat\v2\Auth;
/**
* Represents a HipChat auth token.
*
* @author Tim Gunter <tim@vanillaforums.com>
*/
class AuthContainer {
/**
* Token
* @var string
*/
protected $token;
/**
* Token type (Ba... |
// Created by Yang Meyer on 03.02.12.
// Copyright (c) 2012 compeople. All rights reserved.
#import <UIKit/UIKit.h>
@interface UIResponder (MotionRecognizers)
/** Registers the receiver for future motion events.
The `action` message will be sent to the receiver when a motion event occurs and is
not intercepted ... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="sl_SI">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About LEOcoin</source>
<translation>O LEOcoin</translation>
</message>
<message>... |
//
// EGTiledLayerViewController.h
// Widgets
//
// Created by EG on 2017/9/4.
// Copyright © 2017年 EGMade. All rights reserved.
//
#import "EGBasicViewController.h"
@interface EGTiledLayerViewController : EGBasicViewController
@end
|
<!DOCTYPE html>
<!--
Modification 08/02/2015 (omie w.):
- Added foundation-icons.css
- Installed Foundation Icons inside of /icons
- Added drop-down menu HTML
Modification 08/05/2015 (omie w.):
- Changed Search icon to drop-down menu in mobile Design
- Changed the event titles to orange with a 15% top radius
- Updated... |
<p>
comp-788 works!
</p>
|
<?php
/**
* This is a Loom pagecontroller.
* Show search form and overview of movies
* together with administration links like edit, delete, ...
*
*/
// Include the essential config-file which also creates the $loom variable with its defaults.
include(__DIR__.'/config.php');
// Do it and store it all in variables... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using MixedRealityToolkit.InputModule.EventData;
using UnityEngine.EventSystems;
namespace MixedRealityToolkit.InputModule.InputHandlers
{
/// <summary>
///... |
## 37. FacebookのEduardo Saverin
[Eduardo Saverin](https://en.wikipedia.org/wiki/Eduardo_Saverin)は、ブラジルのサンパウロで、裕福な家族に生まれた。Harvardに入学し、Mark Zuckerbergと会う。
「フェイスブック;若き天才の野望」のよれば、Eduardo Saverinは、大学の投資研究クラブの幹事を務めていた。Mark Zuckerbergは、Eduardo Saverinと各$1000の出資をし、Eduardo SaverinにFacebookの30%の株を渡した。
Eduardo Saverinは、2004年春、... |
// Export modules to global scope as necessary (only for testing)
if (typeof process !== 'undefined' && process.title === 'node') {
// We are in node. Require modules.
expect = require('chai').expect;
sinon = require('sinon');
num = require('..');
isBrowser = false;
} else {
// We are in the browser... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test Page</title>
</head>
<body>
<h1>Hello Bryan</h1>
</body>
</html>
|
import sys
[_, ms, _, ns] = list(sys.stdin)
ms = set(int(m) for m in ms.split(' '))
ns = set(int(n) for n in ns.split(' '))
print(sep='\n', *sorted(ms.difference(ns).union(ns.difference(ms))))
|
package org.innovateuk.ifs.management.publiccontent.formpopulator.section;
import org.innovateuk.ifs.competition.publiccontent.resource.PublicContentSectionType;
import org.innovateuk.ifs.management.publiccontent.form.section.ScopeForm;
import org.innovateuk.ifs.management.publiccontent.formpopulator.PublicContentFor... |
import os
import numpy as np
class Dataset(object):
"""
This class represents a dataset and consists of a list of SongData along with some metadata about the dataset
"""
def __init__(self, songs_data=None):
if songs_data is None:
self.songs_data = []
else:
self... |
import gevent
import time
def doit(i):
print "do it:%s" % (i)
gevent.sleep(2)
print "done:%s" %(i)
t2 = time.time()
threads = {}
for i in range(5):
t = gevent.spawn(doit, i)
threads[i] = t
#print dir(t)
gevent.sleep(1)
print threads
print threads[3].dead
threads[3]... |
import sys
import os
import time
import numpy
import cv2
import cv2.cv as cv
from PIL import Image
sys.path.insert(0, os.path.join(
os.path.dirname(os.path.dirname(os.path.dirname(__file__)))))
from picture.util import define
from picture.util.system import POINT
from picture.util.log import LOG as L
THRESHOLD =... |
/* io::mod.rs */
use core::mem::volatile_store;
use kernel::sgash;
mod font;
/* http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0225d/BBABEGGE.html */
pub static UART0: *mut u32 = 0x101f1000 as *mut u32;
pub static UART0_IMSC: *mut u32 = (0x101f1000 + 0x038) as *mut u32;
#[allow(dead_code)]
pub stati... |
# How to use this repo:
1. Use the search bar above to look for tests.
2. If we are missing a test please PR and be sure to add keywords to it.
### Controllers
```
describe('controllers', function(){
beforeEach(module('myApp.controllers'));
it('should ....', inject(function() {
//spec body
}));
it('sho... |
export var lusolveDocs = {
name: 'lusolve',
category: 'Algebra',
syntax: ['x=lusolve(A, b)', 'x=lusolve(lu, b)'],
description: 'Solves the linear system A * x = b where A is an [n x n] matrix and b is a [n] column vector.',
examples: ['a = [-2, 3; 2, 1]', 'b = [11, 9]', 'x = lusolve(a, b)'],
seealso: ['lup'... |
# stable-node-version [](https://travis-ci.org/vadimdemedes/stable-node-version)
Fetch stable Node.js version.
### Installation
```
$ npm install stable-node-version --save
```
### Usage
```js
const fetchStableVersion = requ... |
/**
* Copyright (C) 2014 Kasper Kronborg Isager.
*/
package dk.itu.donkey;
// SQL utilities
import java.sql.SQLException;
/**
* The Schema class is used for executing Data Definition Language (DDL)
* statements against a database thus handling schema definition.
*
* @see <a href="https://en.wikipedia.org/wiki/D... |
class EducatorSectionAssignmentRow < Struct.new(:row, :school_ids_dictionary)
# Represents a row in a CSV export from Somerville's Aspen X2 student information system.
# This structure represents student section assignments.
#
# Expects the following headers:
#
# :local_id, :course_number, :school_local_i... |
def output_gpx(points, output_filename):
"""
Output a GPX file with latitude and longitude from the points DataFrame.
"""
from xml.dom.minidom import getDOMImplementation
def append_trkpt(pt, trkseg, doc):
trkpt = doc.createElement('trkpt')
trkpt.setAttribute('lat', '%.8f' % (pt['lat... |
<?php
require_once(__DIR__ . "/../model/config.php");
$username = filter_input(INPUT_POST, "username", FILTER_SANITIZE_STRING);
$password = filter_input(INPUT_POST, "password", FILTER_SANITIZE_STRING);
$salt = "$5$" . "rounds=5000$" . uniqid(mt_rand(), true) . "$";
$hashedPassword = crypt($passwor... |
/*
* PaintableShape.cpp
*
* Created on: Mar 19, 2017
* Author: Brian Schnepp
* License: See 'LICENSE' in root of this repository.
*/
#include <PathToolKit/graphic/gstructs.h>
#include <PathToolKit/graphic/PaintableShape.h>
#include <PathToolKit/gutil/Color.h>
#include <cstdlib>
namespace PathDraw
{
... |
/*
Copyright (c) 2017, Dogan Yazar
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, publish, distribut... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import urllib
import time
import datetime
#From PatMap by Jason Young, available on GitHub at github.com/JasYoung314/PatMap
#Function to get distance between 2 points from google maps. By default route is by car, distance is given in miles and time in minutes... |
import { StyleSheet } from "react-native";
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: "flex-start",
alignItems: "center",
backgroundColor: "#669999"
},
buttons: {
// flex: 0.15,
flexDirection: "row",
alignItems: "center",... |
# make_gdalrasterband_view
## Prototype
```cpp
template<T>
gdal_raster_view<T> make_gdalrasterdata_view(GDALRasterBand* band);
template<T>
gdal_raster_view<T> make_gdalrasterdata_view(std::shared_ptr<GDALRasterBand> band);
```
## Description
Creates a gdal_raster_view for the band. The user is responsible for the li... |
<!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... |
/**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2012 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
#import "TiProxy.h"
@interface Com0x82SocialRequestProxy : TiProxy {
}
@end
|
LifeBalancer
============
iPhone App to plan your life as described in the book "The 7 Habits of Highly Effective People"
|
var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function (req, res, next) {
res.render('index', { title: 'Express' });
});
//test canvas
router.get('/canvas', function (req, res, next) {
res.render('canvas');
});
module.exports = router;
|
package com.jexpect.exception_messages;
import org.junit.Test;
import com.jexpect.util.Command;
import static com.jexpect.Expect.expect;
import static com.jexpect.util.ExceptionHandler.getExceptionMessage;
import static org.junit.Assert.assertEquals;
public class ToBeBooleanTest {
@Test
public void When_Expect... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2015-2021 The Neutron Developers
//
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcconsole.h"
#incl... |
'use strict';
module.exports = {
"definitions": {
"validation-error": {
"type": "object",
"description": "Validation error",
"properties": {
"param": {
"type": "string",
"description": "The parameter in error"
},
"msg": {
"type": "string",
... |
# Muriel van Caster Portfolio
|
from datetime import date
NTESTS = 1
PREV_DAYS = 10
PERCENT_UP = 0.01
PERCENT_DOWN = 0.01
PERIOD = 'Hourly' # [5-min, 15-min, 30-min, Hourly, 2-hour, 6-hour, 12-hour, Daily, Weekly]
MARKET = 'bitstampUSD'
# DATE START
YEAR_START = 2011
MONTH_START = 9
DAY_START = 13
DATE_START = date(YEAR_START, MONTH_START, DAY_STAR... |
class Lancamento < ActiveRecord::Base
belongs_to :user
belongs_to :categoria
belongs_to :tipo_lancamento
belongs_to :rotina
belongs_to :sub_categoria
validates_presence_of :valor, :user_id, :tipo_lancamento_id, :categoria_id, :descricao, :data_pagamento
scope :mes_atual, -> (data,user_id) { where(["(data... |
package nl.dekkr.hoppr.rest
import nl.dekkr.hoppr.model.{Feed, Syndication, FetchLogger}
import nl.dekkr.hoppr.rss.{FeedLogOutput, AtomOutput}
import spray.http.MediaTypes._
import spray.http.StatusCodes
import spray.httpx.marshalling._
import StatusCodes._
import spray.routing.HttpService
case class Url(uri: String)... |
version https://git-lfs.github.com/spec/v1
oid sha256:2e65db5b56d276f8bcf293bede932b782ec29e72a25125d3412f81315301ecc4
size 14066
|
# encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative sou... |
import { subtract } from '../subtract';
describe('Core.subtract', () => {
test('Subtracts the second argument from the first', () => {
expect(subtract(10, 8)).toBe(2);
});
});
|
/* Copyright (C) YOOtheme GmbH, YOOtheme Proprietary Use License (http://www.yootheme.com/license) */
/*
* RTL Style Sheet
*/
.wk-slideshow-default .nav li {
margin-left: 0;
margin-right: 5px;
}
.wk-slideshow-default .nav li:first-child {
margin-right: 0;
}
.wk-slideshow-default > div:hover .next {
... |
'use strict';
describe('AutoFormatter', function() {
var event = require('../polyfill/event');
var AutoFormatter = require('../src/auto-formatter');
var autoFormatter;
var inputNode;
var config = {
limitToMaxLength: true,
recurringPattern: false
};
before(function() {
inputNode = document.cr... |
/*jslint node: true */
'use strict';
var _ = require('underscore.string'),
inquirer = require('inquirer'),
path = require('path'),
chalk = require('chalk-log');
module.exports = function() {
return function (done) {
var prompts = [{
name: 'taglibName',
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Member extends Model
{
protected $fillable = ['first_name', 'last_name', 'district_id'];
public function groups() {
return $this->belongsToMany('App\Group');
}
public function votes() {
return $this->hasMany('App\Vot... |
<?php
namespace App\AdminBundle\Controller;
use Sonata\AdminBundle\Controller\CoreController as BaseCoreController;
use Symfony\Component\HttpFoundation\StreamedResponse;
class CoreController extends BaseCoreController
{
protected function createStreamedFileResponse($file, $filename)
{
// $response->h... |
'use strict';
var _ = require('lodash');
var Q = require('q');
var util = require('util');
var should = require('./utils/should');
var descriptors = require('./utils/descriptors');
var Attribute = require('./attribute');
var AssertionResult = require('./assertion-result');
var PropertyAssertion = require('./assertions... |
require 'rails/generators'
module Conductor
class MailersController < ApplicationController
def new
end
def create
@form = MailerGeneratorForm.new(params[:mailer])
if @form.valid?
Rails.logger.info @form.command_line
@form.run
flash[:success] = "The mailer was creat... |
#import <UIKit/UIKit.h>
@class ViewController;
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) ViewController *viewController;
@end
|
require 'rails_helper'
describe Standup do
describe 'permitted params' do
it 'allows the scalars through as well as supporting complex attributes such as the image_days array' do
unpermitted = ActionController::Parameters.new(
title: 'Foo',
to_address: 'Bar',
subject_prefix: 'Baz',
... |
//
// RootViewController.cs
//
// Author:
// Alan McGovern <alan@xamarin.com>
//
// Copyright 2011, Xamarin 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 restrictio... |
//
// AppDelegate.h
// practice
//
// Created by na on 14-3-3.
// Copyright (c) 2014年 na. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "LockViewController.h"
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
ofThread is a thread base class with a built in mutex. A [thread](http://en.wikipedia.org/wiki/Thread_(computing)) is essentially a mini processing object you can run in parallel to your main application loop and is useful for running time intensive operations without slowing down your app.
####Implementing a Thread
... |
require 'chaos/commands/server'
require 'chaos/commands/app'
require 'chaos/commands/domains'
require 'chaos/commands/config'
require 'chaos/commands/servicepacks'
require 'chaos/commands/addons' |
// Vaca - Visual Application Components Abstraction
// Copyright (c) 2005-2009 David Capello
//
// This file is distributed under the terms of the MIT license,
// please read LICENSE.txt for more information.
#include <vaca/vaca.h>
#include "../resource.h"
using namespace vaca;
class TimerViewer : public ... |
---
layout: post
title: 每天500字:如何取舍
categories: 500字
description: 最近一直在纠结买房子的事情,从二手看到一手房,信息扑朔迷离,着实让人难以取舍。
keywords: 500字
---
APR 10 2017 08:29 广州
从真正下了决心准备开始买房子开始,东奔西跑大概有二十多天的时间,其中真是百味杂陈,苦不堪言。因为老人和妻子都非常看重配套,希望能住的方便一些,离成熟的社区近一些。
加上还要考虑学位户型大小价格,因此开始的时候是从找二手房开始的,安装家人的想法,二手房价格便宜,地段相对成熟,生活配套完善,对应的学区也比较优越,对我们这种刚需住房的购买者来说... |
package com.dwarfartisan.parsec;
import java.io.EOFException;
/**
* Created by Mars Liu on 2016-01-07.
* Digit 判断下一个项是否是一个表示数字的字符.它仅接受 Character/char .
*/
public class Digit<Status, Tran> implements Parsec<Character, Character, Status, Tran> {
@Override
public Character parse(State<Character, Status, Tran>... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="/static/img/favicon.ico" />
<title>Microsoft Student Partn... |
import React from 'react'
import MediaSummary from './MediaSummary'
import { Button } from 'semantic-ui-react'
import './mediaverticallist.css'
export default class MediaVerticalList extends React.Component {
render () {
var arr = this.props.data
if (arr === undefined) {
arr = []
}
var mediaNo... |
/* global window beforeEach jasmine it xit fit */
if (typeof global === 'undefined') {
global = window; // eslint-disable-line
}
const customMatchers = {
toAlmostEqual: (util, customEqualityTesters) => ({
compare: (actual, expected) => {
const cleanActual = actual
.trim()
.replace(/\n/g,... |
namespace PatientManagement.Administration.Repositories
{
using Serenity;
using Serenity.Data;
using Serenity.Services;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Reflection;
using MyRow = Entities.UserRoleRow;
public cla... |
using System;
using System.Collections.Generic;
namespace TietoCRM.Models
{
/// <summary>
/// Denna klass används inte längre!
/// </summary>
public class MainContractText
{
public enum MainContractType
{
MainHead,
Subheading,
Text
... |
<?php
namespace Web\GeneralBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class GeneralController extends Controller
{
//Muestra Index
public function indexAction()
{
$name='mensaje index';
return $this->render('GeneralBundle:General:index.html.twig', array('name' ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.