code stringlengths 4 1.01M |
|---|
<?php
namespace Sebastienheyd\Boilerplate\View\Composers;
use Illuminate\Support\Facades\App;
use Illuminate\View\View;
class DatatablesComposer
{
/**
* Called when view load/datatables.blade.php is called.
* This is defined in BoilerPlateServiceProvider.
*
* @param View $view
*/
p... |
<div id="certifications" class="section">
<h3>Certifications</h3>
<div class="certifications">
<div class="row">
{% for cert in site.certifications %}
{% assign odd = forloop.index | modulo: 2 %}
<div class="cert-wrapper col-sm-6 col-xs-12">
{% if cert.img %}
<a href=... |
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
@Component({
selector: 'app-native',
templateUrl: './native.component.html',
styleUrls: ['./native.component.css'],
encapsulation: ViewEncapsulation.Native
})
export class NativeComponent implements OnInit {
constructor() { }
ngOnIni... |
// Copyright 2015 XLGAMES Inc.
//
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#include "../Transform.h"
#include "../MainGeometry.h"
#include "../Surface.h"
#include "../ShadowProjection.h"
#include "../Vegetation/WindAn... |
t = PryTheme.create :name => 'pry-modern-16', :color_model => 16 do
author :name => 'Kyrylo Silin', :email => 'silin@kyrylo.org'
description 'Simplied version of pry-modern-256'
define_theme do
class_ 'bright_magenta'
class_variable 'bright_cyan'
comment 'blue'
constant 'bright_blue'
error 'b... |
/**
* Created by Wayne on 16/3/16.
*/
'use strict';
var tender = require('../controllers/tender'),
cardContr = require('../controllers/card'),
cardFilter = require('../../../libraries/filters/card'),
truckFileter = require('../../../libraries/filters/truck'),
driverFilter = require('../../../libraries/filte... |
<!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>Zenrin Admin - Daily Report</ti... |
from rest_framework import test, status
from waldur_core.structure.models import CustomerRole, ProjectRole
from waldur_core.structure.tests import factories as structure_factories
from . import factories
class ServiceProjectLinkPermissionTest(test.APITransactionTestCase):
def setUp(self):
self.users = {... |
#!/bin/env python
#
# The MIT License (MIT)
#
# Copyright (c) 2015 Billy Olsen
#
# 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... |
/**
* Imports
*/
import React from 'react';
import connectToStores from 'fluxible-addons-react/connectToStores';
import {RouteHandler} from 'react-router';
import {slugify} from '../../../utils/strings';
// Flux
import AccountStore from '../../../stores/Account/AccountStore';
import ApplicationStore from '../../../... |
# frozen_string_literal: true
require 'spec_helper'
describe CloudPayments::Namespaces do
subject{ CloudPayments::Client.new }
describe '#payments' do
specify{ expect(subject.payments).to be_instance_of(CloudPayments::Namespaces::Payments) }
end
describe '#subscriptions' do
specify{ expect(subject.su... |
/**
* The main purpose of this in my mind is for navigation
* this way when this route is entered either via direct url
* or by a link-to etc you send a ping so that nav can be updated
* in the hierarchy.
*
* curious about feedback. I have used something similar in practice
* but it's mainly for keeping the ui ... |
---
title: getMutation
description: getMutation API reference for redux-requests - declarative AJAX requests and automatic network state management for single-page applications
---
Almost the same as `getQuery`, it is just used for mutations:
```js
import { getMutation } from '@redux-requests/core';
const deleteBook... |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for RHSA-2010:0221
#
# Security announcement date: 2010-03-30 17:00:57 UTC
# Script generation date: 2017-01-01 21:12:44 UTC
#
# Operating System: Red Hat 5
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - squid.x86_64:2.6.STABLE21-6.el5
# - s... |
.titlebar-view {
color: #a6e22e;
z-index: 99;
}
.titlebar-view .message-box {
width: 500px;
height: 70px;
background-color: #272822;
border: 1px solid #000000;
border-radius: 5px;
border-radius: 5px;
position: absolute;
left: 50%;
margin-left: -200px;
box-shadow: 1px 1px 10px #000;
box-shadow: 1px 1px 10p... |
using Windows.UI.Xaml.Controls;
namespace ZhihuDaily.Models
{
public enum ArticleParagraphType
{
ArticleParagraphTypeText,
ArticleParagraphTypeImage,
ArticleParagraphTypeRichText,
ArticleParagraphTypeLink,
ArticleParagraphTypeLiangpingLink,
ArticleParagraphTypeH... |
// Copyright (c) the authors of nanoGames. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt in the project root.
using OpenTK.Graphics.OpenGL4;
using System;
using System.Text;
namespace NanoGames.Engine.OpenGLWrappers
{
/// <summary>
/// Represents a shader program.
/// </summary>... |
//
// NSData+QGOCCAES256.h
// QGOCCategory
//
// Created by 张如泉 on 15/10/4.
// Copyright © 2015年 QuanGe. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSData (QGOCCAES256)
/**
* 对NSData进行AES256加密
* @param key:加密钥匙
* return 加密后的NSData
*/
- (NSData *)qgocc_aes256_encrypt:(NSString *... |
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("Ye... |
require File.expand_path('../boot', __FILE__)
require 'rack/contrib'
require "rails"
# Pick the frameworks you want:
require "active_model/railtie"
require "active_job/railtie"
require "active_record/railtie"
require "action_controller/railtie"
require "action_mailer/railtie"
require "action_view/railtie"
# require "s... |
package main
import (
"fmt"
"io"
"io/ioutil"
"log"
"net"
"net/http"
)
func main() {
http.HandleFunc("/host", hostFinder)
http.HandleFunc("/ip", sourceIp)
http.HandleFunc("/date", GetJosnTime)
fmt.Println("Listening on 0.0.0.0:8000")
err := http.ListenAndServe("0.0.0.0:8000", nil)
if err != nil {
log.Fa... |
//
// MUTextKitContext.h
// MUKit_Example
//
// Created by Jekity on 2018/9/6.
// Copyright © 2018年 Jeykit. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface MUTextKitContext : NSObject
/**
Initializes a context and its associated TextKit components.
Initialization ... |
// Copyright (c) 2016 Yusuke Sasaki
//
// This software is released under the MIT License.
// See http://opensource.org/licenses/mit-license.php or <LICENSE>.
use ffi;
use itertools::{Itertools, Zip};
use std::mem::transmute;
use std::ops::Deref;
use std::ptr::null;
use std::os::raw;
use error::{Error, Result};
use... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace task_2
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Ohjelma laskee N ensimmäistä lukua yhteen.");
string userInput = C... |
import React, { PropTypes } from 'react';
import { Provider } from 'react-redux';
import Routers from './Routers';
/**
* Component is exported for conditional usage in Root.js
*/
const Root = ({ store }) => (
/**
* Provider is a component provided to us by the 'react-redux' bindings that
* wraps our app - th... |
local blinkTime = 250
local events = {}
local function removeBlink(id)
local creature = g_map.getCreatureById(id)
if creature and creature:getBlinkHitEffect() then
creature:setBlinkHitEffect(false)
end
removeEvent(events[id])
events[id] = nil
end
Blink = {}
Blink.remove =
function (id, instantly)
... |
import actions from './shortcuts';
class MockClientStore {
update(cb) {
this.updateCallback = cb;
}
}
describe('manager.shortcuts.actions.shortcuts', () => {
describe('setOptions', () => {
test('should update options', () => {
const clientStore = new MockClientStore();
actions.setOptions({ c... |
/**
* Application compile time config settings.
*
* This file is empty and only serves to work around this problem, although
* this may be a good place to add any config handling code in future.
*/
#include "config.h"
// Make the SSerial port available if needed
#ifdef SOFTSERIAL_EN
SoftwareSerial SSerial(SOFTSE... |
using Builder.Localization;
using Builder.Resolver;
using System.Collections.Generic;
namespace Builder.ParseTree
{
internal class FieldDefinition : TopLevelEntity, ICodeContainer
{
public Token NameToken { get; set; }
public Expression DefaultValue { get; set; }
public int M... |
using System;
using System.Collections.Generic;
namespace Nucleo.Web
{
/// <summary>
/// Represents a CSS file reference. This file is not used directly within any custom controls/extenders you may develop, though you can use it for your own needs.
/// </summary>
public class CssReference
{
private string _p... |
ScalaJS.impls.scala_PartialFunction$class__orElse__Lscala_PartialFunction__Lscala_PartialFunction__Lscala_PartialFunction = (function($$this, that) {
return new ScalaJS.c.scala_PartialFunction$OrElse().init___Lscala_PartialFunction__Lscala_PartialFunction($$this, that)
});
ScalaJS.impls.scala_PartialFunction$class__a... |
public class SockServer {
/**
* @param args
*/
public static void main(String[] args) {
SockServerController server = new SockServerController(9679);
server.runServer();
}
}
|
./ffmpeg -i $1 -c:v yuv4 $1.yuv
|
require 'spec_helper'
module JustShellScripts
describe Connection do
end
end
|
function autonomous_start() {
autonomousStartTime = gameVideo.currentTime;
initializeEvents();
} |
DO $$
BEGIN
DROP FUNCTION f_event_occurrences();
DROP VIEW v_event_occurrences;
CREATE OR REPLACE VIEW v_event_occurrences AS (
SELECT id, name, country, city, address, created_at, created_by, type, description, dojo_id, position, public,
status, recurring_type, dates, ticket_approval, notify_... |
# This script runned on container start
# is will create database cluster (if none)
# and setup replication according to $REPLICA_MODE
# -------------------------------------------------------------------------------
# Create postgresql database cluster
dbinit() {
gosu postgres initdb \
&& sed -ri "s/^#(listen_ad... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="http://ajax.googleapis.com/ajax/libs... |
## bryanwtan.com
Check out humans.txt at:
http://www.bryanwtan.com/humans.txt
#### Node.js/io.js stuff
socket.io for client and server communication
Twilio integration for texting on page view. Scroll based to prevent reload activation
Facebook Graph API retrieves my photography page album metrics. I created nodes ... |
<?php
return array (
'id' => 'ght_chat_ver1',
'fallback' => 'generic_ght',
'capabilities' =>
array (
'mobile_browser' => 'MAUI Wap Browser',
'pointing_method' => 'touchscreen',
'mobile_browser_version' => '1.0',
'uaprof' => 'http://www.ghtmobile.com/ght/T500.xml',
'model_name' => 'Chat',
... |
<?php
class VMAlumno_Controller extends CI_Controller{
function index(){
$this->load->view('admin/VMA');
}
}
?> |
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
/**
* Demonstrate 2D array of GUI components. (This could all be done using a
* 1D a... |
// --------- This code has been automatically generated !!! Wed Jul 22 2015 13:15:44 GMT+0000 (UTC)
/**
* @module opcua.address_space.types
*/
var doDebug = false;
var assert = require("better-assert");
var util = require("util");
var _ = require("underscore");
var makeNodeId = require("../lib/datamodel/nodeid").mak... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _css = require('antd/lib/message/style/css');
var _message = require('antd/lib/message');
var _message2 = _interopRequireDefault(_message);
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; ... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created u... |
using System;
using System.Collections.Generic;
using System.IO;
using Verse.EncoderDescriptors.Tree;
namespace Verse.Schemas.Protobuf
{
internal class Writer : IWriter<WriterState, ProtobufValue>
{
public WriterState Start(Stream stream, ErrorEvent error)
{
throw new NotImplementedException();
... |
# -*- coding: utf-8 -*-
module Gtk
# message_detail_viewプラグインなどで使われている、ヘッダ部分のユーザ情報。
# コンストラクタにはUserではなくMessageなど、userを保持しているDivaを渡すことに注意。
# このウィジェットによって表示されるタイムスタンプをクリックすると、
# コンストラクタに渡されたModelのperma_linkを開くようになっている。
class DivaHeaderWidget < Gtk::EventBox
extend Memoist
def initialize(model, *args, ... |
(function () {
'use strict';
angular
.module("myApp.presents")
.factory("dataGiftService", dataGiftService);
function dataGiftService($mdToast, $mdDialog) {
var dataGiftService = {
notification: notification,
pleaseWaitDialog: pleaseWaitDialog
};
... |
<?php
namespace Kraken\Runtime\Supervision\Cmd;
use Dazzle\Channel\Channel;
use Dazzle\Channel\ChannelInterface;
use Dazzle\Channel\Extra\Request;
use Kraken\Runtime\Supervision\Solver;
use Kraken\Supervision\SolverInterface;
use Kraken\Runtime\RuntimeCommand;
use Error;
use Exception;
class CmdEscalate extends Solv... |
// Copyright (c) 2011-2013 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 "signverifymessagedialog.h"
#include "ui_signverifymessagedialog.h"
#include "addressbookpage.h"
#include "base58.h"... |
///////////////////////////////////////////////////////////////////////////
// Copyright © Esri. 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.ap... |
require 'bundler/setup'
module Bob
end
require_relative 'bob/config'
require_relative 'bob/engine'
config = Bob::Config.load
engine = Bob::Engine.new(config)
engine.run |
package jxdo.rjava;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.lang.reflect.Modifier;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import java.util.jar.JarEntry;
import java.util.jar.Ja... |
package com.ado.java.odata.pool;
import java.sql.Connection;
import java.sql.SQLException;
public interface Pool {
/**
* Make a new connection
*
* @throws SQLException
*/
Connection makeConnection() throws SQLException;
/**
* Gets a valid connection from the connection pool
... |
using UnityEngine;
public class DamageOnCollision : MonoBehaviour
{
public float damage = 1f;
public bool damageSelf = true;
void OnCollisionEnter2D(Collision2D collision)
{
var health = collision.gameObject.GetComponent<HealthProperty>();
if (health != null) {
health.Dam... |
module.exports = `
type SimpleBudgetDetail {
account_type: String,
account_name: String,
fund_name: String,
department_name: String,
division_name: String,
costcenter_name: String,
function_name: String,
charcode_name: String,
organization_name: String,
category_name: String,
budget_section_name: ... |
module.exports = client => {
console.log(`Reconnecting... [at ${new Date()}]`);
}; |
/**
* This class was created by <Vazkii>. It's distributed as
* part of the Botania Mod. Get the Source Code in github:
* https://github.com/Vazkii/Botania
*
* Botania is Open Source and distributed under the
* Botania License: http://botaniamod.net/license.php
*
* File Created @ [Feb 14, 2015, 3:28:54 PM (GM... |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="apple-touch-icon" sizes="180x180" href="assets/ico/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/ico/favicon-... |
ig.module(
'game.entities.abstract.friendly-unit'
).requires(
'game.entities.abstract.unit'
).defines(function () {
FriendlyUnit = Unit.extend({
// Nothing yet!
});
}); |
REM ×¢ÊÍ
@echo off
set ocd=%cd%
cd /d %~dp0
echo ##### Ìáʾ£º¶ÁÈ¡ÅäÖÃÎļþ #####
if exist ..\config.bat call ..\config.bat
if exist ..\..\config.bat call ..\..\config.bat
if exist ..\..\..\config.bat call ..\..\..\config.bat
if exist ..\..\..\..\config.bat call ..\..\..\..\config.bat
if exist ..\..\..\..\..\c... |
## From 1.x to 2.x
Configuration must be updated, edit `~/.config/explorer/config.yml` and add the following:
```
remove:
# 'mv' will move files to a trash directory
# 'rm' will delete files
# empty to disable deletion
method: 'mv' #default is to move
path: './trash'
archive:
path: './tmp'
upload:
path... |
/**
*
*/
package cn.sefa.test.combinator;
/**
* @author Lionel
*
*/
public class Result {
private String recognized ;
private String remaining;
private boolean succeeded ;
private Result(String recognized , String remaining , boolean succeeded){
this.recognized = recognized;
this.remaining = rema... |
<?php
/*
* This file is part of the Persian Framework.
*
* (c) Farhad Zandmoghadam <farhad.pd@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Core\MVC\Routing;
use Core\PF\Exception\RoutingException;
use Sym... |
CREATE TABLE [dbo].[hito](
[hitoid] [bigint] IDENTITY(1,1) NOT NULL,
[nhc] [bigint] NOT NULL,
[icu] [bigint] NOT NULL,
[facultativo] [nvarchar](255) NOT NULL,
[localizacion] [int] NOT NULL,
[hora_inicio] [datetime] NOT NULL,
[hora_fin] [datetime] NOT NULL,
[duracion] [int] NOT NULL,
[servicio] [nvarchar](50) N... |
class NullAcceptCreateColumnToDevices < ActiveRecord::Migration
def change
change_column :devices, :mac_address, :string, null: true, default: nil
change_column :devices, :device_name, :string, null: false
change_column :devices, :device_communication, :string, null: true, default: nil
end
e... |
/**
* Ajax函数
*/
// 创建一个XMLHttpRequest对象
var createXHR;
if (window.XMLHttpRequest) {
createXHR = function() {
return new XMLHttpRequest();
};
} else if (window.ActiveXObject) {
createXHR = function() {
return new ActiveXObject('Microsoft.XMLHTTP');
};
}
// 发起异步请求,默认为GET请求
function aja... |
<?php
namespace test\main\models;
/**
* @coversDefaultClass \main\models\Quotes
*/
class QuotesTest extends \test\helpers\cases\Model
{
protected $testedClass = '\main\models\Quotes';
protected $traitedMethods = ['deleteOnValues', 'insertAutoPrimary',
'selectAll'];
/**
... |
import { addTimer } from './timer/timer';
import { showProfile } from './profile/profile';
import { showHelp } from './help/help';
import { getAllUsers } from './timer/listUtil/getAllUsers';
import { isWorking } from './timer/listUtil/isWorking';
import { timerTimeout } from './timer/listUtil/timerTimeout';
import { r... |
-- Path of Building
--
-- Class: List Control
-- Basic list control.
--
-- This is an abstract base class; derived classes can supply these properties and methods to configure the list control:
-- .label [Adds a label above the top left corner]
-- .dragTargetList [List of controls that can receive drag events from th... |
/**
* Created by:homelan
* User: pijiu3302@outlook.com
* Date: 2017/7/31
* Time: 17:38
*
*/
import React from 'react';
import icons from '../utils/parseIcon';
import {connect} from 'react-redux';
import {lockPlayer} from '../store/action/actionindex';
class LockBar extends React.Component {
render() {
cons... |
package com.cgroups.gendata;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Random;
public class RandomEntry {
private ArrayList<String> words;
private ArrayList<Double> weights;
Random random = null;
private double total_weight;
... |
Copyright (c) 2014 Centril / Mazdak Farrokhzad <twingoow@gmail.com>
Copyright (c) 2013 Assemble
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 th... |
/*
* CompletionCheck.h
*
* Created on: 27/05/2011
* Author: vgil
*/
#ifndef COMPLETIONCHECK_H_
#define COMPLETIONCHECK_H_
#include "../RRTNode.h"
#include "RRTBaseAlgorithm.h"
#include "RRTMetric.h"
class CompletionCheck : public RRTBaseAlgorithm {
public:
CompletionCheck (RRTMetric* m = NUL... |
<h3>Dialogs</h3>
The most frequent dialogs are alert, confirm and prompt. In the case of an alert you just need to display a message to the user
and require no feedback besides user acknowledgement. Confirm dialog has similar purpose, but expects from the user a response
by accepting or declining the message. Prompt wa... |
package bj174x.bj1740;
import java.io.PrintWriter;
import java.util.Scanner;
/**
* Created by jsong on 30/03/2017.
*
* @hackerrank https://www.hackerrank.com/jsong00505
* @backjoon https://www.acmicpc.net/user/jsong00505
* @github https://github.com/jsong00505
* @linkedin https://www.linkedin.com/in/junesongsko... |
/*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd.
JUCE is an open source library subject to commercial or open-source
licensing.
By using JUCE, you agree to the terms of both the JUCE 5 End-User Lic... |
Grules is a rule engine for data preprocessing. The rules are specified via internal Groovy DSL, which has a concise and simple syntax. For example:
```java
// isEmail is a Groovy/Java method that takes an email value as its parameter
email isEmail ["Invalid email"]
// invalidLoginMessage and dupLoginMessage are Stri... |
<?php
use yii\db\Schema;
use yii\db\Migration;
class m140924_133309_dropcols extends Migration
{
public function up()
{
$this->dropColumn('address', 'otherStreet');
$this->dropColumn('address', 'otherCity');
$this->dropColumn('address', 'otherZip');
}
public function down()
{
... |
<?php
class ChartPage extends RunnerPage
{
/**
* The name of the dashboard the List is displayed on
* It's set up correctly in dash mode only
*/
public $dashElementName = "";
/**
* The corresponding dashboard name
* It's set up correctly in dash mode only
*/
public $dashTName = "";
/**
* show m... |
<?php
namespace ByteNoodles\Bundle\Symfony2ORMBundle\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 {@... |
# coding=utf-8
"""
Collect the elasticsearch stats for the local node
#### Dependencies
* urlib2
"""
import urllib2
import re
try:
import json
json # workaround for pyflakes issue #13
except ImportError:
import simplejson as json
import diamond.collector
RE_LOGSTASH_INDEX = re.compile('^(.*)-\d\d\... |
/*
* Copyright (c) 1995 The University of Utah and
* the Computer Systems Laboratory at the University of Utah (CSL).
* All rights reserved.
*
* Permission to use, copy, modify and distribute this software is hereby
* granted provided that (1) source code retains these copyright, permission,
* and disclaimer no... |
#!/bin/bash
# bomb on any error
set -e
# change to working directory
root="/opt/netflix-proxy"
pushd $root
# obtain the interface with the default gateway say
int=$(ip route | grep default | awk '{print $5}')
# obtain IP address of the Internet facing interface
ipaddr=$(ip addr show dev $int | grep inet | grep -v i... |
<?php
function removeSpecialChars($suaString) {
$string = preg_replace( '/[`^~\'"]/', null, iconv( 'UTF-8', 'ASCII//TRANSLIT', $suaString ) );
$string = htmlspecialchars($string);
return $string;
}
|
var express = require('express');
var app = module.exports = express();
var api = require('lib/db-api');
var config = require('lib/config');
var path = require('path');
var url = require('url');
var resolve = path.resolve;
var strip = require('strip');
var log = require('debug')('democracyos:facebook-card');
app.get('... |
import Html from "./Html";
import { YatinSelectMin, YatinSelectMax } from "../parts/YatinSelect";
export default class YatinSection extends Html {
constructor(min="", max="") {
super();
var $yatinSection = $(`
<section class="yatin-section">
<h2>¥家賃</h2>
<div class="center"></div>
... |
# frozen_string_literal: true
require "#{Rails.root}/lib/analytics/histogram_plotter"
class OresPlotController < ApplicationController
def course_plot
@course = Course.find_by slug: params[:id]
@ores_changes_plot = HistogramPlotter.plot(course: @course, opts: { simple: true })
render json: { plot_path: ... |
import java.io.IOException;
import java.io.FileInputStream;
public class UsingFileInputStream{
public static void main(String[] main) throws IOException{
FileInputStream fis=new FileInputStream("file.txt");
int i;
while((i=fis.read())!=-1){
System.out.print((char)i);
}
fis.close();
}
} |
# CleoDB
C# Language Entities Oriented Database
___
## Nuget
`Install-Package CleoDB`
## What is CleoDB?
CleoDB is a data storage framework written entirely in C#, for C#. It is optimized for easily storing and restoring your POCOs (and more).
In its current state, CleoDB is in no way a competitor for professional d... |
//
// AMSlideMenuLeftMenuSegue.h
// AMSlideMenu
//
// The MIT License (MIT)
//
// Created by : arturdev
// Copyright (c) 2014 SocialObjects Software. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Sof... |
# defrredSupport
|
import { Fun, Optional } from '@ephox/katamari';
import { PlatformDetection } from '@ephox/sand';
import { fromRawEvent } from '../../impl/FilteredEvent';
import { EventHandler, EventUnbinder } from '../events/Types';
import { SugarElement } from '../node/SugarElement';
import * as Scroll from './Scroll';
export inte... |
<html><body>
<h4>Windows 10 x64 (18362.239)</h4><br>
<h2>_EXCEPTION_RECORD</h2>
<font face="arial"> +0x000 ExceptionCode : Int4B<br>
+0x004 ExceptionFlags : Uint4B<br>
+0x008 ExceptionRecord : Ptr64 <a href="./_EXCEPTION_RECORD.html">_EXCEPTION_RECORD</a><br>
+0x010 ExceptionAddress : Ptr64 Void<br>
... |
Namespace Security.SystemOptions_Applications
Public Class ApplicationDrivers
Inherits SecurityItemBase
Public Sub New()
_ConceptItemName = "Application Drivers"
_ConceptName = "System Options_Applications"
_Description = "Allow access to 'Application Driver's ... |
/*!
* \file force-atlas-2.c
* Sequential implementation for the Force Atlas 2 spring embedding algorithm.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <float.h>
#include <limits.h>
#include <assert.h>
#include "force-atlas-2.h"
#include "math.h"
#include "timer.h"
#include "vector.h"
#incl... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$this->load->view("/usefulScreens/header");
$this->load->view("/usefulScreens/menu");
$this->load->view("/usefulScreens/body");
$this->load->view("/usefulScreens/footer");
//if(!empty($create))
//$this->load->view("/telas/" . $create);
|
//go:build go1.16
// +build go1.16
// 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.
// Changes may cause incorrect behavior and will be lost if the cod... |
<?php
declare(strict_types = 1);
namespace Innmind\Neo4j\ONM\CommandBus;
use Innmind\Neo4j\ONM\Manager;
use Innmind\CommandBus\CommandBus;
final class Flush implements CommandBus
{
private CommandBus $handle;
private Manager $manager;
public function __construct(CommandBus $handle, Manager $manager)
... |
require 'active_support/security_utils'
require 'vendor/box'
require 'jeweler/client'
require 'jeweler/connection'
require 'jeweler/writeable'
require 'jeweler/resource'
require 'jeweler/singleton_resource'
require 'jeweler/finders'
require 'jeweler/collection'
require 'jeweler/errors'
require 'keyline/errors'
requir... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.