answer
stringlengths
15
1.25M
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>coqffi: 21 s</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesh...
// defines.h #ifndef _defines_h #define _defines_h // Rendering flags #define SHADOW_MAP_SIZE 1024 #define <API key> #define <API key> // Force hardware acceleration #define RENDER_PIPELINE #define RENDER_GPU #ifdef RENDER_PIPELINE //#define RENDER_CORE_32 #endif //#define GL_VALIDATE // Render using vertex array ...
<?php class M_login extends CI_Model{ public function login_authen($username, $password){ $this->db->select('*'); $this->db->where('username', $username); $this->db->where('password', $password); $this->db->from('user'); $query = $this->db->get(); if ($query->num_rows() =...
#include <map> #include <assert.h> #include <exception> #include "pf/base/string.h" #include "pf/file/database.h" namespace pf_file { Database::Database(uint32_t id) { __ENTER_FUNCTION id_ = id; string_buffer_ = NULL; index_column_ = -1; record_number_ = 0; __LEAVE_FUNCTION } Database::~Database() {...
(function() { var lastTime = 0; var vendors = ['ms', 'moz', 'webkit', 'o']; for(var x = 0; x < vendors.length && !window.<API key>; ++x) { window.<API key> = window[vendors[x]+'<API key>']; window.<API key> = window[vendors[x]+'<API key>'] || window[vendors[x]+'<API key>']; } ...
package query import ( "context" "errors" "fmt" "os" "runtime/debug" "strconv" "sync" "sync/atomic" "time" "github.com/influxdata/influxdb/models" "github.com/influxdata/influxql" "go.uber.org/zap" ) var ( // ErrInvalidQuery is returned when executing an unknown query...
using System.Data.Entity; using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; namespace TwitterBot.Models { public class ApplicationUser : IdentityUser { public async Task<ClaimsIdentity> <API key>(UserManager<Appl...
// Looking at closures $(document).ready(function() { closureTest(); function closureTest() { //console.log } });
require 'spec_helper' describe ActionView::Helpers::FormHelper do before do helper.form_for(FakeModel.new, :url => "myurl", :builder => Manageable::Helpers::FormBuilder) do |f| @text_field = f.text_field(:name) @password_field = f.password_field(:name) @telephone_field = f.telephone_field(:name)...
<?php /* @Debug/Profiler/dump.html.twig */ class <API key> extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); // line 1 $this->parent = $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig", "@Debug/Profiler/dump.html.twig", 1);...
FROM openjdk:8-jre-alpine LABEL maintainer="Billy Yuan <billy112487983@gmail.com>" ENV VERTICLE_FILE <API key>.0-SNAPSHOT-fat.jar ENV HTTP_SERVER_CONFIG application-conf.json # Set the location of the verticles ENV VERTICLE_HOME /usr/verticles EXPOSE 8080 # Copy your fat jar to the container COPY build/libs/$VERTICLE_F...
using System; using System.Collections.Generic; using System.Data.Entity; using System.IO; using System.Linq; using System.Threading.Tasks; using Lucca.Upgrading.Abstractions; using Lucca.Upgrading.Discovery; using Lucca.Upgrading.Strategy; using Lucca.Upgrading.Test.EfDb; using Lucca.Upgrading.Test.Fakes; using Xunit;...
markdown ===== simple markdown editor build $ cd markdown $ ./httpd.py `pwd`/app use * <http://localhost:8080> * update`index.html`mhtml * mdadd * edit * ghos<https://raw.githubusercontent.com/hanxi/markdown/master/app/md/uploadimg.md> todo * * * * other copyright [Markdown](http://daringfireball.net/projects/mark...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>dblib: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel...
package armored.g12matrickapp.Activities; import android.content.ComponentName; import android.content.DialogInterface; import android.content.Intent; import android.content.pm.ResolveInfo; import android.graphics.Bitmap; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.os.Handler; im...
--Write a SQL statement to create a view that displays the users from the Users --table that have been in the system today. Test if the view works correctly. --Please use the same database as for the previous exercises USE TelerikAcademy GO CREATE VIEW UsersActiveToday AS SELECT * FROM Users WHERE CONVERT(DATE,LastLogi...
using System; using System.Collections.Generic; using System.Linq; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using Microsoft.Owin; using Microsoft.Owin.Security.Cookies; using Microsoft.Owin.Security.Google; using Microsoft.Owin.Security.OAuth; using Owin; using APM.WebAPI.Provid...
<!DOCTYPE html> <!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" dir="ltr"> <!--<![endif]--> <!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open&id=3 (optional: ?Open&page=filename.html&id=x) --> <!-- Created: ; Product Code...
//! @author Wang Weixu 13114633, Xiufeng Zhang 06197620, Boxi Zhang, 12238967 //! @date 12.12.2014 //! @brief This code implemented Big Number using linked list as underlying //! data structure. //! Assignment 4, 159.201,s3,2014 #include <iostream> #include <fstream> #include <string> namespace a...
require 'spec_helper' describe Graphdb do describe 'configuration' do context 'default configuration' do subject{ Graphdb::Configuration.new } it do expect(subject.extensions.empty?).to be true expect(subject.neo4j_server).to eq('http://localhost:7474') end end ...
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>UrlService | @uirouter/react</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="styles...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using EspaceClient.FrontOffice.Infrastructure.Services.Translation; using EspaceClient.FrontOffice.Web.ViewModels.Pages.Module.StaticModel; using EspaceClient.FrontOffice.Domaine.Results; namespace EspaceClient.FrontOffice.Web.ViewMod...
import re from datetime import datetime from flask import current_app as app from flask_jwt import current_identity from flask_restplus import Namespace, Resource, fields, reqparse from sqlalchemy.exc import IntegrityError from packr.models import Message api = Namespace('contact', description='Operatio...
# ArdR120 Arduino project to allow a Strand R120 remote to work with Eos over TCP using the ESP8266 chip - developement done using an Adafruit Huzzah board with a Max232 chip to shift the serial data to RS232 levels - PCB design is in the PCB folder Specifically targetted to work with the Stage Electrics version of the...
require File.expand_path('../boot', __FILE__) require 'rails/all' # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) module FeatureTracker class Application < Rails::Application
package panels; import javax.swing.JPanel; import javax.swing.JTextArea; public class EditPanel extends JPanel { JTextArea srcEdit; public EditPanel() { srcEdit = new JTextArea(20, 30); String src = ".data\n" + "a: .word 1, 2, 3\n"; srcEdit.setText(src); add(srcEd...
// # Ghost Configuration // Setup your Ghost install for various environments var path = require('path'), config; config = { // ### Development **(default)** development: { // The url to use when providing links to the site, E.g. in RSS and email. url: 'http://objectiveclem.local', /...
class Projects::UsersController < <API key> include StaffPlan::SharedFinderMethods before_filter :find_target_user before_filter :find_project, :only => [:update, :destroy] def update if @project.users << @target_user render(json: { users: @project.users.map { |u| UserDecorator.decorate(u).pro...
<?php return array ( 'id' => '<API key>', 'fallback' => '<API key>', 'capabilities' => array ( 'max_data_rate' => '40', ), );
<?php namespace TodoMove\Intercessor; use TodoMove\Intercessor\Traits\Metable; class Folder { use \TodoMove\Intercessor\Traits\Identifiable, Metable; protected $name; /** @var Folder */ protected $parent = null; /** @var Folder[] */ protected $children = []; /** @var Project[] */ protect...
#include <Rcpp.h> using namespace Rcpp; // underflow prevention: if the argument to log is so small // we get -Inf, we just give back 0. inline double xlogy(double x, double y) { double lg = log(y); return (lg == R_NegInf) ? 0 : x * lg; } // [[Rcpp::export]] double jsdiv_v(NumericVector P, NumericVector Q) { ...
<?php namespace Hail\Debugger; use Psr\Http\Message\ResponseInterface; use Psr\Log\LoggerInterface; use Psr\Log\LoggerTrait; use Psr\Log\LogLevel; class ChromeLogger implements LoggerInterface { use LoggerTrait; protected const VERSION = '4.1.0'; protected const COLUMN_LOG = 'log'; protected const COLUM...
#ifndef CUSTOMWINDOW_H #define CUSTOMWINDOW_H #include "DWindow.h" #include <TextControl.h> class CustomWindow : public DWindow { public: CustomWindow(void); void MessageReceived(BMessage *msg); private: void MakeNumberBox(BTextControl *box); void CheckValues(void); BTextControl ...
+++ date = "2016-03-13T13:12:12Z" title = "Pandas merge function" tags = ['pandas', 'data-verbs'] +++ [merge](http://pandas.pydata.org/pandas-docs/version/0.17.1/generated/pandas.DataFrame.merge.html) is a lot like joining in SQL. It lets you combine together different datasets. The [full documentation](http://pandas.p...
gets;w=ARGF.read.split.sort;c=s="";w.map{|x|w.index(y=x.reverse)&&x<y&&s+=x;x==y&&c=x};$><<s+c*w.count(c)+s.reverse
#include "FreeRTOSConfig.h" #define portCONTEXT_SIZE 132 #define <API key> 124 #define <API key> 128 .macro portSAVE_CONTEXT /* Make room for the context. First save the current status so it can be manipulated, and the cause and EPC registers so their original values are captured. */ mfc0 k...
<?php class HeaderRequest{ public $id_user = null; public $token = null; public $businessRequest = null; } ?>
require 'httparty' module DeepThought module Notifier def self.notify(user, message) begin HTTParty.post("#{user.notification_url}", :body => {:message => message}.to_json, :headers => {'Content-Type' => 'application/json'}) rescue 'poop' end end end end
<?php namespace spec\Money\Provider; use Money\Provider; use Money\Currency; use Money\Exception\UnsupportedCurrency; use PhpSpec\ObjectBehavior; class BatchSpec extends ObjectBehavior { function it_is_initializable() { $this->shouldHaveType('Money\Provider\Batch'); $this->shouldHaveType('Money\...
using Myxini.Recognition.Raw; using System; using System.Collections.Generic; namespace Myxini.Recognition.Image { public class CellDescriptor { const int CELL_SIZE = 8; private class Gradient { public static readonly int BIN = 9; public static readonly double ORI...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>cours-de-coq: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min....
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>multiplier: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.cs...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>minic: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" re...
using System; namespace Embark.Storage { internal sealed class DocumentKeySource { internal DocumentKeySource(long lastKey) { this.lastKey = lastKey; } long lastKey = 0; object syncRoot = new object(); public long GetNewKey() { var ...
$stream = file_get_contents('BVICLAST.txt'); $avgp = "13.90"; $high = "13.90"; $low = "13.75"; echo "&L=".$stream."&N=BVIC&"; $temp = file_get_contents("BVICTEMP.txt", "r"); if ($stream != $temp ) { $mhigh = ($avgp + $high)/2; $mlow = ($avgp + $low)/2; $llow = ($low - (($avgp - $low)/2)); $hhigh = ($high + (($high - ...
import { Controller } from "./controller.js"; import { loadShaders, samples } from "./samples.js"; import { View } from "./view.js"; export function init() { window.onload = () => doInit(); } function doInit() { const controller = new Controller(); const view = new View("canvas-gl", samples, { level...
// UIDevice+WTRequestCenter.h // WTRequestCenter // install @import UIKit; @interface UIDevice (WTRequestCenter) //UUID /*! Keychain */ +(NSString*)WTUUID; +(CGFloat)systemVersion; +(NSString *)getDeviceType; @end
import { FETCH_AUTHOR, UPDATE_AUTHOR } from 'shared/constants/actions'; const INITIAL_STATE = { author: {}, errorMessage: '' }; export default function (state = INITIAL_STATE, action) { switch (action.type) { case FETCH_AUTHOR.SUCCESS: // author -> { id, email, name, image, description, introduction } ...
'use strict' // Load requirements const slack = require('slack') const path = require('path') // Load utilities const i18n = require('../locale') const logger = require('../log') // Data directory const dataDir = path.join(__dirname, '../../../data/') // User tracking and handling module.exports = { // User flags to ...
Function <API key> { [CmdletBinding()] [OutputType([hashtable])] Param ( [Parameter(Mandatory)] [Microsoft.PowerShell.<API key>.<API key>()] [hashtable] $ConfigurationData ) return $ConfigurationData }
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using RobsonROX.Util.Collections; namespace RobsonROX.Util.Extensions { // ReSharper disable once InconsistentNaming // ReSharper disable <API key> <summary> Métodos de extensão para IEnumerable </summary> ...
# This recipe configures the authentication type for the TeamCity server # Prepare to restart the service if changes are instituted service "TeamCity" do action :nothing supports :status => true, :start => true, :stop => true, :restart => true end # Set authentication configuration and restart the service auth_type...
# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # all copies or substantial po...
#include <stdio.h> #include "engine/game.c" int main(int argc, char** argv) { printf("hello world\n"); return 0; }
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http: -- Host: 127.0.0.1 -- Generation Time: Oct 24, 2015 at 04:41 AM SET SQL_MODE = "<API key>"; SET time_zone = "+00:00"; /*!40101 SET @<API key>=@@<API key> */; /*!40101 SET @<API key>=@@<API key> */; /*!40101 SET @<API key>=@@<API key> */; /*!40101 SET NAMES utf8 */; -- D...
// CoronaApplication.java // TemplateApp package com.wonhada.EnterpriseExample; public class CoronaApplication extends android.app.Application { /** Called when your application has started. */ @Override public void onCreate() { // Set up a Corona runtime listener used to add custom APIs to Lua. ...
package iternada import ( "errors" ) var ( errNilReceiver = errors.New("Nil Receiver") )
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rspec' require 'asn_translate' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support*.rb"].each {|f| require f...
/* * Adjust display of page based on search results */ function findSearchResults(data, dataLength) { $("#duplicate_box").remove(); var userString = $("#searchForm #searchField").val(); var minSearchLength = 1; if (userString.length >= minSearchLength) { //this calls search() inside itself ...
<!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"> <title>Julia Package Listing - Testing Information</title> <style> /* -- Mix of julialang.org, Bootstrap 3...
@extends('layouts.app') @section('title') Edit Ad @endsection @section('content') <div class="row"> @include('ads._nav', ['_active' => null]) <div class="col-9"> <h2>Edit @null($ad) "{{ $ad->name }}" @else New @endnull</h2> <div class="row mt-4"> <div clas...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Coq bench</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet...
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /** * @var yii\web\View $this * @var amnah\yii2\user\Module $module * @var amnah\yii2\user\models\User $user * @var amnah\yii2\user\models\Profile $profile * @var amnah\yii2\user\models\Role $role * @var yii\widgets\ActiveForm $form */ ?> <div class="user-f...
import { Component } from '@angular/core'; import { VideoPlayerService, VideoPlayerSignals } from '../video-player.service'; @Component({ moduleId: module.id, selector: '<API key>', templateUrl: 'video-controls-ws.component.html', styleUrls: ['video-controls-ws.component.css'] }) export class <API key> { cons...
'use strict'; /** * Module dependencies. */ import * as fs from 'fs'; import * as http from 'http'; import * as https from 'https'; import * as express from 'express'; import * as morgan from 'morgan'; import * as bodyParser from 'body-parser'; import * as session from 'express-session'; import * as compress from 'co...
# kontent > A lightweight CMS based on Vue.js ## Features * Live Markdown Editor * Built-in User Authentication * File-based Article CRUD * Simple but fast article listing ## Demo Visit a live demo [here](http://kontent.za-pt.org). ## Quick Start You need NodeJS 6+, npm or yarn. 1 Clone repo bash git clone https://git...
# <API key> ## Author Dillon Downey ## Description Portland Community College Computer Concepts II course portfolio website. - Mobile First: Progressive Enhancement vs. Graceful Degredation - LESS with parametric mixins ## Known Bug Text editor Brackets.io has a bug where it creates a separate file for each LESS file a...
package hu.progtech.cd2t100.asm; import java.lang.reflect.Type; import com.google.gson.InstanceCreator; class <API key> implements InstanceCreator<Location> { public Location createInstance(Type type) { return new Location(0, 0); } }
#include "deps.h" // Not implemented: // SDL_ConvertSurface - need PixelFormat implementation // <API key> - need to think about memory management? clone? keep reference? // <API key> - ditto // SDL_LoadBMP_RW // SDL_SaveBMP_RW // <API key> - need palette implementation namespace sdl2_bindings { using namespace v8; MET...
layout: post date: '2015-10-10' title: "Halter Alfred Sung by Dessy Bridesmaids Dress D607" category: Halter tags: [Halter] Halter Alfred Sung by Dessy Bridesmaids Dress D607 Just **$196.99** &nbsp; <a href="https: <!-- break --><a href="https: Buy it: [https:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>My Python Project</title> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i%7CSource+Code+Pro:400,400i,600" /> <link rel="stylesheet" href="m-dark+documentation.compiled.css" /> <meta n...
<?php namespace App; class App { public $title = 'Mon super site'; private $db_instance; private static $_instance; public static function getInstance() { if (is_null(self::$_instance)) { self::$_instance = new App(); } return self::$_instance; } public st...
# <API key>: true require 'test_helper' class <API key> < ActiveSupport::TestCase # test "the truth" do # assert true # end end
<!DOCTYPE html> <html> <head> <title>Энтони Тистудио</title> <meta charset="utf-8" /> <link rel="stylesheet" media="all" href="/styles/style.css" type="text/css" /> </head> <body> <a name="top"></a> <div class="at-wrap0"> <div class="at-left"> ...
using System; using System.Collections.Generic; using System.Linq; using System.IO; public class OddLInes { static void Main() { string[] textLines = File.ReadAllLines("input.txt"); List<string> oddLines = new List<string>(); for (int i = 0; i < textLines.Length; i++) { ...
<!doctype html> <html class="no-js" lang=""> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>Random Design Co</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="apple-touch-icon" href="apple-...
Rickshaw.namespace('Rickshaw.Graph.Axis.Y.Scaled'); Rickshaw.Graph.Axis.Y.Scaled = Rickshaw.Class.create( Rickshaw.Graph.Axis.Y, { initialize: function($super, args) { if (typeof(args.scale) === 'undefined') { throw new Error('Scaled requires scale'); } this.scale = args.scale; if (typeof(args.g...
<div ng-controller="PaneController"> <div class="modal-header"> <h3 class="modal-title">Add person</h3> </div> <div class="modal-body" ng-controller="PersonController as personCtrl"> <div> <div> <form ng-model="poc"> ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>User agent detail - Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT 5.1) Opera 7.0 [en]</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css"> <link href="ht...
//Here is all the code that builds the list of objects on the right-hand //side of the Labelme tool. //The styles for this tools are defined inside: //annotationTools/css/object_list.css var IsHidingAllPolygons = false; var ProgressChecking = false; //var IsHidingAllFilled = true; var ListOffSet = 0; //This function cr...
<?php namespace WebLoader\Nette; use Nette\DI\Container; use Nette\Http\IRequest; use WebLoader\Compiler; class LoaderFactory { /** @;var IRequest */ private $httpRequest; /** @var Container */ private $serviceLocator; /** @var array */ private $tempPaths; /** * @param array $tempPaths ...
// CoreTweet - A .NET Twitter Library supporting Twitter API 1.1 // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // copies of the Software, and to permit persons to whom the Software is // furnished to do so...
define([ "knockout", // mappoint needs to be here first for addEventListener "../modules/mappoint", ], function (ko) { // create result object var result = { cityname : ko.observable(''), citydata : ko.observableArray([]) }; // subscribe to custom event window.addEventLis...
require 'spec_helper' describe Scraper do describe "#todos" do it "should return an array of Todo objects given a file" do path = File.dirname(__FILE__) + '/example' todos = Scraper.todos(path) todos.length.should == 2 end end end
# Using a Condition A condition is simple enough, it has some values of which are met from the parent call. the `Condition()` has three base values. + Item to watch first arg is the item to monitor on the network. This is a name or a node; something to monitor. python c = Condition('TestNode') c.watch 'TestNode' + It...
import path from 'path'; import os from 'os'; import { assert, test } from 'yeoman-generator'; describe('sails-rest-api:logger', () => { describe('Should properly scaffold default configuration', () => { before(done => test.run(path.join(__dirname, '../../src/logger')).on('end', done)); it('Should properly cr...
class Solution { public: int minMoves(vector<int>& nums) { sort(nums.begin(), nums.end()); int ans = 0; for(int i = 1; i < nums.size(); i++){ ans += nums[i] - nums[0]; } return ans; } };
#include "base/common.h" // intercept memory allocation failures and force a stack trace struct InitNewHandler { static void NewHandler () { cout << "\n*** Memory allocation Failed! About to segfault ***" << endl; // Cause a segfault. void* ptr = nullptr; // Create a var to get around enabled compiler war...
angular.module( 'remote.xbmc-service' , [] ) .service( 'XBMCService', function( $log,$http,Storage ){ var XBMC = this, settings = (new Storage("settings")).get(); url = 'http://' + settings.ip + '/', command = {id: 1, jsonrpc: "2.0" }; function cmd(){ return _.cloneDeep( command ...
#include "Calc.hpp" #include <cmath> #define PI 3.14159265 float Calc::radToDeg(float rad) { return rad * ( 180.f / PI); } float Calc::degToRad(float deg) { return deg * (PI / 180.f); } /* * Rotation around origin: * rotation matrix P * ( x' ) = ( cos a -sin a ) * ( x ) = cos a * x - sin a * ...
oc-scripts ======= OpenComputers Scripts! Mostly has stuff in it useful on my server. Probably useful elsewhere, though. MIT licenced! Do what you want, but if my code blows up your server it's not my fault! (although I do my best to avoid server-blowy-uppy)
# <API key>: true # Migration to create the `schedules` table used by Schedulable class CreateSchedules < ActiveRecord::Migration[5.1] def self.up create_table :schedules do |t| t.references :schedulable, polymorphic: true t.date :date t.time :time t.string :rule t.string :interval ...
import Ember from "ember"; import { module, test } from 'qunit'; import startApp from '../helpers/start-app'; import { authenticateSession } from 'code-corps-ember/tests/helpers/ember-simple-auth'; import indexPage from '../pages/index'; let application; module('Acceptance: Logout', { beforeEach: function() { app...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NXDO.RJava.Attributes { <summary> java </summary> [AttributeUsage(AttributeTargets.Interface, AllowMultiple = false, Inherited = true)] public class JInterfaceAttribute : JClassAttribute { <s...
// SJCheckButton.h // vesta #import <UIKit/UIKit.h> @interface SJCheckButton : UIButton @property (nonatomic, getter = isEmphasized) BOOL emphasized; @end
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>gappa: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" re...
<!DOCTYPE html> <html lang="de"> <head> <title>Feedback 5 – WPF Digitale Kommunikation – Medieninformatik am Campus Gummersbach</title> <!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif] <meta name="viewport" content="width=device-width, initia...
<?php namespace Site\MainBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Gedmo\Mapping\Annotation as Gedmo; use Symfony\Component\Validator\Constraints as Assert; /** * Site\MainBundle\Entity\ModuleMap * * @ORM\Table(name="module_map") * @ORM\Entity(repositoryClass="Site\MainBundle\Entity\Repository\ModuleMapRe...
"use strict"; Cu.import("resource://gre/modules/Services.jsm"); const TEST_DATA = "ftp://ftp.mozqa.com/"; var setupModule = function(aModule) { aModule.controller = mozmill.<API key>(); } var testNavigateFTP = function () { // opens the mozilla.org ftp page then navigates through a couple levels. controller.open(...
var data = {videos-content: {}}