code
stringlengths
4
1.01M
language
stringclasses
2 values
.letra-ciudad { color: #fff; font-weight: 100; cursor: pointer; font-family: 'Moonbeam' !important; font-size: 43px; padding-left: 15px; } .letra-placer { color: #fff; font-weight: 100; cursor: pointer; font-size: 44px; font-family: 'QaskinBlack'; } #cabecera_sup_buscar { text-align: center; }...
Java
#3.4 Chrome Dev Tools 1. Change in Colors ![Change in Colors](imgs/1-Colours.png "Colors") 2. Column ![Column](imgs/2-column.png "Column") 3. Row ![Row](imgs/3-row.png "Row") 4. Make Equidistant ![Equidistant](imgs/4-equidistant.png "Equidistant") 5. Squares ![Squares](imgs/5-squares.png "Square") 6. Footer ![Foo...
Java
# redmine project summary Now work in progress.
Java
Android ================================================================================ Requirements: Android SDK (version 12 or later) http://developer.android.com/sdk/index.html Android NDK r7 or later http://developer.android.com/tools/sdk/ndk/index.html Minimum API level supported by SDL: 10 (Android 2.3.3) Jo...
Java
#!/usr/bin/env python """ Manage and display experimental results. """ __license__ = 'MIT License <http://www.opensource.org/licenses/mit-license.php>' __author__ = 'Lucas Theis <lucas@theis.io>' __docformat__ = 'epytext' __version__ = '0.4.3' import sys import os import numpy import random import scipy import socke...
Java
<?php namespace Tox\SatelliteBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class SatelliteControllerTest extends WebTestCase { /* public function testCompleteScenario() { // Create a new client to browse the application $client = static::createClient(); ...
Java
#entity-manager-container { margin-bottom: 20px; text-align: center; } #tag { margin-left: auto; margin-right: auto; } #inbox { margin-top: 20px; } #entity-manager-heading { margin-bottom: 20px; } #graphs-container { margin-bottom: 20px; } #selectors-container { text-align: center; ...
Java
package ir.abforce.dinorunner.custom; import com.makersf.andengine.extension.collisions.entity.sprite.PixelPerfectSprite; import com.makersf.andengine.extension.collisions.opengl.texture.region.PixelPerfectTextureRegion; import ir.abforce.dinorunner.managers.RM; /** * Created by Ali Reza on 9/4/15. */ public class...
Java
SET DEFINE OFF; CREATE SEQUENCE AFW_25_VERSN_PUBLC_SEQ START WITH 1 MAXVALUE 9999999999999999999999999999 MINVALUE 1 NOCYCLE CACHE 20 NOORDER /
Java
// Castor : Logic Programming Library // Copyright © 2007-2010 Roshan Naik (roshan@mpprogramming.com). // This software is governed by the MIT license (http://www.opensource.org/licenses/mit-license.php). #ifndef CASTOR_PREDICATE_H #define CASTOR_PREDICATE_H 1 #include "relation.h" #include "helpers.h" #incl...
Java
'use strict'; exports.connect = function () { var mongoose = require('mongoose'), config = require('../config'), options = { user : config.mongo.user, pass : config.mongo.pass }; mongoose.connect(config.db, options); return mongoose.connection; };
Java
# encoding: utf-8 # frozen_string_literal: true require 'spec_helper' describe RuboCop::Cop::Style::ElseAlignment do subject(:cop) { described_class.new(config) } let(:config) do RuboCop::Config.new('Lint/EndAlignment' => end_alignment_config) end let(:end_alignment_config) do { 'Enabled' => true, 'Al...
Java
// // CollectionViewCell.h // Timetable // // Created by FuShouqiang on 16/10/18. // Copyright © 2016年 fu. All rights reserved. // #import <UIKit/UIKit.h> //课程表主CollectionView @interface CollectionViewCell : UICollectionViewCell @property (nonatomic, copy) NSString *cellName; @property (nonatomic, copy) NSString...
Java
class TripsController < ApplicationController before_action :set_trip, only: [:show, :update, :destroy, :edit] def index if current_user @created_trips = current_user.created_trips @joined_trips = current_user.trips else @trips = Trip.order(:start_at).limit(25) end end def new ...
Java
module RedditKit class Client # Methods for searching reddit's links. module Search # Search for links. # # @param query [String] The search query. # @option options [String, RedditKit::Subreddit] subreddit The optional subreddit to search. # @option options [true, false] restr...
Java
//APP var app = angular.module('PortfolioApp', ['ngRoute', 'slick']); //ROUTING app.config(function ($routeProvider) { "ngInject"; $routeProvider .when('/', { controller: "HomeController", templateUrl: "js/angular/views/home-view.html" }) .when('/work/:projectId', { controller: 'ProjectController', templa...
Java
// Copyright (c) 2018 Louis Wu // 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, distr...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="Creative One Page Parallax Template"> <meta name="keywords" content="Creative, Onepage, Parallax, HTML5, Bootstrap, Popular, custom, personal, po...
Java
# CoreDataHelpers
Java
let original: (fn: FrameRequestCallback) => number; let requesters: any[] = []; function fakeRaf(fn: FrameRequestCallback): number { requesters.push(fn); return requesters.length; } function use() { original = window.requestAnimationFrame; window.requestAnimationFrame = fakeRaf; } function restore() { set...
Java
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MotoBotCore.Interfaces { public interface IChannel { string Name { get; set; } string Motd { get; set; } } }
Java
//----------------------------------------------------------------------------- // Декодер Mpeg Layer 1,2,3 // Копонент звукового двигателя Шквал // команда : AntiTank // разработчик : Гилязетдинов Марат (Марыч) //----------------------------------------------------------------------------- // включения #include <str...
Java
import { moduleForModel, test } from 'ember-qunit'; import Pretender from 'pretender'; // ToDo: Install ember-cli-faker import mocks from './mocks'; const { inventoryMock, productMock, componentsMock } = mocks; let mockServer; moduleForModel('inventory', 'Unit | Serializer | inventory', { needs: ['serial...
Java
# Acknowledgements This application makes use of the following third party libraries: ## FMDB If you are using FMDB in your project, I'd love to hear about it. Let Gus know by sending an email to gus@flyingmeat.com. And if you happen to come across either Gus Mueller or Rob Ryan in a bar, you might consider purchas...
Java
package com.asksunny.batch.tasklets; public class Demo1 { long id; String name; public Demo1() { } public long getId() { return id; } public void setId(long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = n...
Java
package net.glowstone.net.codec.play.game; import com.flowpowered.network.Codec; import io.netty.buffer.ByteBuf; import java.io.IOException; import net.glowstone.net.GlowBufUtils; import net.glowstone.net.message.play.game.UpdateBlockEntityMessage; import net.glowstone.util.nbt.CompoundTag; import org.bukkit.util.Bloc...
Java
//--------------------------------------------------------------------- // <copyright file="DuplicateStream.cs" company="Microsoft Corporation"> // Copyright (c) 1999, Microsoft Corporation. All rights reserved. // </copyright> // <summary> // Part of the Deployment Tools Foundation project. // </summary> //-...
Java
+(function () { 'use strict'; angular .module('DashboardApplication') .controller('FileManagerRemoveFolderController', ['$scope', '$q', 'Event', 'FoldersRest', FileManagerRemoveFolderController]); function FileManagerRemoveFolderController($scope, $q, Event, FoldersRest) { var vm ...
Java
package co.colector.model.request; import java.util.ArrayList; import java.util.List; import co.colector.ColectorApplication; import co.colector.R; import co.colector.model.IdInputValue; import co.colector.model.IdValue; import co.colector.model.Survey; import co.colector.model.AnswerValue; import co.colector.session...
Java
package controllers import ( "github.com/revel/revel" "AuthKeyPush/app/models" ) type Auth struct { *revel.Controller } func (c Auth) Github(code string) revel.Result { login := models.GitHub(code) if login == true { c.Session["login"] = "true" } else { c.Session["login"] = "false" c.Session["msg"] = "L...
Java
--- layout: about title: Sobre o Vagrant current: Sobre --- <div class="alert alert-block alert-info"> <strong>Observação:</strong> Essa página fala sobre o projeto Vagrant em si. Se em vez isso você estiver procurando pela documentação sobre o que o Vagrant é e como começar a utilizá-lo, vá para o <a href="/...
Java
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "init.h" #include "util.h" #include "sync.h" #include "ui_interface.h" #includ...
Java
// // VisibleBuildConfig.h // VisibleBuildConfig // // Created by David Li on 11/09/2017. // // #import <Foundation/Foundation.h> #define kVisibleBuildConfigChanged @"kVisibleBuildConfigChanged" @interface VisibleBuildConfig : NSObject //ConfigName is reqired and unique @property(nonatomic, strong) NSString *...
Java
/** * @module {Module} utils/math * @parent utils * * The module's description is the first paragraph. * * The body of the module's documentation. */ import _ from 'lodash'; /** * @function * * This function's description is the first * paragraph. * * This starts the body. This text comes after the sign...
Java
# dotfiles My config files for linux Looking for a sane default vimrc? ``` wget https://raw.githubusercontent.com/ekohilas/dotfiles/master/.vimrc.default -O ~/.vimrc ``` Want the DarkIdle Colorscheme? ``` wget https://raw.githubusercontent.com/ekohilas/dotfiles/master/.vim/colors/DarkIdle.vim -O ~/.vim/colors/DarkIdl...
Java
<?php /* WebProfilerBundle:Collector:router.html.twig */ class __TwigTemplate_c8d21550850074782862265b813a9c2aea7c608253db98e24225c2ea859cc33f extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); // line 1 $this->parent = $this->loadTe...
Java
--- --- <!doctype html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Photo - A History of UCSF</title> <link href='http://fonts.googleapis.com/css?family=G...
Java
<div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Relationships</h3> </div> <div class="panel-body"> <div ng-repeat="relationship in contactGroupMember.Relationships"> <div class="form-group"> <label for="inputRelationship" cla...
Java
// *********************************************************** // This example plugins/index.js can be used to load plugins // // You can change the location of this file or turn off loading // the plugins file with the 'pluginsFile' configuration option. // // You can read more here: // https://on.cypress.io/plugins-g...
Java
#!/bin/bash # ./run pixel_inicio pixel_final pixel_paso frecuencia_inicio frecuencia_final # frecuencia_paso resolucion_espacial Rt modelo path COUNTERX=$1 while [ $COUNTERX -le $2 ]; do if [ ! -d "/home/vdelaluz/ARTs/papers/cavity2D/data/SEL05/${COUNTERX}" ]; then # Control will enter here if $DIRECTORY doesn't...
Java
<p> Yo </p> <div *ngFor ="let task of taskList;let i=index;" style="padding:10px;width:100%;"> <input type="checkbox" name="task" value= "xyz" [checked]="task.status!=='N'">{{task.name}} <br> <button (click)="clearTask(task)" style="display:inline-block;">Delete</button> </div> <div> <input type= ...
Java
<?php if ($_SESSION['manager']==""){ header("Location: admin_login.php"); exit; }; header("Location: admin_index.php"); ?>
Java
using UnityEngine; using UnityEditor; using CreateThis.Factory.VR.UI.Button; namespace MMVR.Factory.UI.Button { [CustomEditor(typeof(FileManagerSaveButtonFactory))] [CanEditMultipleObjects] public class FileManagerSaveButtonFactoryEditor : MomentaryButtonFactoryEditor { SerializedProperty fileMana...
Java
var box, mbox; function demo() { cam ( 0, 20, 40 ); world = new OIMO.World(); world.add({ size:[50, 10, 50], pos:[0,-5,0] }); // ground var options = { type:'box', size:[10, 10, 10], pos:[0,20,0], density:1, move:true } box = world.add( options ); ...
Java
class CreateCourses < ActiveRecord::Migration def change create_table :courses do |t| t.string :name t.string :short_name t.string :sisid t.text :description t.integer :department_id t.integer :term_id t.boolean :graded t.boolean :archived t.string :type ...
Java
// // AppDelegate.h // topController // // Created by 张衡 on 2016/11/18. // Copyright © 2016年 张衡. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
Java
import traceback class EnsureExceptionHandledGuard: """Helper for ensuring that Future's exceptions were handled. This solves a nasty problem with Futures and Tasks that have an exception set: if nobody asks for the exception, the exception is never logged. This violates the Zen of Python: 'Errors s...
Java
module GitNetworkitis class Getter include HTTParty include JSONHelper base_uri 'https://api.github.com' attr_accessor :url, :local_options, :query_options LOCAL_KEYS = [:batch, :since] def initialize(url, options={}) @url = url scrub_local_options options @query_options =...
Java
<!DOCTYPE html><html><head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <meta name="description"> <meta name="keywords" content="static content generator,static site generator,static site,HTML,web development,.NET,C#,Razor,Markdown,YAML"> <meta n...
Java
var fs = require('fs'), cons = require('consolidate'), dust = require('dustjs-linkedin'); var pages = [ 'index', 'contact', 'faq', 'registration', 'sponsors', 'travel', 'visit', 'volunteers' ]; pages.forEach(function(page) { cons.dust('views/'+page+'.dust', { views: __dirname+'/views'}, function(err, htm...
Java
/* * Copyright (c) 2013-2014 Kajetan Swierk <k0zmo@outlook.com> * * 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, ...
Java
__package__ = 'archivebox.core'
Java
package com.team2502.robot2017.command.autonomous; import edu.wpi.first.wpilibj.command.CommandGroup; public class ShinyFollow extends CommandGroup { /** * Does a follow */ public ShinyFollow() { addSequential(new AutoVisionCommand(200, 0.3)); } }
Java
package br.com.caelum.rest.server; import javax.servlet.http.HttpServletRequest; public class SimpleAction implements Action { public String getUri() { return uri; } public String getRel() { return rel; } private final String uri; private final String rel; public SimpleAction(String rel, String uri) { ...
Java
body { font-family: 'Rancho', cursive; font-weight: bold; margin: auto; padding: 5%; background-color: #F49D37; } .score, .game { color: #0A1128; font-size: 28px; } #board { width: 450px; height: 450px; } #board .square { width: 33.333333333%; height: 33.333333333%; background-color: #496DD...
Java
<!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>Couch411 | Login</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/boot...
Java
package com.ms.meizinewsapplication.features.meizi.model; import android.content.Context; import com.ms.meizinewsapplication.features.base.pojo.ImgItem; import com.ms.retrofitlibrary.web.MyOkHttpClient; import org.loader.model.OnModelListener; import java.util.List; import rx.Observable; import rx.Subscription; /...
Java
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: AssemblyTitle("12...
Java
import logging.handlers import os _pabotlog = logging.getLogger('PABot') _pabotlog.setLevel(logging.DEBUG) _logPath = os.path.abspath("./logging/pabot.log") _formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(name)s - %(message)s') _consoleStreamHandler = logging.StreamHandler() _consoleStreamHandler.s...
Java
{# ------------------------------------------------------- #} {# INDIVIDUAL VIEW FOR EACH storycontributor #} {# This page can use any data from http:localhost:2000/cms/#/form/storycontributor/ #} {# Webhook uses the SWIG.js (like Djagno/Twig) templating system. Their documentation is here: #} {# http://paularmstrong.g...
Java
// // BBBClockViewController.h // BBBLayer // // Created by LinBin on 16/7/23. // Copyright © 2016年 LinBin. All rights reserved. // #import <UIKit/UIKit.h> @interface BBBClockViewController : UIViewController @end
Java
<?php namespace Phpmvc\Comment; /** * To attach comments-flow to a page or some content. * */ class CommentController implements \Anax\DI\IInjectionAware { use \Anax\DI\TInjectable; /** * View all comments. * * @return void */ public function viewAction($page) { $comm...
Java
#!/bin/bash # Exit immediately if any commands return non-zero set -e # Output the commands we run set -x # This is a modified version of the Cloud Foundry Blue/Green deployment guide: # https://docs.pivotal.io/pivotalcf/devguide/deploy-apps/blue-green.html test $URL # Update the blue app cf unmap-route citizenship...
Java
import ast import heisenberg.library.heisenberg_dynamics_context import heisenberg.library.orbit_plot import heisenberg.option_parser import heisenberg.plot import heisenberg.util import matplotlib import numpy as np import sys # https://github.com/matplotlib/matplotlib/issues/5907 says this should fix "Exceeded cell ...
Java
def send_simple_message(): return requests.post( "https://api.mailgun.net/v3/sandbox049ff464a4d54974bb0143935f9577ef.mailgun.org/messages", auth=("api", "key-679dc79b890e700f11f001a6bf86f4a1"), data={"from": "Mailgun Sandbox <postmaster@sandbox049ff464a4d54974bb0143935f9577ef.mailgun.org>", ...
Java
<?php namespace Ooxif\LaravelSpecSchema\SqlServer; trait BlueprintTrait { }
Java
def load_keys(filepath): """ Loads the Twitter API keys into a dict. :param filepath: file path to config file with Twitter API keys. :return: keys_dict :raise: IOError """ try: keys_file = open(filepath, 'rb') keys = {} for line in keys_file: key, value =...
Java
// Copyright (c) 2009 Satoshi Nakamoto // Distributed under the MIT/X11 software license, see the accompanying // file license.txt or http://www.opensource.org/licenses/mit-license.php. // // Why base-58 instead of standard base-64 encoding? // - Don't want 0OIl characters that look the same in some fonts and // ...
Java
"""Main entry points for scripts.""" from __future__ import print_function, division from argparse import ArgumentParser from collections import OrderedDict from copy import copy from datetime import datetime import glob import json import logging import math import os import scipy.stats import numpy as np from .ve...
Java
--- title: "Aggregates" description: "Reference documentation for Sensu Named Aggregates." product: "Sensu Core" version: "1.8" weight: 4 menu: sensu-core-1.8: parent: reference --- ## Reference documentation - [What is a Sensu named aggregate?](#what-is-a-check-aggregate) - [When should named aggregates be us...
Java
module IncomeTax module Countries class Morocco < Models::Progressive register 'Morocco', 'MA', 'MAR' currency 'MAD' level 30_000, '0%' level 50_000, '10%' level 60_000, '20%' level 80_000, '30%' level 180_000, '34%' remainder '38%' end end end
Java
<!DOCTYPE html> <html> <head lang="ru"> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>Template</title> <link href="http://themesanytime.com/startui/demo/img/favicon.144x144.png" rel="apple-...
Java
using System; namespace sep20v1.Areas.HelpPage { /// <summary> /// This represents a preformatted text sample on the help page. There's a display template named TextSample associated with this class. /// </summary> public class TextSample { public TextSample(string text) { ...
Java
# bot-away [![Build Status](https://secure.travis-ci.org/sinisterchipmunk/bot-away.png)](http://travis-ci.org/sinisterchipmunk/bot-away) * http://github.com/sinisterchipmunk/bot-away Unobtrusively detects form submissions made by spambots, and silently drops those submissions. The key word here is "unobtrusive" -- th...
Java
<?php namespace YB\Bundle\RemoteTranslationsBundle\Tests\Translation\Loader; use PHPUnit_Framework_TestCase; /** * Class AwsS3LoaderTest * @package YB\Bundle\RemoteTranslationsBundle\Tests\Translation\Loader */ class AwsS3LoaderTest extends PHPUnit_Framework_TestCase { /** * @param mixed $expected *...
Java
package com.syncano.android.lib.modules.users; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import com.syncano.android.lib.modules.Params; import com.syncano.android.lib.modules.Response; /** * Params to create new user. */ public class ParamsUserNew extends Params {...
Java
XHCyclicReuseScrollView ======================= XHCyclicReuseScrollView is an extensible, reusable, recyclable rolling scrollView element.
Java
<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>[POJ] 1276. Cash Machine &mdash; amoshyc&#39...
Java
class BeachApiCore::TeamUpdate include Interactor def call if context.team.update context.params context.status = :ok else context.status = :bad_request context.fail! message: context.team.errors.full_messages end end end
Java
#include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <sys/wait.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <signal.h> #include <errno.h> #include <sys/stat.h> #include <sys/mman.h> #include <fcntl.h> #include "server.h" #include "rio.h" int wri...
Java
# -*- coding: utf-8 -*- def calc_note(count, value): qnt = 0 if count >= value: qnt = int(count) / value print '%d nota(s) de R$ %d.00' % (qnt, value) return count - qnt * value n = float(raw_input()) print 'NOTAS:' n = calc_note(n, 100) n = calc_note(n, 50) n = calc_note(n, 20) n = calc_no...
Java
## PostCSS 插件列表 [![npm version](https://img.shields.io/npm/v/postcss-plugins.svg)](https://www.npmjs.com/package/postcss-plugins) [![contributors](https://img.shields.io/github/contributors/himynameisdave/postcss-plugins.svg)](https://github.com/himynameisdave/postcss-plugins/blob/master/docs/authors.md) 开箱即用型"官方和非官方...
Java
<!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_18) on Thu Dec 18 17:18:35 PST 2014 --> <title>Uses of Interface java.net.SocketImplFactory (Java Platform SE 7 )</title> <meta name="d...
Java
'use strict'; module.exports = function (grunt) { var exec = require('child_process').exec; grunt.registerMultiTask('install-dependencies', 'Installs npm dependencies.', function () { var cb, options, cp; cb = this.async(); options = this.options({ cwd: '', stdout: true, stderr: tru...
Java
// Copyright slx7R4GDZM // Distributed under the terms of the MIT License. // Refer to the License.txt file for details. #pragma once #include "Common-Things.h" const string BRIGHTNESS_OPTIONS[] = { "BRIGHTNESS 15", "BRIGHTNESS 12", "BRIGHTNESS 7", "BRIGHTNESS 0" }; const string GLOBAL_SCALE_OPTIONS...
Java
<?php ini_set('display_errors', 1); ini_set('error_reporting', -1); $loader = require __DIR__ . '/../vendor/autoload.php'; $loader->add('ThisPageCannotBeFound', __DIR__);
Java
<?php /* Safe sample input : get the field userData from the variable $_GET via an object, which store it in a array SANITIZE : use of preg_replace construction : use of sprintf via a %s with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee,...
Java
ActionController::Dispatcher.to_prepare do # Extend :account model to add :issues association. Account.send(:include, AccountServiceRequestAssociations) # Make issues observable. ActivityObserver.instance.send :add_observer!, ServiceRequest # Add :issues plugin helpers. ActionView::Base.send(:include, ...
Java
<style type="text/css"> .escondido { display: none; } </style> <div id="div1" class="xxx">div1</div> <div id="div2" class="escondido">2</div>
Java
--- layout: post title: How the Go team could track what to include in release notes date: 2021-03-13 author: Paschalis Ts tags: [golang, foss] mathjax: false description: "" --- Release notes can sometimes be exciting to read. Condensing the work since the last release into a couple of paragraphs, announcing n...
Java
import { Component } from '@angular/core'; @Component({ moduleId: module.id, selector: 'chips-demo', templateUrl: 'chips-demo.html', styleUrls: ['chips-demo.css'] }) export class ChipsDemoComponent { }
Java
<section data-ng-controller="ConsumersController"> <div class="page-header"> <h1>New Order</h1> </div> <div class="row" ng-show="errors.has()"> <div class="alert alert-danger" ng-repeat="err in errors.all"> {{ err }} </div> </div> <div class="col-md-12" data-ng-...
Java
using System; using System.Collections.Generic; using System.Text; public interface IIdentifiable { string Id { get; } }
Java
/******************************************************************************* * The MIT License (MIT) * * Copyright (c) 2015 - 2019 Dr. Marc Mültin (V2G Clarity) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Sof...
Java
/** * TatoSSO Single Sign On (SSO) system * * Copyright (C) 2014 Allan SIMON <allan.simon@supinfo.com> * See accompanying file COPYING.TXT file for licensing details. * * @category TatoSSO * @author Allan SIMON <allan.simon@supinfo.com> * @package Contents * */ #ifndef TATO_SSO_CONTENTS_TOKENS_H #define...
Java
<?php declare(strict_types=1); namespace Phpcq\Runner\Test\Console\Definition; use Phpcq\Runner\Console\Definition\OptionDefinition; use Phpcq\Runner\Console\Definition\OptionValue\OptionValueDefinition; use PHPUnit\Framework\TestCase; /** @covers \Phpcq\Runner\Console\Definition\OptionDefinition */ final class Opt...
Java
<?php if (isset($user_data['id'])) { ?> <script> var $records_per_page = '<?php echo $this->security->get_csrf_hash(); ?>'; var page_url = '<?php echo base_url(); ?>'; var $user_data ="<?php echo $user_data['id']?>"; </script> <script s...
Java
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2013 The NovaCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "txdb.h" #include "miner.h"...
Java
using System.Threading.Tasks; using Lykke.Service.ExchangeConnector.Client.Models; using MarginTrading.Backend.Core; using MarginTrading.Contract.RabbitMqMessageModels; namespace MarginTrading.Backend.Services.Notifications { public interface IRabbitMqNotifyService { Task AccountHistory(string transactionId, stri...
Java
require 'ims/lti' class GuideController < ApplicationController def home end def xml_builder @placements = CanvasExtensions::PLACEMENTS end def xml_config tc = IMS::LTI::Services::ToolConfig.new(:title => "Example Tool Provider", :launch_url => blti_launch_url) tc.description = "This is a Sample...
Java