code stringlengths 4 1.01M | language stringclasses 2
values |
|---|---|
<?php
class Admin_GeneralModel extends CI_Model {
public function GetAdminModuleCategoryList()
{
$this->db->select('CID, CategoryName');
$this->db->from('admin_module_category');
$this->db->order_by('Ordering');
$query = $this->db->get();
if($query->num_rows())
return $query;
else
return FALSE;
}
... | Java |
#ifndef SYMTAB_H
#define SYMTAB_H
#include "symbol.h"
void symtab_init();
void push_scope();
void pop_scope();
symbol *bind_symbol(char *name);
symbol *lookup_symbol(char *name);
void print_symtab();
#endif
| Java |
RSpec.describe("executables", skip_db_cleaner: true) do
include SharedSpecSetup
before do
#migrations don't work if we are still connected to the db
ActiveRecord::Base.remove_connection
end
it "extracts the schema" do
output = `bin/extract #{config_filename} production #{schema_filename} 2>&1`
... | Java |
## S3proxy - serve S3 files simply
S3proxy is a simple flask-based REST web application which can expose files (keys) stored in the AWS Simple Storage Service (S3) via a simple REST api.
### What does this do?
S3proxy takes a set of AWS credentials and an S3 bucket name and provides GET and HEAD endpoints on the fil... | Java |
Title: Survey data
Template: survey
Slug: survey/data
Github: True
The code to clean and process the survey data is available in the [GitHub repository](https://github.com/andrewheiss/From-the-Trenches-Anti-TIP-NGOs-and-US) for Andrew Heiss and Judith G. Kelley. 2016. "From the Trenches: A Global Survey of Anti-TIP N... | Java |
// @flow
import { StyleSheet } from 'react-native';
import { colors } from '../../themes';
const styles = StyleSheet.create({
divider: {
height: 1,
marginHorizontal: 0,
backgroundColor: colors.darkDivider,
},
});
export default styles;
| Java |
## Testing testing, 1, 2, 3
Let's see how *[this](https://github.com/imathis/jekyll-markdown-block)* does.
puts 'awesome' unless not_awesome?
- One item
- Two item
- Three Item
- Four!
And… scene!
| Java |
<!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.6.0_27) on Wed Nov 21 16:03:26 EST 2012 -->
<TITLE>
ResourceXmlPropertyEmitterInterface
</TITLE>
<META NAME="date" CONTENT="2012-11-21">
<LINK REL ="st... | Java |
require 'ffi'
module ProcessShared
module Posix
module Errno
extend FFI::Library
ffi_lib FFI::Library::LIBC
attach_variable :errno, :int
# Replace methods in +syms+ with error checking wrappers that
# invoke the original method and raise a {SystemCallError} with
# the curre... | Java |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!-- UASR: Unified Approach to Speech Synthesis and Recognition
< - Documentation home page
<
< AUTHOR : Matthias Wolff
< PACKAGE: n/a
<
< Copyright 2013 UASR contributors (see COPYRIGHT f... | Java |
'use strict';
const _ = require('lodash');
const co = require('co');
const Promise = require('bluebird');
const AWS = require('aws-sdk');
AWS.config.region = 'us-east-1';
const cloudwatch = Promise.promisifyAll(new AWS.CloudWatch());
const Lambda = new AWS.Lambda();
const START_TI... | Java |
from __future__ import absolute_import, division, print_function, unicode_literals
import string
import urllib
try:
from urllib.parse import urlparse, urlencode, urljoin, parse_qsl, urlunparse
from urllib.request import urlopen, Request
from urllib.error import HTTPError
except ImportError:
from urlpars... | Java |
#!/bin/bash
# data in Empar_paper/data/simul_balanc4GenNonhSSM
#length1000_b100.tar length1000_b150.tar length1000_b200.tar
#length1000_b100_num98.fa
MOD=ssm
ITER=2 # number of data sets
bl=100
#prep output files
OUT_lik='likel_balanced4_gennonh_'$bl'_'$MOD'_E.txt'
OUT_iter='iter_balanced4_gennonh_'$bl'_'$MOD'_E.tx... | Java |
/*
The MIT License (MIT)
Copyright (c) 2014 Banbury & Play-Em
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 |
package com.thilko.springdoc;
@SuppressWarnings("all")
public class CredentialsCode {
Integer age;
double anotherValue;
public Integer getAge() {
return age;
}
public void setAge(Integer age) {
this.age = age;
}
public double getAnotherValue() {
return anotherValu... | Java |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\Pjax;
/* @var $this yii\web\View */
/* @var $searchModel yii2learning\chartbuilder\models\DatasourceSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('app', 'Datasources');
$this->params['breadcrumbs'][] = $this->tit... | Java |
module Web::Controllers::Books
class Create
include Web::Action
expose :book
params do
param :book do
param :title, presence: true
param :author, presence: true
end
end
def call(params)
if params.valid?
@book = BookRepository.create(Book.new(params[:bo... | Java |
;idta.asm sets up all the intterupt entry points
extern default_handler
extern idt_ftoi
;error interrupt entry point, we need to only push the error code details to stack
%macro error_interrupt 1
global interrupt_handler_%1
interrupt_handler_%1:
push dword %1
jmp common_handler
%endmacro
;regular interrupt entry ... | Java |
// @flow
(require('../../lib/git'): any).rebaseRepoMaster = jest.fn();
import {
_clearCustomCacheDir as clearCustomCacheDir,
_setCustomCacheDir as setCustomCacheDir,
} from '../../lib/cacheRepoUtils';
import {copyDir, mkdirp} from '../../lib/fileUtils';
import {parseDirString as parseFlowDirString} from '../../... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../openssl_sys/fn.BN_exp.html">
</head>
<body>
<p>Redirecting to <a href="../../openssl_sys/fn.BN_exp.html">../../openssl_sys/fn.BN_exp.html</a>...</p>
<script>location.replace("../../openssl_sys/fn.BN_exp.html" + location.... | Java |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { assign } from 'lodash'
import autoBind from '../utils/autoBind'
const styles = {
'ClosedPanelWrapper': {
height: '40px'
},
'PanelWrapper': {
position: 'relative'
},
'Over': {
border: '1px dashed white',
ove... | Java |
'use strict';
// src\services\message\hooks\timestamp.js
//
// Use this hook to manipulate incoming or outgoing data.
// For more information on hooks see: http://docs.feathersjs.com/hooks/readme.html
const defaults = {};
module.exports = function(options) {
options = Object.assign({}, defaults, options);
return ... | Java |
/*
---------------------------------------------------------------------------
Open Asset Import Library (assimp)
---------------------------------------------------------------------------
Copyright (c) 2006-2021, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,... | Java |
# LeadifyTest | Java |
package fr.lteconsulting.pomexplorer.commands;
import fr.lteconsulting.pomexplorer.AppFactory;
import fr.lteconsulting.pomexplorer.Client;
import fr.lteconsulting.pomexplorer.Log;
public class HelpCommand
{
@Help( "gives this message" )
public void main( Client client, Log log )
{
log.html( AppFactory.get().comm... | Java |
//
// DORDoneHUD.h
// DORDoneHUD
//
// Created by Pawel Bednorz on 23/09/15.
// Copyright © 2015 Droids on Roids. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface DORDoneHUD : NSObject
+ (void)show:(UIView *)view message:(NSString *)messageText completion:(void (^)(void))completionBlock;
+ (void)show:(U... | Java |
namespace CAAssistant.Models
{
public class ClientFileViewModel
{
public ClientFileViewModel()
{
}
public ClientFileViewModel(ClientFile clientFile)
{
Id = clientFile.Id;
FileNumber = clientFile.FileNumber;
ClientName = clientFile.Cl... | Java |
<?php
/****************************************************************************
* todoyu is published under the BSD License:
* http://www.opensource.org/licenses/bsd-license.php
*
* Copyright (c) 2013, snowflake productions GmbH, Switzerland
* All rights reserved.
*
* This script is part of the todoyu project.
* Th... | Java |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//-----------------------------------------... | Java |
---
title: Stylesheets and JavaScript - Fabricator
layout: 2-column
section: Documentation
---
{{#markdown}}
# Stylesheets and JavaScript
> How to work with CSS and JS within Fabricator
Fabricator comes with little opinion about how you should architect your Stylesheets and JavaScript. Each use case is different, s... | Java |
<?php
namespace IdeHelper\Test\TestCase\Utility;
use Cake\Core\Configure;
use Cake\TestSuite\TestCase;
use IdeHelper\Utility\Plugin;
class PluginTest extends TestCase {
/**
* @return void
*/
protected function setUp(): void {
parent::setUp();
Configure::delete('IdeHelper.plugins');
}
/**
* @return v... | Java |
# Hubot: hubot-loggly-slack
A hubot script to post alerts from Loggly into a Slack room as an attachment.
An attachment has additional formatting options.
See [`src/loggly-slack.coffee`](src/loggly-slack.coffee) for documentation.
# Installation
npm install hubot-loggly-slack
# Add "hubot-loggly-slack" to ... | Java |
<?php
/**
* The Initial Developer of the Original Code is
* Tarmo Alexander Sundström <ta@sundstrom.im>.
*
* Portions created by the Initial Developer are
* Copyright (C) 2014 Tarmo Alexander Sundström <ta@sundstrom.im>
*
* All Rights Reserved.
*
* Contributor(s):
*
* Permission is hereby granted, free of c... | Java |
const electron = window.require('electron');
const events = window.require('events');
const {
ipcRenderer
} = electron;
const {
EventEmitter
} = events;
class Emitter extends EventEmitter {}
window.Events = new Emitter();
module.exports = () => {
let settings = window.localStorage.getItem('settings');
if (s... | Java |
---
title: 'Production applications updated 9.1.2018 10:05 - 10:54'
lang: en
ref: 2018-01-09-release
image:
published: true
categories: en News
traffictypes:
- Road
tags:
- APIs
- Admin
---
Digitraffic production applications have been updated.
Changelog:
TIE
- DPO-336 - LAM binääritietovirta jakautuu kahdeks... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using BohFoundation.ApplicantsRepository.Repositories.Implementations;
using BohFoundation.AzureStorage.TableStorage.Implementations.Essay.Entities;
using BohFoundation.AzureStorage.TableStorage.Interfaces.Essay;
using BohFoundation.AzureStorage.TableS... | Java |
class AddAuthorAndSubjectToClaimStateTransitions < ActiveRecord::Migration[4.2]
def change
add_column :claim_state_transitions, :author_id, :integer
add_column :claim_state_transitions, :subject_id, :integer
end
end
| Java |
# Using a compact OS
FROM registry.dataos.io/library/nginx
MAINTAINER Golfen Guo <golfen.guo@daocloud.io>
# Install Nginx
# Add 2048 stuff into Nginx server
COPY . /usr/share/nginx/html
EXPOSE 80
| Java |
require 'test_helper'
require 'cache_value/util'
class UtilTest < Test::Unit::TestCase
include CacheValue::Util
context 'hex_digest' do
should 'return the same digest for identical hashes' do
hex_digest({ :ha => 'ha'}).should == hex_digest({ :ha => 'ha'})
end
end
end
| Java |
# This migration comes from thinkspace_resource (originally 20150502000000)
class AddFingerprintToFile < ActiveRecord::Migration
def change
add_column :thinkspace_resource_files, :file_fingerprint, :string
end
end
| Java |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.network.v2020_04_01;
import java.util.Map;
impor... | Java |
/*
* This file is part of Sponge, 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 "Softwar... | Java |
from otp.ai.AIBaseGlobal import *
import DistributedCCharBaseAI
from direct.directnotify import DirectNotifyGlobal
from direct.fsm import ClassicFSM, State
from direct.fsm import State
from direct.task import Task
import random
from toontown.toonbase import ToontownGlobals
from toontown.toonbase import TTLocalizer
impo... | Java |
<?php
namespace Rmc\Core\StaticPageBundle\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 |
<!--?xml version="1.0"?--><html><head></head><body></body></html> | Java |
import React from 'react';
import {
Link
} from 'react-router';
import HotdotActions from '../actions/HotdotActions';
import HotdotObjStore from '../stores/HotdotObjStore';
import MyInfoNavbar from './MyInfoNavbar';
import Weixin from './Weixin';
class Hotdot extends React.Component {
constructor(props) {
... | Java |
// Copyright (c) 2013-2014 PropCoin Developers
#ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning and copyright year
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 1
#define CLIENT_VERSION_MINOR 5
#define CLIENT_VER... | Java |
varnish
=======
Varnish to run EOL site
sudo docker run -v /eol/varnish/default.vcl:/etc/varnish/default.vcl \
-p 80:80 eoldocker/varnish:v3.0.5
| Java |
<?php
namespace PayU\Api\Response\Builder;
use PayU\Api\Request\RequestInterface;
use PayU\Api\Response\AbstractResponse;
use Psr\Http\Message\ResponseInterface;
/**
* Interface BuilderInterface
*
* Provides a common interface to build response objects based on request context
*
* @package PayU\Api\Response\Bui... | Java |
using SolrExpress.Search.Parameter;
using System;
using System.Globalization;
using System.Linq;
using System.Text;
namespace SolrExpress.Utility
{
/// <summary>
/// Helper class used to extract information inside parameters
/// </summary>
internal static class ParameterUtil
{
/// <summary... | Java |
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import 'babel-polyfill';
import ReactDOM from 'react-dom';... | Java |
var $M = require("@effectful/debugger"),
$x = $M.context,
$ret = $M.ret,
$unhandled = $M.unhandled,
$brk = $M.brk,
$lset = $M.lset,
$mcall = $M.mcall,
$m = $M.module("file.js", null, typeof module === "undefined" ? null : module, null, "$", {
__webpack_require__: typeof __webpack_require__... | Java |
# INTRODUCTION
Triplie is an AI bot based on 2nd up to 5th order Markov model. It uses an
SQLite database for storage.
Triplie learns by creating
1. a dictionary of words
2. a graph representing valid 5-grams (consecutive groups of 5 words)
encountered in the text
3. a graph of associations between words from se... | Java |
<!DOCTYPE html>
<html>
<head>
<!-- meta information -->
<meta charset="utf-8">
<meta name="description"
content="http://feedproxy.google.com/~r/geledes/~3/EdmSLCOQs3o/" >
<meta name="author" content="Kinho">
<!-- Enable responsiveness on mobile devices-->
<meta name="viewport" content="width=device-width,... | Java |
module Shiphawk
module Api
# Company API
#
# @see https://shiphawk.com/api-docs
#
# The following API actions provide the CRUD interface to managing a shipment's tracking.
#
module ShipmentsStatus
def shipments_status_update options
put_request status_path, options
en... | Java |
import "bootstrap-slider";
import "bootstrap-switch";
export module profile {
function onInfoSubmit() {
var params: { [key: string]: string } = {};
$("#info-container .info-field").each(function() {
let name: string = this.getAttribute("name");
if (name == null) {
... | Java |
// Copyright (c) 2020 Uber Technologies, 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... | Java |
# MUSCA
a flyweight CA
## Installation
| Java |
<?php
// This file is an extension of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
//... | Java |
<?php
$this->load->Model('exam/Exam_manager_model');
$this->load->model('Branch/Course_model');
$exams = $this->Exam_manager_model->exam_details();
$exam_type = $this->Exam_manager_model->get_all_exam_type();
$branch = $this->Course_model->order_by_column('c_name');
?>
<div class="row">
<div class=col-lg-12>
... | Java |


[](https://github... | Java |
<?php
namespace Augwa\QuickBooks\Model;
/**
* Master Account is the list of accounts in the master list. The master
* list is the complete list of accounts prescribed by the French
* Government. These accounts can be created in the company on a need
* basis. The account create API needs to be used to create an ac... | Java |
/**
* Entry point for CSS.
*/
.foo {
color: black;
}
| Java |
require 'spec_helper'
module Gisele
module Compiling
describe Gisele2Gts, "on_task_def" do
before do
subject
subject.ith_state(0).initial!
end
subject do
code = <<-GIS.strip
task Main
Hello
end
GIS
Gisele2Gts.compile(code,... | Java |
// This file is automatically generated.
package adila.db;
/*
* Motorola Cliq-XT
*
* DEVICE: zeppelin
* MODEL: MB501
*/
final class zeppelin_mb501 {
public static final String DATA = "Motorola|Cliq-XT|";
}
| Java |
#include "transactiondesc.h"
#include "guiutil.h"
#include "lusocoinunits.h"
#include "main.h"
#include "wallet.h"
#include "db.h"
#include "ui_interface.h"
#include "base58.h"
#include <string>
QString TransactionDesc::FormatTxStatus(const CWalletTx& wtx)
{
if (!wtx.IsFinal())
{
if (wtx.nLockTime < ... | Java |
LIBEVENT_VERSION="2.1.11-stable"
LIBEVENT_SHA256SUM="a65bac6202ea8c5609fd5c7e480e6d25de467ea1917c08290c521752f147283d"
rm -fR libevent*
getpkg https://github.com/libevent/libevent/releases/download/release-${LIBEVENT_VERSION}/libevent-${LIBEVENT_VERSION}.tar.gz $LIBEVENT_SHA256SUM
tar zxvf libevent-${LIBEVENT_VERSION}... | Java |
<?php
/**
* Orinoco Framework - A lightweight PHP framework.
*
* Copyright (c) 2008-2015 Ryan Yonzon, http://www.ryanyonzon.com/
* Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
*/
namespace Orinoco\Framework;
use RuntimeException;
class View
{
// layout name
public... | Java |
/* ==========================================================================
Table of Contents
========================================================================== */
/*
0. Normalize
1. Icons
2. General
3. Utilities
4. General
5. Single Post
6. Tag Archive
7. Third... | Java |
<?php namespace ibrss\Http\Requests;
class RegisterRequest extends Request {
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'email' => 'required|email|unique:users',
'password' => 'required|confirmed|min:8',
];
}
/**
* Determ... | Java |
package util;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
/**
* Taken from
* http://www.javaworld.com/article/2077578/learn-java/java-tip-76--an-alternative-to-the-deep-copy-technique.html
*
* @author David Miller... | Java |
import java.awt.*;
public class ListFonts
{
public static void main(String[] args)
{
String[] fontNames = GraphicsEnvironment
.getLocalGraphicsEnvironment()
.getAvailableFontFamilyNames();
for (int i = 0; i < fontNames.length; i++)
System.out.println(fontNames[i... | Java |
import { Event } from "../events/Event"
import { EventDispatcher } from "../events/EventDispatcher"
import { Browser } from "../utils/Browser"
import { Byte } from "../utils/Byte"
/**
* 连接建立成功后调度。
* @eventType Event.OPEN
* */
/*[Event(name = "open", type = "laya.events.Event")]*/
/**
* 接收到数据后调度。
* @eventType Even... | Java |
'use strict';
module.exports = require('./is-implemented')() ?
Array.prototype.concat : require('./shim');
| Java |
#!/bin/bash
# this causes the script to exit if any line causes an error. if there are badly-behaved bits of script that you want to ignore, you can run "set +e" and then "set -e" again afterwards.
set -e
# setting the variable stylefile to be the string on the RHS of =. you can't have spaces around the =, annoyingly... | Java |
import React from "react";
import { Link } from "@curi/react-dom";
import {
TitledPlainSection,
HashSection,
Paragraph,
CodeBlock,
Note,
IJS
} from "../../components/guide/common";
let meta = {
title: "Apollo Integration"
};
let setupMeta = {
title: "Setup",
hash: "setup"
};
let looseMeta = {
tit... | Java |
require 'net/http'
require 'net/https'
require 'active_merchant/billing/response'
module ActiveMerchant #:nodoc:
module Billing #:nodoc:
#
# == Description
# The Gateway class is the base class for all ActiveMerchant gateway implementations.
#
# The standard list of gateway functions that most... | Java |
# cool (Deprecated)
**※作成時期が古く、整理もしていないので非推奨です※**
2013年に作成したJava SE 7向けライブラリ。メンテナンス予定は無し。
###util
Java SE 7向けPOJOライブラリ。
コレクション、数値計算等。
###io
Zip4jを用いたファイル操作ライブラリ。
ディレクトリと暗号化Zipファイルを透過的に扱う。
###framework
Java SE 7向けPOJOゲームライブラリ。
(入力の受け取り方法は抽象化した上で)入力結果の処理等。
###jsfml
JSFMLに依存するゲームライブラリ。
JSFMLを直接扱うユーティリティや、2Dシ... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace DevDataControl
{
public partial class FrmObjectDataSource1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
... | Java |
require 'tilt/erb'
module May
class Templator
class Template
def initialize(path)
@file = File.open(path, 'r') if path
end
def path
@file.path
end
def body
return '' unless @file
@body ||= @file.read
end
end
class Generator
def ... | Java |
# RGPlaceholderTextView
Subclass of UITextView which you can set Placeholder.
| Java |
/**
* before : before(el, newEl)
* Inserts a new element `newEl` just before `el`.
*
* var before = require('dom101/before');
* var newNode = document.createElement('div');
* var button = document.querySelector('#submit');
*
* before(button, newNode);
*/
function before (el, newEl) {
if (typ... | Java |
<? $page_title = "Mobile Grid System" ?>
<?php include("includes/_header.php"); ?>
<style>
.example .row, .example .row .column, .example .row .columns { background: #f4f4f4; }
.example .row { margin-bottom: 10px; }
.example .row .column, .example .row .columns { background: #eee; border: 1px solid #ddd; }
... | Java |
package astilog
import "flag"
// Flags
var (
AppName = flag.String("logger-app-name", "", "the logger's app name")
Filename = flag.String("logger-filename", "", "the logger's filename")
Verbose = flag.Bool("logger-verbose", false, "if true, then log level is debug")
)
// Formats
const (
FormatJSON = "json"
Fo... | Java |
<?php
require_once('../../lib/Laposta.php');
Laposta::setApiKey("JdMtbsMq2jqJdQZD9AHC");
// initialize field with list_id
$field = new Laposta_Field("BaImMu3JZA");
try {
// get field info, use field_id or email as argument
// $result will contain een array with the response from the server
$result = $field->get("i... | Java |
import React, { PropTypes } from 'react';
import Page from './Page';
import ProjectListItem from './ProjectListItem';
import AspectContainer from './AspectContainer';
import BannerImage from './BannerImage';
import styles from './Projects.css';
const Projects = ({ projects }) => (
<Page
Hero={() =>
<Aspect... | Java |
(function($) {
var FourthWallConfiguration = function() {
this.token = localStorage.getItem('token');
this.gitlab_host = localStorage.getItem('gitlab_host');
}
FourthWallConfiguration.prototype.save = function() {
localStorage.setItem('token', this.token);
localStorage.setItem('gitlab_host', this... | Java |
<ts-form-field
[validateOnChange]="validateOnChange"
[control]="selfReference"
[hideRequiredMarker]="hideRequiredMarker"
[hint]="hint"
[id]="id"
[theme]="theme"
cdk-overlay-origin
#origin="cdkOverlayOrigin"
>
<ts-label *ngIf="label">
{{ label }}
</ts-label>
<div class="ts-autocomplete__input-... | Java |
"use strict";
ace.define("ace/snippets/golang", ["require", "exports", "module"], function (require, exports, module) {
"use strict";
exports.snippetText = undefined;
exports.scope = "golang";
}); | Java |
export default {
A: [[1,0],[2,0],[3,0],[0,1],[4,1],[0,2],[1,2],[2,2],[3,2],[4,2],[0,3],[4,3],[0,4],[4,4]],
B: [[0,0],[1,0],[2,0],[3,0],[0,1],[4,1],[0,2],[1,2],[2,2],[3,2],[0,3],[4,3],[0,4],[1,4],[2,4],[3,4]],
C: [[0,0],[1,0],[2,0],[3,0],[4,0],[0,1],[0,2],[0,3],[0,4],[1,4],[2,4],[3,4],[4,4]],
D: [[0,0],[1,0],[2,0],... | Java |
Trace-VstsEnteringInvocation $MyInvocation
try {
. $PSScriptRoot\Get-PythonExe.ps1
$distdir = Get-VstsInput -Name "distdir" -Require
$repository = Get-VstsInput -Name "repository" -Require
$pypirc = Get-VstsInput -Name "pypirc"
$username = Get-VstsInput -Name "username"
$password = Get-VstsInpu... | Java |
<html><body>
<h4>Windows 10 x64 (19041.208) 2004</h4><br>
<h2>_VF_AVL_TREE_NODE_EX</h2>
<font face="arial"> +0x000 Base : <a href="./_VF_AVL_TREE_NODE.html">_VF_AVL_TREE_NODE</a><br>
+0x010 SessionId : Uint4B<br>
</font></body></html> | Java |
---
author: "Ana Rute Mendes"
date: 2014-04-29
title: "Dica #1"
tags: [
"CSS",
"Ghost",
]
description: "Primeira edição da newsletter Dicas de Front End. Pretendo trazer aqui, semanalmente, artigos e dicas com novidades, opiniões e discussões sobre o desenvolvimento Front-end e Web Design."
---
Olá pessoal,
E... | Java |
/*
* Signals.h
*
* Created on: 07.06.2017
* Author: abt674
*
*
*/
#ifndef SIGNALS_H_
#define SIGNALS_H_
//Lightbarriers and Sensor
#define INLET_IN_VAL 0b0000000000000001
#define INLET_OUT_VAL 0b0000000000000011
#define HEIGHTMEASUREMENT_IN_VAL 0b0000000000000010
#define HEIGH... | Java |
html {
font-size: 12px;
font-family: 'Rubik', sans-serif;
}
h1,h2,h3,h4,h5,h6 {
font-family: 'Rubik Mono One',sans-serif;
}
header {
text-align: center;
}
header h1 {
margin: 0;
}
#countries-judged {
margin-bottom: 2rem;
min-height: 2rem;
}
#countries-judged.empty {
border: 1... | Java |
<?php
/*
* This file is part of Composer.
*
* (c) Nils Adermann <naderman@naderman.de>
* Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Composer\Plugin;
use Composer\Composer;
... | Java |
export default {
modules: require('glob!./glob.txt'),
options: {
name: 'Comment',
},
info: true,
utils: {},
};
| Java |
using Content.Shared.Sound;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.ViewVariables;
namespace Content.Server.Storage.Components
{
/// <summary>
/// Allows locking/unlocking, with access determined by AccessReader
/// </summary>
[Register... | Java |
// Copyright 2008 Adrian Akison
// Distributed under license terms of CPOL http://www.codeproject.com/info/cpol10.aspx
using System;
using System.Collections.Generic;
using System.Text;
namespace RaidScheduler.Domain.DomainModels.Combinations
{
/// <summary>
/// Interface for Permutations, Combinations and any... | Java |
using DragonSpark.Model.Results;
namespace DragonSpark.Application.Security.Identity;
public interface IUsers<T> : IResult<UsersSession<T>> where T : class {} | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.