code
stringlengths
4
1.01M
language
stringclasses
2 values
# frozen_string_literal: true require "cases/helper" require "models/user" require "models/visitor" class SecurePasswordTest < ActiveModel::TestCase setup do # Used only to speed up tests @original_min_cost = ActiveModel::SecurePassword.min_cost ActiveModel::SecurePassword.min_cost = true @user = U...
Java
#include <iostream> #include <cstdio> #include <cmath> #include <cstdlib> #include <fstream> #include <iomanip> #include <string> #include <cstring> #include "../include/globals.hpp" #include "../include/classes.hpp" #include "../include/functions.hpp" struct cell{ double xStart; double yStart; double zSt...
Java
<?php namespace Sigcotweb\AplicativoBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; /** * This is the class that validates and merges configuration from your app/config files * * To learn more see {@link http:...
Java
using System; using System.Collections.Generic; using System.Text; using _03BarracksFactory.Contracts; namespace P03_BarraksWars.Core.Commands { class RetireCommand : Command { public RetireCommand(string[] data, IRepository repository, IUnitFactory unitFactory) : base(data, repository, un...
Java
/* * Globalize Culture id * * http://github.com/jquery/globalize * * Copyright Software Freedom Conservancy, Inc. * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * This file was generated by the Globalize Culture Generator * Translation: bugs found in this file...
Java
package de.codecentric.awesome.recommendation.core; import java.util.HashMap; import java.util.Map; /** * Created by afitz on 15.03.16. */ public class RecommendationLookup { private static RecommendationLookup ourInstance = new RecommendationLookup(); private String standardProductRecommendation = "P999";...
Java
import omit from 'lodash/omit'; import get from 'lodash/get'; import isFunction from 'lodash/isFunction'; import { bunyanLevelToRollbarLevelName } from '../common/rollbar'; // Rollbar script exposes this global immediately, whether or not its already initialized export const isGlobalRollbarConfigured = () => !!get(gl...
Java
# coding: utf-8 """ General utilities. """ from __future__ import division, print_function __author__ = "adrn <adrn@astro.columbia.edu>" # Standard library import collections import sys import logging import multiprocessing # Third-party import numpy as np __all__ = ['get_pool'] # Create logger logger = logging....
Java
{% extends 'layout.server.view.html' %} {% block content %} <div ui-view></div> {% endblock %}
Java
## ![](Common/icon.png) PdfRasterizer Plugin for Xamarin and Windows Simple cross platform plugin that renders PDF files to images for easier integration. ### Setup * Available on NuGet: http://www.nuget.org/packages/Xam.Plugin.PdfRasterizer [![NuGet](https://img.shields.io/nuget/v/Xam.Plugin.PdfRasterizer.svg?labe...
Java
#include <pthread.h> #include <assert.h> int g = 17; // matches expected precise read pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t C = PTHREAD_MUTEX_INITIALIZER; void *t_fun(void *arg) { pthread_mutex_lock(&B); pthread_mutex_lock(&C); g = 42; pt...
Java
import EmberObject from '@ember/object'; import { htmlSafe } from '@ember/string'; import RSVP from 'rsvp'; import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import { render, settled, find, click } from '@ember/test-helpers'; import hbs from 'htmlbars-inline-precompile'; c...
Java
using System; using System.IO; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; using System.Windows; using System.Windows.Threading; using Dependinator.Common.ModelMetadataFolders; using Dependinator.Common.ModelMetadataFolders.Private; using Dep...
Java
var mongoose = require('mongoose'); var bcrypt = require('bcrypt-nodejs'); // define the schema for our user model var authUserSchema = mongoose.Schema({ unique_ID : String, username : String, password : String, role : String, first_name : String, last_nam...
Java
<?php namespace fm\KitBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class KitBundle extends Bundle { }
Java
from notifications_utils.clients.antivirus.antivirus_client import ( AntivirusClient, ) from notifications_utils.clients.redis.redis_client import RedisClient from notifications_utils.clients.zendesk.zendesk_client import ZendeskClient antivirus_client = AntivirusClient() zendesk_client = ZendeskClient() redis_cli...
Java
/** * Copyright 2012-2018, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; var Lib = require('../../lib'); // The contour extraction is great, except it totally fails for constraints bec...
Java
module.exports = { defersToPromises : function(defers) { if(Array.isArray(defers)) { return defers.map(function(defer) { return defer && defer.promise ? defer.promise : defer; }); } var res = {}; Object....
Java
export default (sequelize, DataTypes) => { const Product = sequelize.define('Product', { name: DataTypes.STRING, description: DataTypes.TEXT, price: DataTypes.FLOAT, releasedate: DataTypes.DATE }, { classMethods: { associate: models => { Product.belongsToMany(models.Cart, {through:...
Java
<!DOCTYPE html> <html lang="en"> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>lora imoti</title> <!-- Bootstra...
Java
<?php namespace Glucose\Exceptions\User; class PrimaryKeyCollisionException extends \Glucose\Exceptions\Entity\DuplicateEntityException { }
Java
Arktrail ======== You are the captain of a futuristic interstellar ark that quite honestly, left space-dock months too early. Will you patch up your ship and survive the long journey between worlds to finish the space gate you are tasked to build, or will your ship succumb to the perils of interstellar space? ##### ...
Java
require "tenant/engine" module Tenant end
Java
import { SET_SORT_ORDER } from '../constants/actions'; export default function (state = 'ASCENDING', action) { switch (action.type) { case SET_SORT_ORDER: return action.order; default: return state; } }
Java
<app-header></app-header> <app-slider></app-slider> <<div class="container text-center"> <h1 id="title">Delicious Recipes</h1> <p>Angular</p> <h4>The Tranquil Gazelles</h4> <img [src]="gazelles" class="img-circle" alt="Us"> <p>We have created a fictional food SPA.</p> </div> <div class="latest-re...
Java
import mongoose from 'mongoose'; const ModelPortfolioSchema = new mongoose.Schema({ id: String, name: String, displayName: String, email: String, securities: [{ symbol: String, allocation: {type: Number, min: 0, max: 100}, }] }); ModelPortfolioSchema.add({ subGroups: [ModelPortfolioSchema], modelPo...
Java
import React, { Component } from 'react'; class Home extends Component { render () { return ( <div> <h1>Home</h1> <p>Bienvenidos!!!</p> <pre>{` { path: '/', pathExact: true, ...
Java
--- author: Joanna Rothkopf lang: en title: 'The sharing economy is a lie: Uber, Ayn Rand and the truth about tech and libertarians' --- Horror stories about the increasingly unpopular taxi service Uber have been commonplace in recent months, but there is still much to be learned from its handling of the recent hostag...
Java
<ion-view view-title="{{ctrl.guideTitle}}"> <ion-content> <div class="list"> <div class="card-panel grey lighten-4" ng-repeat="guide in ctrl.guides"> <div ng-repeat="guideline in guide.guidelines"> <div class="item-text-wrap">{{guideline.text}}</div> </div> </div> </div> ...
Java
define('findScriptUrls', [], function () { return function(pattern) { var type = typeof pattern, i, tags = document.querySelectorAll("script"), matches = [], src; for (i = 0; i < tags.length; i++) { src = tags[i].src || ""; if (type === "string") { if (src.ind...
Java
<h2>Sprzątanie pobojowisk</h2> <?php f('jednostki_miasto'); $jednostki = jednostki_miasto($gracz); if(!empty($_POST['cel']) && !empty($_POST['u'])){ f('sprzatanie_wyslij'); echo sprzatanie_wyslij($jednostki,$_POST['cel'],$_POST['u'],$gracz); $gracz = gracz($gracz['gracz']); f('jednostki_miasto'); $jedno...
Java
package net.tmachq.Ported_Blocks.tileentities.renderers; import java.io.DataInputStream; import net.minecraft.block.Block; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.OpenGlHelper; import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.renderer.tileentity.TileEnt...
Java
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> START_ATF_NAMESPACE enum MENUPARTS { MENUPartFiller0 = 0x0, MP_MENUITEM = 0x1, MP_MENUDROPDOWN = 0x2, MP_MENUBARITEM = 0x3, MP_MEN...
Java
// Karma configuration // http://karma-runner.github.io/0.12/config/configuration-file.html // Generated on 2015-05-11 using // generator-karma 0.8.3 module.exports = function(config) { 'use strict'; config.set({ // enable / disable watching file and executing tests whenever any file changes autoWatch: tr...
Java
var indexSectionsWithContent = { 0: "dfrsw~", 1: "drs", 2: "dfrs~", 3: "rs", 4: "w" }; var indexSectionNames = { 0: "all", 1: "classes", 2: "functions", 3: "variables", 4: "pages" }; var indexSectionLabels = { 0: "All", 1: "Classes", 2: "Functions", 3: "Variables", 4: "Pages" };
Java
--- layout: post title: 1212 TIL excerpt: "" tags: [TIL] categories: [TIL] link: comments: true pinned: true image: feature: --- ## Today Check List - [ ] S3로 이미지 업로딩 테스트 - [ ] 지도 위치 DB에 넣기 - [ ] 그룹스터디 express 환경세팅 ## Tomorrow Check List ## Today I learned ### Spring 뷰 데이터를 Controller로 전달하는 여러가지 방법. * https:...
Java
class DeviseCreateUsers < ActiveRecord::Migration def change create_table :users do |t| ## Database authenticatable t.boolean :admin t.string :email, null: false, default: "" t.string :encrypted_password, null: false, default: "" ## Recoverable t.string :reset_p...
Java
class RoomSerializer < ActiveModel::Serializer attribute :id attribute :name, key: :title end
Java
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Authentication extends CI_Controller { function index(){ $value = $this->input->cookie('remember_me'); if ($value == 'true') { $arr = array( 'user' => $this->input->cookie('user'), 'real_name' => $this->input->cookie(...
Java
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Web Client * Copyright (C) 2006, 2007, 2009, 2010 Zimbra, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the License. You may obtain a ...
Java
var pub = {}, Q, Knex; module.exports = function ($inject) { $inject = $inject || {}; Q = $inject.Q; Knex = $inject.Knex; return pub; }; pub.get = function(tableName) { var q = Q.defer(); pub.getMetadata(tableName) .then(function(relations) { q.resolve(relations[...
Java
using System.Web.Mvc; using FFLTask.SRV.ServiceInterface; using FFLTask.UI.PC.Filter; using FFLTask.SRV.ViewModel.Account; using FFLTask.SRV.ViewModel.Shared; namespace FFLTask.UI.PC.Controllers { public class RegisterController : BaseController { private IRegisterService _registerService; pub...
Java
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users', function(Blueprint $table) { $table->increments('id'); $table->str...
Java
# frozen_string_literal: true require 'fieldhand/metadata_format' module Fieldhand # A parser for ListMetadataFormats responses. # # See https://www.openarchives.org/OAI/openarchivesprotocol.html#ListMetadataFormats class ListMetadataFormatsParser attr_reader :response_parser # Return a parser for th...
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Botos</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css"> body{ color: #28fe14; background-color: black; font-family: "Courier New";...
Java
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace System.Resources { // Intentionally excluding visibility so it defaults to internal except for // ...
Java
//--------------------------------------------------------------------------------------------------------------------- // <copyright company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> //---------------------------------------------------------------------------------...
Java
// Compiled by ClojureScript 1.7.170 {} goog.provide('figwheel.client.file_reloading'); goog.require('cljs.core'); goog.require('goog.string'); goog.require('goog.Uri'); goog.require('goog.net.jsloader'); goog.require('cljs.core.async'); goog.require('goog.object'); goog.require('clojure.set'); goog.require('clojure.st...
Java
export default class State { constructor($rootScope) { this.$rootScope = $rootScope; this.state = []; } setData(data) { console.log('state set data', data) this.state = data; this.$rootScope.$apply(); } getData() { //console.log('state get data', s...
Java
python tile_grab2.py -b "35.247;32.130;42.786;37.676" -z 9 -i false -d "syria_satellite" -u "https://api.mapbox.com/styles/v1/mapbox/satellite-streets-v9/tiles/{z}/{x}/{y}?access_token=pk.eyJ1Ijoic3BhdGlhbG5ldHdvcmtzIiwiYSI6ImNpcW83Mm1kYjAxZ3hmbm5ub2llYnNuMmkifQ.an57h9ykokxNlGArcWQztw" -f jpg python tile_grab2.py -b "3...
Java
<?php /** * This file is part of the BootstrapBundle project. * * (c) 2013 Philipp Boes <mostgreedy@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace P2\Bundle\BootstrapBundle\Form\Extension; /** * Class FormT...
Java
--- layout: post date: 2015-10-14 title: "Allure Quinceanera Dresses - Style Q400 2015 Sleeveless Floor-Length Ballgown" category: Allure tags: [Allure,Ballgown,Sweetheart,Floor-Length,Sleeveless,2015] --- ### Allure Quinceanera Dresses - Style Q400 Just **$266.99** ### 2015 Sleeveless Floor-Length Ballgown <table><t...
Java
14 uid=311598 27 mtime=1430738623.672251 27 atime=1430738623.671251
Java
var request = require('request'); var Client = (function () { function Client() { this.options = { "url": "", "method": "GET", "bodyParams": {}, "gzip": true, "json": true }; } Client.prototype.connect = function (parent) { ...
Java
#encoding:UTF-8 # ISS017 - Character Improve 1.1 #==============================================================================# # ** ISS - Character Improve #==============================================================================# # ** Date Created : 08/04/2011 # ** Date Modified : 08/10/2011 # ** Created By ...
Java
# mozaik-ext-sheets List rows from Google Sheets in Mozaïk dashboard. The extension can be handy for various use cases where data is maintained in Google Sheets: - List events (including dates etc) - Show game results - Show event participants, company vacation listing - Etc. ![preview](https://raw.githubusercontent...
Java
function* generatorFn() { yield 'foo'; yield 'bar'; return 'baz'; } let generatorObject1 = generatorFn(); let generatorObject2 = generatorFn(); console.log(generatorObject1.next()); // { done: false, value: 'foo' } console.log(generatorObject2.next()); // { done: false, value: 'foo' } console.log(generator...
Java
<div class="four wide column center aligned votes"> <div class="ui statistic"> <div class="value"> {{ article.votes }} </div> <div class="label"> Points </div> </div> </div> <div class="twelve wide column"> <a class="ui large header" href="{{ article.link }}"> {{ article.title }} </a> <div class="...
Java
#pragma once #include "animations/display.h" #include "animations/AnimationProgram.h" #include "animations/PaintPixel.h" #include "blewiz/BLECharacteristic.h" #include "freertos/task.h" class BadgeService : public BLEService { public: BadgeService(Display &display, AnimationProgram &animationProgram); virtu...
Java
/* Document : colors Author : Little Neko Description: template colors */ /* Table of Content ================================================== #BOOSTRAP CUSTOMIZATION #TYPOGRAPHY #LINKS AND BUTTONS #HEADER #MAIN MENU #FOOTER #SLIDERS #PORTFOLIO #MISCELANIOUS #NEKO CSS FRAMEWORK */ /* BOOSTRA...
Java
<?xml version="1.0" ?><!DOCTYPE TS><TS language="vi_VN" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About bitcoinlite</source> <translation type="unfinished"/> </message> <message> <location...
Java
// var isWaiting = false; // var isRunning = false; // var seconds = 10; // var countdownTimer; // var finalCountdown = false; function GameTimer(game) { this.seconds = game.timelimit; this.secondPassed = function() { if (this.seconds === 0 && !game.gameOver) { game.endGame(); } else if (!game.gameOver) { ...
Java
Click With Me Now ============== This is an integration between Interactive Intelligence's CIC platform and Click With Me Now. See the [wiki](https://github.com/InteractiveIntelligence/ClickWithMeNow/wiki) for more information. Visit CWMN at http://clickwithmenow.com
Java
package uk.gov.prototype.vitruvius.parser.validator; import java.util.List; public class ValidationMessage { private String message; private ValidationType type; public ValidationMessage() { } public ValidationMessage(String message, ValidationType type) { this.message = message; ...
Java
/* global Cervus */ const material = new Cervus.materials.PhongMaterial({ requires: [ Cervus.components.Render, Cervus.components.Transform ], texture: Cervus.core.image_loader('../textures/4.png'), normal_map: Cervus.core.image_loader('../textures/normal2.jpg') }); const phong_material = new Cervus.ma...
Java
#!/bin/mksh # (c) alexh 2016 set -eu printf "%s\n\n" 'Content-type: text/plain' # Optional with use of 'check_interval' WANTED_INTERVAL='10' USER="$( /usr/bin/whoami )" HOMES_DIR='/home' WWW_DIR="/var/www/virtual/${USER}" HOME="${HOMES_DIR}/${USER}" VAR_DIR="${HOME}/var/git-publish" SRC_DIR="${HOME}/git" function...
Java
#!/usr/bin/env python import pygame pygame.display.init() pygame.font.init() modes_list = pygame.display.list_modes() #screen = pygame.display.set_mode(modes_list[0], pygame.FULLSCREEN) # the highest resolution with fullscreen screen = pygame.display.set_mode(modes_list[-1]) # the lowest resolu...
Java
// // Copyright(c) 2017-2018 Paweł Księżopolski ( pumexx ) // // 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, m...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="generator" content="rustdoc"> <meta name="description" content="API documentation for the Rust `from_u32_unchecked` fn in crate `std`."> <meta name="keywo...
Java
/*! normalize.css v2.1.2 | MIT License | git.io/normalize */ /* ========================================================================== HTML5 display definitions ========================================================================== */ /** * Correct `block` display not defined in IE 8/9. */ /* line 11, D...
Java
yii-lazy-image ============== Lazy image loader for the Yii framework. It is implemented as a static class which leverages [jQuery Unveil](http://luis-almeida.github.io/unveil/) to load images lazily. The interface is the same as `CHtml::image()` so existing code can easily be adapted to use it. ## Usage Require the...
Java
/* Zepto v1.1.4 - zepto event ajax form ie - zeptojs.com/license */ var Zepto = (function() { var undefined, key, $, classList, emptyArray = [], slice = emptyArray.slice, filter = emptyArray.filter, document = window.document, elementDisplay = {}, classCache = {}, cssNumber = { 'column-count': 1, 'column...
Java
import asyncio import asyncio.subprocess import datetime import logging from collections import OrderedDict, defaultdict from typing import Any, Awaitable, Dict, List, Optional, Union # noqa from urllib.parse import urlparse from aiohttp import web import yacron.version from yacron.config import ( JobConfig, p...
Java
--- layout: single title: "将数组分成和相等的三个部分" date: 2018-10-10 21:30:00 +0800 categories: [Leetcode] tags: [Greedy, Array] permalink: /problems/partition-array-into-three-parts-with-equal-sum/ --- ## 1013. 将数组分成和相等的三个部分 (Easy) {% raw %} <p>给你一个整数数组 <code>arr</code>,只有可以将其划分为三个和相等的 <strong>非空</stron...
Java
const SELECTOR_BOOK_IMAGE = '#default > div > div > div > div > section > div:nth-child(2) > ol > li:nth-child(1) > article > div.image_container > a > img'; const puppeteer = require('puppeteer'); let scrapeSite1 = async (browser) => { const page = await browser.newPage(); await page.goto('http://books.toscrape.c...
Java
# Command Bus - [Introduction](#introduction) - [Creating Commamnds](#creating-commands) - [Dispatching Commamnds](#dispatching-commands) - [Queued Commands](#queued-commands) <a name="introduction"></a> ## Introduction The Laravel command bus provides a convenient method of encapsulating tasks your application need...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="robots" content="index, follow, all" /> <title>Soluble\FlexStore\Source\QueryableSourceInterface | Soluble API</title> <link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css"> <link rel="st...
Java
<?php class Symfony2EpamCi_Sniffs_Functions_DisallowedFunctionsSniff implements PHP_CodeSniffer_Sniff { private static $disallowedFunctionNames = array( 'var_dump', 'print_r', 'var_export', 'trigger_error', 'header', 'fastcgi_finish_request', 'xdebug_debug_zv...
Java
using System; using System.Globalization; using System.IO; using System.Windows.Data; namespace MailUI.Converters { [ValueConversion(typeof(DirectoryInfo), typeof(FileInfo[]))] public class FilesInDirectoryConverter : IValueConverter { public object Convert(object value, Type targetType, object pa...
Java
#region Lock Object against files #region Initial File Creation $File = 'C:\users\proxb\desktop\test.log' '1,2,3,4' | Out-File $File #endregion Initial File Creation #region Take lock and attempt to update file in runspace $LockTaken = $null [System.Threading.Monitor]::TryEnter($File, [ref]$LockTaken) If ($LockTaken)...
Java
<?php namespace GS\UsuarioBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Lecturaconproposito * * @ORM\Table(name="lecturaconproposito", indexes={@ORM\Index(name="bibliografia_lecturaConProposito_idx", columns={"bibliografia"})}) * @ORM\Entity */ class Lecturaconproposito { /** * @var string ...
Java
import pytest @pytest.fixture def genetic_modification(testapp, lab, award): item = { 'award': award['@id'], 'lab': lab['@id'], 'modified_site_by_coordinates': { 'assembly': 'GRCh38', 'chromosome': '11', 'start': 20000, 'end': 21000 }...
Java
--- layout: page title: Poole 20th Anniversary date: 2016-05-24 author: Austin Wilkerson tags: weekly links, java status: published summary: Mauris efficitur orci ac volutpat congue. banner: images/banner/meeting-01.jpg booking: startDate: 07/19/2017 endDate: 07/24/2017 ctyhocn: RIFUTHX groupCode: P2A published...
Java
--- layout: page title: River Shadow Logistics Seminar date: 2016-05-24 author: Julia Hogan tags: weekly links, java status: published summary: Phasellus ac lacus tincidunt, euismod nulla sed. banner: images/banner/leisure-03.jpg booking: startDate: 08/28/2016 endDate: 08/29/2016 ctyhocn: CLECCHX groupCode: RSL...
Java
--- layout: page title: Schmitt Llc. Dinner date: 2016-05-24 author: Gerald Golden tags: weekly links, java status: published summary: Sed hendrerit, dui a ullamcorper dignissim. banner: images/banner/office-01.jpg booking: startDate: 03/17/2016 endDate: 03/22/2016 ctyhocn: YQLLEHX groupCode: SLD published: tru...
Java
class SessionsController < ApplicationController def new end def create user = User.find_by(email: params[:session][:email]) if user && user.authenticate(params[:session][:password]) log_in(user) redirect_to user else render :new end end def destroy log_out redire...
Java
<!DOCTYPE html> <html lang="zh-CN" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="utf-8"/> </head> <body> <div id="wrapper"> <div id="page-wrapper"> <div class="row"> <div class="col-lg-12"> <h1 class="page-header">实习教师分配 - <small>批量分配</small> ...
Java
package com.longluo.demo.widget.swipelistview; import android.content.Context; import android.content.res.TypedArray; import android.database.DataSetObserver; import android.support.v4.view.MotionEventCompat; import android.support.v4.view.ViewConfigurationCompat; import android.util.AttributeSet; import android.view....
Java
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> <meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"> <meta name=viewport content="width=device-width, initial-scale=1"> <title>Hisabo &#8211; Borker dot co</title> <me...
Java
--- title: padding-line-between-statements - Rules layout: doc --- <!-- Note: No pull requests accepted for this file. See README.md in the root directory for details. --> # Require or disallow padding lines between statements (padding-line-between-statements) (fixable) The `--fix` option on the [command line](../use...
Java
[![Demi.js](https://raw2.github.com/enytc/demi/master/logo.png)](http://demijs.enytc.com) # Demi.js Logger [![Build Status](https://secure.travis-ci.org/chrisenytc/demi-logger.png?branch=master)](http://travis-ci.org/chrisenytc/demi-logger) [![NPM version](https://badge-me.herokuapp.com/api/npm/demi-logger.png)](http:...
Java
## Prerequisites [Node.js](http://nodejs.org/) >= 6 must be installed. ## Installation - Running `npm install` in the component's root directory will install everything you need for development. ## Demo Development Server - `npm start` will run a development server with the component's demo app at [http://localhos...
Java
<?php declare(strict_types=1); namespace DiContainerBenchmarks\Fixture\C; class FixtureC846 { public function __construct(FixtureC845 $dependency) { } }
Java
var five = require("../lib/johnny-five.js"); var board = new five.Board(); board.on("ready", function() { var gyro = new five.Gyroscope({ pins: ["I0", "I1"], freq: 200, extent: 4 }); gyro.on("acceleration", function(data) { console.log(data.position); }); });
Java
--- layout: null section-type: contact title: Contact --- ## Contact Nothing to say!
Java
// "horizontalaxis" : { // "id" : STRING, "type" : DATATYPE(number), "length" : RELLEN(1.0), "base" : POINT(-1,1), "anchor" : DOUBLE(-1), "position" : POINT(0,0), // "min" : DATAVALUEORAUTO(auto), "max" : DATAVALUEORAUTO(auto), "minposition" : RELPOS(-1.0), "maxposition" : RELPOS(1.0), "color" : COLOR(black), "...
Java
namespace Todo.ViewModel { public sealed class NewTodoItem { public string Text { get; set; } } }
Java
<?xml version="1.0" encoding="utf-8"?> <!-- This comment will force IE7 to go into quirks mode. --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type...
Java
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $lang = array( 'img_module_name' => 'Img', 'img_module_description' => 'PHPImageWorkshop for EE', 'module_home' => 'Img Home', // Start inserting custom language keys/values here ); /* End of file lang.img.php */ /* Location: /s...
Java
module WoopleTheme class Configuration attr_accessor :profile_helper, :menu_helper, :impersonation_banner_helper, :layout_javascript def profile_helper @profile_helper || :profile_helper end def menu_helper @menu_helper || :menu_helper end def impersonation_banner_helper @...
Java