code stringlengths 4 1.01M | language stringclasses 2
values |
|---|---|
<?php
/*
* This file is part of Laravel HTTP Adapter.
*
* (c) Hidde Beydals <hello@hidde.co>, Mark Redeman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace HiddeCo\HttpAdapter\Adapters;
use Symfony\Component\EventDispat... | Java |
class UsersController < ApplicationController
load_and_authorize_resource
def index
end
def update
if params[:admins].present?
@new_admins = User.not_admins.where(:id => params[:admins])
@new_admins.map {|user| user.admin = true}
@no_longer_admins = User.admins.where('id NOT IN (?)', par... | Java |
"use strict";
var gulp = require('gulp');
var clean = require('gulp-clean');
var cleanTask = function() {
return gulp.src('dist', { read: false })
.pipe(clean());
};
gulp.task('clean', cleanTask);
module.exports = cleanTask;
| Java |
scripts
=======
Some scripts
| Java |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="apple-touch-icon" sizes="76x76" href="assets/img/apple-icon.png">
<link rel="icon" type="image/png" href="assets/img/favicon.png">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>Material Kit by Creative Tim</title... | Java |
import os
class Config(object):
DEBUG = False
TESTING = False
CSRF_ENABLED = True
SECRET_KEY = "super_secret_key"
SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL']
class ProductionConfig(Config):
DEBUG = False
SECRET_KEY = os.environ['SECRET_KEY']
class DevelopmentConfig(Config):
D... | Java |
<div id="about">
<header class="twelve columns">
<h1>My background</h1>
<p class="opening">I'm a programmer, entrepreneur, speaker, designer, and trail runner among other things. As an engineer I've worked across the stack in backend, web, and mobile. I live and work in Los Angeles and studied at UC... | Java |
var scroller = angular.module("scroller", ["ngTouch", "angular-websql"]); | Java |
/******************************************************************************
QtAV: Multimedia framework based on Qt and FFmpeg
Copyright (C) 2012-2016 Wang Bin <wbsecg1@gmail.com>
* This file is part of QtAV (from 2014)
This library is free software; you can redistribute it and/or
modify it unde... | Java |
r"""
Create MapServer class diagrams
Requires https://graphviz.gitlab.io/_pages/Download/Download_windows.html
https://stackoverflow.com/questions/1494492/graphviz-how-to-go-from-dot-to-a-graph
For DOT languge see http://www.graphviz.org/doc/info/attrs.html
cd C:\Program Files (x86)\Graphviz2.38\bin
dot -Tpng D:\Git... | Java |
import { get_definition } from './../base';
export const push_link = (
oid, linkurl, linkname, onmenu='true', instance_name,
when, additional_args, description
) => get_definition({
oid,
linkurl,
linkname,
onmenu,
instance_name
},
{
label: 'VersionOne - P... | Java |
#region License
/* The MIT License
*
* Copyright (c) 2011 Red Badger Consulting
*
* 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 limitatio... | Java |
<?php
namespace fufudao\base;
use yii\behaviors\TimestampBehavior;
//use yii\behaviors\AttributeBehavior;
use yii\db\ActiveRecord as ar;
use yii\db\Expression;
class ActiveRecord extends ar
{
public function behaviors()
{
return [
'timestamp' => [
'class' => TimestampB... | Java |
SET DEFINE OFF;
CREATE SEQUENCE AFW_07_AUDIT_STRUC_APLIC_SEQ
START WITH 1
MAXVALUE 9999999999999999999999999999
MINVALUE 1
NOCYCLE
CACHE 20
NOORDER
/
| Java |
#
# Cookbook Name:: dokku
# Spec:: plugins
#
# Copyright (c) 2015 Nick Charlton, MIT licensed.
require "spec_helper"
describe "dokku::plugins" do
context "when all attributes are default" do
let(:chef_run) do
runner = ChefSpec::ServerRunner.new
runner.converge(described_recipe)
end
before d... | Java |
'use strict';
// Load the application's configuration
const config = require('../server/config');
const url = config.express_host + '/api';
// Required modules
const async = require('async');
const colors = require('colors');
const request = require('request');
// Counter for the Measurements
let counter = 1;
/... | Java |
import React from 'react'
import {HOC, Link} from 'cerebral-view-react'
import PageProgress from '../PageProgress'
// View
class AutoReload extends React.Component {
constructor (props) {
super(props)
this.state = {
secondsElapsed: 0
}
this.onInterval = this.onInterval.bind(this)
}
compone... | Java |
#!/bin/bash
#SBATCH --partition=mono
#SBATCH --ntasks=1
#SBATCH --time=4-0:00
#SBATCH --mem-per-cpu=8000
#SBATCH -J Deep-RBM_DBM_4_inc_bin_PARAL_base
#SBATCH -e Deep-RBM_DBM_4_inc_bin_PARAL_base.err.txt
#SBATCH -o Deep-RBM_DBM_4_inc_bin_PARAL_base.out.txt
source /etc/profile.modules
module load gcc
module load matla... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<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>Task Management System</title>
... | Java |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<title>Test U... | Java |
# coffeehaus
A coffeescript shop for JVM locals.
## /!\ Extraction in progress
This library is the extraction of the coffeescript compiler used
in [coffeescripted-sbt](https://github.com/softprops/coffeescripted-sbt) for use as a standalone library
## install
(todo)
## usage
This library provides scala interface... | Java |
# Author: John Elkins <john.elkins@yahoo.com>
# License: MIT <LICENSE>
from common import *
if len(sys.argv) < 2:
log('ERROR output directory is required')
time.sleep(3)
exit()
# setup the output directory, create it if needed
output_dir = sys.argv[1]
if not os.path.exists(output_dir):
os.makedirs(ou... | Java |
require "./test/test_helper"
require "pinker/rule"
include Pinker
regarding "remember helps gather up things that get returned if the rule is valid." do
class Request
def initialize(path_info, query_string=nil)
@path_info = path_info
@query_string = query_string
end
end
test "stick things ... | Java |
// Copyright (c) 2009-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.
//
// Why base-58 instead of standard base-64 encoding?
// - Don't want 0OIl char... | Java |
/* Client-side router settings */
Router.configure({
layoutTemplate:"layout",
notFoundTemplate:"page_not_found",
loadingTemplate:"loading"
});
Router.route("/", {
name:"home",
template:"home"
});
Router.route("/profile", {
name:"profile",
template:"profile"
});
Router.route("/admin", {
name:"admin",... | Java |
/*---------------------------------------------------------------------------------
Name : amixer.c
Author : Marvin Raaijmakers
Description : Plugin for keyTouch that can change the volume (using amixer).
Date of last change: 24-Sep-2006
History : 24-Sep-2006 Added two new pl... | Java |
<?php
namespace S327at\L51blog\Models;
use Illuminate\Database\Eloquent\Model;
class Group extends Model {
} | Java |
# Dokumenttien laatiminen
Tämän ohjesivun sisältö:
- Dokumentoinnin periaatteet
- Uuden sivudokumentin laatiminen, muokkaaminen ja päivittäminen
- Taulukoiden tekeminen piazzalla
- Uuden tiedostodokumentin laatiminen, tiedoston nostaminen piazzalle, muokkaaminen ja päivittäminen
- Dokumenttien linkitys
- Kuvan liitt... | Java |
package com.calebmeyer.bettercrafting.creativetab;
import com.calebmeyer.bettercrafting.constants.Project;
import com.calebmeyer.bettercrafting.initialization.ModItems;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
public class CreativeTabBCT {
public static final CreativeTabs BE... | Java |
//Change class of "Home" and "About"
function setActive() {
document.getElementById("about").className += "active"
document.getElementById("home").setAttribute('class','no')
}
| Java |
<?php
class PostModel extends CI_Model
{
public $id;
public $title;
public $content;
public $date;
public $author;
public $upvotes = 0;
public $downvotes = 0;
public $voters;
public function __construct()
{
parent::__construct();
}
public function GetAll()
... | Java |
---
title: 'PB & Homemade J'
author: lbjay
layout: post
permalink: /2007/10/05/pb-homemade-j/
categories:
- "What's for Lunch"
---
<abbr class="unapi-id" title=""><!-- --></abbr>
<div style="float: right; margin-left: 10px; margin-bottom: 10px;">
<a href="http://www.flickr.com/photos/37849137@N00/1490... | Java |
---
layout: default
---
<h2>{{ page.title }}</h2>
<div class="post">
{{ content }}
</div>
| Java |
body {
color: #ffffff;
font-family: Monospace, sans-serif;
font-size: 13px;
text-align: center;
font-weight: bold;
background-color: #000000;
margin: 0;
overflow: hidden;
cursor: none;
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Chrome/Safari... | Java |
<html><body>
<h4>Windows 10 x64 (18362.329)</h4><br>
<h2>_CM_UOW_SET_VALUE_KEY_DATA</h2>
<font face="arial"> +0x000 PreparedCell : Uint4B<br>
+0x004 OldValueCell : Uint4B<br>
+0x008 NameLength : Uint2B<br>
+0x00c DataSize : Uint4B<br>
</font></body></html> | Java |
/// <reference types="xrm" />
export declare function findIndex(handlers: Xrm.Events.ContextSensitiveHandler[], handler: Xrm.Events.ContextSensitiveHandler): number;
| Java |
<?php
namespace Vilks\DataObject;
use Vilks\DataObject\Exception\DirectPropertySetException;
use Vilks\DataObject\Exception\PropertyNotFoundException;
use Vilks\DataObject\Exception\PropertyValidationFailedException;
use Vilks\DataObject\Exception\WrongEvolutionInheritanceException;
use Vilks\DataObject\Validator\Data... | Java |
import _plotly_utils.basevalidators
class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator):
def __init__(
self,
plotly_name="showexponent",
parent_name="scatterpolar.marker.colorbar",
**kwargs
):
super(ShowexponentValidator, self).__init__(
... | Java |
<?php
namespace Midnight\Crawler\Plugin\TestData;
class MuryoTestData extends AbstractTestData
{
/**
* @var string
**/
protected $rss_name = 'muryo.xml';
/**
* @var array
**/
protected $html_paths = array(
'muryo/71340.html',
'muryo/71370.html',
'muryo/7... | Java |
using System;
using Argus.Extensions;
namespace Argus.Data
{
/// <summary>
/// Contains a string name/value pair seperated by an equals sign. The values can be set via the properties or by passing in a
/// delimited string. E.g. FirstName=Blake.
/// </summary>
/// <remarks></remarks>
public... | Java |
__author__ = 'miko'
from Tkinter import Frame
class GameState(Frame):
def __init__(self, *args, **kwargs):
self.stateName = kwargs["stateName"]
self.root = args[0]
self.id = kwargs["id"]
Frame.__init__(self, self.root.mainWindow)
self.config(
background="gold"
)
self.place(relwidth=1, relheight=1)
| 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_24) on Fri Feb 22 14:06:12 EET 2013 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
javalabra.chess.core.impl.state (... | Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>18 --> 19</title>
<link href="./../../assets/style.css" rel="stylesheet">
</head>
<body>
<h2>You have to be fast</h2>
<a href="./4ac3f45b236dfce453c7b08f66748497144da944c805dd71a7d9c6d6ff5efcff.html">Teleport</a>
<hr>
... | Java |
from csacompendium.csa_practice.models import PracticeLevel
from csacompendium.utils.pagination import APILimitOffsetPagination
from csacompendium.utils.permissions import IsOwnerOrReadOnly
from csacompendium.utils.viewsutils import DetailViewUpdateDelete, CreateAPIViewHook
from rest_framework.filters import DjangoFilt... | Java |
export const ADD_COCKTAIL = 'ADD_COCKTAIL';
export const LOAD_COCKTAILS = 'LOAD_COCKTAILS';
export const ADD_SPIRIT = 'ADD_SPIRIT';
export const REMOVE_SPIRIT = 'REMOVE_SPIRIT';
export const UPDATE_HUE = 'UPDATE_HUE';
| Java |
#include <algorithm>
#include <iostream>
#include "RustyFist/DrawMe.h"
#include "RustyFist/TouchSink.h"
#include "OpenGLLayer.h"
using namespace cocos2d;
using namespace std;
OpenGLLayer::OpenGLLayer()
{
}
OpenGLLayer::~OpenGLLayer()
{
}
bool OpenGLLayer::init()
{
return Layer::init();
}
cocos2d::Scene* OpenGLLay... | Java |
//
// PASConnectionTransformation.h
// ximber
//
// Created by Paul Samuels on 15/09/2014.
// Copyright (c) 2014 Paul Samuels. All rights reserved.
//
@import Foundation;
/**
* The connection transformation is a basic data structure that holds a block that is
* executed on each node found at the xpath
*/
@inte... | Java |
/* icon */
.ico-file{width: 32px;height: 32px;display: inline-block;vertical-align: middle;background: url(../img/spr-icon.png) -384px 0 no-repeat;}
.ico-bt-file{background-position: 0 0}
.ico-bt-link{background-position: -32px 0}
.ico-chm{background-position: -64px 0}
.ico-xls{background-position: -96px 0}
.ico-... | Java |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
#include "tcp_socket.h"
using namespace easynet;
//TCPSocket 已连接的服务器
TCPSocket::TCPSocket(EPOLLSvrPtr s) {
socket_handler_... | Java |
{% extends 'base.html' %}
{% block content %}
<div class="row">
<div class="col-md-12">
<form action="/login" method="post">
{{ form.csrf_token }}
{{ form.next(value=next) }}
<div class="form-group">
{{ form.username.label }}
{{ form.usern... | Java |
using Android.OS;
using Android.Text;
using Android.Util;
using REKT.Graphics;
using REKT.Graphics.Unsafe;
using REKT.DI;
using SkiaSharp;
using System;
using System.Text;
using D = System.Diagnostics.Debug;
using NativeActivity = Android.App.Activity;
using NativeBitmap = Android.Graphics.Bitmap;
using NativeBitmapFac... | Java |
// animating the scroll effect
$('.screenshots').on('click', function(e){
e.preventDefault();
$("html, body").animate({ scrollTop: "950px", duration: 500 });
});
| Java |
#include "strm.h"
#include <math.h>
static int
num_plus(strm_stream* strm, int argc, strm_value* args, strm_value* ret)
{
strm_value x, y;
strm_get_args(strm, argc, args, "NN", &x, &y);
if (strm_int_p(x) && strm_int_p(y)) {
*ret = strm_int_value(strm_value_int(x)+strm_value_int(y));
return STRM_OK;
}
... | Java |
<html>
<head>
</head>
<body>
<h2>
Their Antiquity
</h2>
<span class="oldenglish">
Who
</span>
<span class="oldenglish">
were
</span>
<span class="oldenglish">
the
</span>
originall
<span class="oldenglish">
writers
</span>
<span class="oldenglish">
of
</span>
<span class... | Java |
'use strict';
var path = require('path');
module.exports = path.join.bind(path, __dirname, '..');
| Java |
---
title: Svett
tag: svett
active: false
url: https://www.facebook.com/svettifi/
template: association.pug
---
Navnet Svett spiller på den populært utbredte stereotypen av informatikere. Mange ser på informatikere som svette «nerder». Vi velger å spille videre på dette med et glimt i øyet.
**Formål:** Foreningens fo... | Java |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Master thesis presentation – OpenLaws</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Presentation of Master thesis @... | Java |
<?php
/*
* This file is part of the Asset Injection package, an RunOpenCode project.
*
* (c) 2015 RunOpenCode
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace RunOpenCode\AssetsInjection\Tests\Mockup;
use RunOpenCode\Asse... | Java |
---
layout: default
title: Pegmatite
github: CompilerTeaching/Pegmatite
---
Pegmatite design overview
-------------------------
This is a fork and extensive rewrite of Achilleas Margaritis's ParserLib. It
has the following goals:
- Idiomatic C++11
- Simple use
- Reuseable, reentrant grammars with multiple action de... | Java |
var markdown = window.markdownit();
$(document).ready(function() {
var $wish = $('#wish');
var todoNotificationArea = $('#todos .notification-area');
var todoNotificationIcon = $('#todos .notification-area > i');
var todoNotificationText = $('#todos .notification-area > span');
$('#news-stream ... | Java |
//
// AWSAppDelegate.h
// TAWS
//
// Created by CocoaPods on 05/27/2015.
// Copyright (c) 2014 suwa.yuki. All rights reserved.
//
@import UIKit;
@interface AWSAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
| Java |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq-erasure: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap... | Java |
# This file is part of beets.
# Copyright 2016, Adrian Sampson.
#
# 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, ... | Java |
require_relative '../animation'
module NixonPi
module Animations
class CountFromToAnimation < Animation
register :count_from_to, self
accepted_commands :start_value, :single_digit?
# TODO: unfinished and untested
def initialize(options = {})
super(options)
@options[:singl... | Java |
FROM python:3
ADD ./simplesocial /simplesocial
WORKDIR /simplesocial
RUN pip install -r requirements.txt
EXPOSE 8000
CMD [ "python", "manage.py", "runserver", "0.0.0.0:8000"] | Java |
---
layout: post
title: "Class Based Views"
date: 2013-05-13 07:04
tags: [python, django, yakindanegitim]
icons: [python]
---
Web development is a bit repetitive and web frameworks try to reduce this burden. One of the best features of Django for making object manipulation easier is class based views(CBV). We are usua... | Java |
local Swapout = require('sconce.Swapout')
return function(tester)
local suite = torch.TestSuite()
function suite.test_swapout_always_add()
local swapout = Swapout.new(1.0)
local actual = swapout:forward({torch.Tensor{1, 2}, torch.Tensor{3, 2}})
local expected = torch.Tensor{4, 4}
tester:eq(actual,... | Java |
"use strict";
var http_1 = require("@angular/http");
var AppSettings = (function () {
function AppSettings() {
}
Object.defineProperty(AppSettings, "API_OPTIONS", {
get: function () {
var headers = new http_1.Headers({ 'Content-Type': 'application/json' }), options = new http_1.RequestOp... | Java |
const fs = require('fs')
const path = require('path')
const {generateBabelEnvLoader, getConfig} = require('./common')
const buildCache = {}
module.exports = (params) => {
const baseConfig = getConfig(params)
const config = Object.assign({}, baseConfig)
config.outputPath = path.join(__dirname, '../dist-' + confi... | Java |
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using tomware.Microwf.Domain;
using tomware.Microwf.Infrastructure;
namespace tomware.Microwf.Engine
{
public interface IJobQueueControllerService
{
Task<IEnumerable<WorkItemViewModel>> GetSnapshotAsync();
Task<PaginatedLis... | Java |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_connect_socket_w32spawnl_18.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-18.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: connect_socket Read data u... | Java |
require "pivotal/sass/version"
module Pivotal
module Sass
class Engine < ::Rails::Engine
end
end
end
| 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... | Java |
<html><body>
<h4>Windows 10 x64 (19041.208) 2004</h4><br>
<h2>_HEAP_DESCRIPTOR_KEY</h2>
<font face="arial"> +0x000 Key : Uint4B<br>
+0x000 EncodedCommittedPageCount : Pos 0, 16 Bits<br>
+0x000 LargePageCost : Pos 16, 8 Bits<br>
+0x000 UnitCount : Pos 24, 8 Bits<br>
</font></body... | Java |
<?php
/*
*
*/
namespace RDF\JobDefinitionFormatBundle\Type;
/**
*
*
* @author Richard Fullmer <richardfullmer@gmail.com>
*/
class CMYKColor
{
/**
* @var float
*/
protected $cyan;
/**
* @var float
*/
protected $magenta;
/**
* @var float
*/
protected $yell... | Java |
<html>
<head>
<title> Install SEO Commerce</title>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<style>
#container {
margin:auto;
}
label, input {
display: block;
}
</style>
</head>
<body>
<div class="container">
<form action="pasang_p.php" method="POST">
<label> Nama Situs </label>
<input t... | Java |
Turbocoin Core version 0.9.0 is now available from:
https://turbocoin.us/bin/0.9.0/
This is a new major version release, bringing both new features and
bug fixes.
Please report bugs using the issue tracker at github:
https://github.com/turbocoin/turbocoin/issues
How to Upgrade
--------------
If you are runnin... | Java |
{{ define "main" }}
<!-- Header -->
{{ partial "header" . }}
<div class="container">
<section id="projects">
<h4 class="my-5">{{ .Site.Data.projects.name }}</h4>
<div class="panel">
<div class="panel-body">
{{ range $el := .Site.Data.projects.source }}
<h5>
... | Java |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace DebtSnowBall2017
{
class LoanList
{
private List<Loan> loanList;
public LoanList()
{
this.loanList = new List<Loan>();
... | Java |
---
layout: default
title: Отправить совет!
---
<div class="grid_8 alpha omega white">
<h2>Отправить совет!</h2>
<iframe src="http://spreadsheets.google.com/embeddedform?key=pNxLaOX4yIJnLpmHYEDxXXQ" width="590" height="616" frameborder="0" marginheight="0" marginwidth="0">Загрузка...</iframe>
</div>
| Java |
package render
import (
"github.com/gin-gonic/gin"
)
/* ================================================================================
* Render 工具模块
* qq group: 582452342
* email : 2091938785@qq.com
* author : 美丽的地球啊 - mliu
* ================================================================================ ... | Java |
/*
* _____ _ _ _ _____ _ _ _ _____ _ __ _____ _____
* / ___| | | | | | | |_ _| | | / / | | | ____| | | / / | ____| | _ \
* | | | | | | | | | | | | / / | | | |__ | | __ / / | |__ | |_| |
* | | _ | | | | |... | Java |
<?php
/**
* Description of aSites
*
* @author almaz
*/
class aSitesUsers extends Action {
protected $defaultAct = 'List';
protected function configure() {
require_once $this->module->pathModels . 'as_Sites.php';
require_once $this->module->pathModels . 'as_SitesUsers.php';
$authModu... | Java |
package cz.muni.fi.pa165.mushrooms.service.exceptions;
/**
* @author bkompis
*/
public class EntityOperationServiceException extends MushroomHunterServiceDataAccessException {
public <T> EntityOperationServiceException(String what, String operation, T entity, Throwable e) {
super("Could not " + operatio... | Java |
#!/usr/bin/env python
import subprocess
import praw
from hashlib import sha1
from flask import Flask
from flask import Response
from flask import request
from cStringIO import StringIO
from base64 import b64encode
from base64 import b64decode
from ConfigParser import ConfigParser
import OAuth2Util
import os
import mar... | Java |
#![cfg_attr(all(feature = "nightly", test), feature(test))]
#![cfg(all(feature = "nightly", test))]
extern crate test;
extern crate cxema;
#[cfg(test)]
use cxema::sha2::{Sha256};
use cxema::digest::Digest;
use test::Bencher;
#[bench]
pub fn sha256_10(bh: &mut Bencher) {
let mut sh = Sha256::new();
let bytes... | Java |
using System.Collections.Generic;
using JsonApiDotNetCore.Resources;
using JsonApiDotNetCore.Resources.Annotations;
using JsonApiDotNetCore.Serialization.Objects;
namespace JsonApiDotNetCore.Serialization.Building
{
/// <summary>
/// Responsible for converting resources into <see cref="ResourceObject" />s give... | Java |
# Wir backen uns ein Mandelbrötchen

Die [Mandelbrot-Menge](https://de.wikipedia.org/wiki/Mandelbrot-Menge) ist die zentrale Ikone der Chaos-Theorie und das Urbild aller Fraktale. Sie ist die Menge aller komplexen Zahlen *c*, für welche die durch
$$
\begin{align}
z_{0} & = 0\... | Java |
<html>
<head>
<title>User agent detail - Mozilla/5.0 (Linux; U; Android 4.0.3; zh-tw; ME171 Build/IML74K) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<link ... | Java |
<html>
<head>
<script src='https://surikov.github.io/webaudiofont/npm/dist/WebAudioFontPlayer.js'></script>
<script src='0410_Aspirin_sf2_file.js'></script>
<script>
var selectedPreset=_tone_0410_Aspirin_sf2_file;
var AudioContextFunc = window.AudioContext || window.webkitAudioContext;
var audioContext ... | Java |
'use strict';
var page = 'projects';
module.exports = {
renderPage: function(req, res) {
if (!req.user) {
res.redirect('/login');
} else {
res.render(page, {
helpers: {
activeClass: function(section) {
if (section === 'projects') {
return 'active';
... | Java |
[](https://deploy.now.sh/?repo=https://github.com/zeit/next.js/tree/master/examples/with-jsx)
# JSX Next.js example
This is a really simple project that show the usage of Next.js with JSX.
## How to use it?
```
npm install # to install dependencies
npm ru... | Java |
Search = function(data, input, result) {
this.data = data;
this.$input = $(input);
this.$result = $(result);
this.$current = null;
this.$view = this.$result.parent();
this.searcher = new Searcher(data.index);
this.init();
};
Search.prototype = $.extend({}, Navigation, new function() {
var suid = 1;
... | Java |
version https://git-lfs.github.com/spec/v1
oid sha256:505b4ccd47ed9526d0238c6f2d03a343ce476abc1c4aa79a9f22cabcbd0a3c16
size 12575
| Java |
#include "ConfirmationMenu.h"
ConfirmationMenu::ConfirmationMenu(CarrotQt5* mainClass, std::function<void(bool)> callback, const QString& text, const QString& yesLabel, const QString& noLabel)
: MenuScreen(mainClass), text(text) {
menuOptions.append(buildMenuItem([this, callback]() {
root->popState();... | Java |
'use strict';
//Ghost service used for communicating with the ghost api
angular.module('ghost').factory('Ghost', ['$http', 'localStorageService',
function($http, localStorageService) {
return {
login: function() {
return $http.get('api/ghost/login').
success(function(dat... | Java |
from flask_webapi import status
from unittest import TestCase
class TestStatus(TestCase):
def test_is_informational(self):
self.assertFalse(status.is_informational(99))
self.assertFalse(status.is_informational(200))
for i in range(100, 199):
self.assertTrue(status.is_informati... | Java |
/*
* Copyright 2014 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | Java |
# nazdrave
Като Untappd ама за ракия
| Java |
Omnom App
=========
This is the example app for Omnom. See [Omnom](https://github.com/tombenner/omnom) for details.
License
-------
Omnom App is released under the MIT License. Please see the MIT-LICENSE file for details.
| Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.