answer stringlengths 15 1.25M |
|---|
/**
* Interaction for the tags module
*
* @author Tijs Verkoyen <tijs@sumocoders.be>
*/
jsBackend.tags =
{
// init, something like a constructor
init: function()
{
$dataGridTag = $('.jsDataGrid td.tag');
if($dataGridTag.length > 0) $dataGridTag.inlineTextEdit({ params: { fork: { actio... |
/* global WebFont */
(function () {
'use strict';
function FontLoaderFactory () {
return {
setFonts : function () {
WebFont.load({
custom: {
families: [ 'FontAwesome','Ubuntu','Oxygen','Open Sans' ],
urls: [ '/fonts/base.css']
}
});
}
}... |
module.exports = handler
var debug = require('../debug').server
var fs = require('fs')
function handler (err, req, res, next) {
debug('Error page because of ' + err.message)
var ldp = req.app.locals.ldp
// If the user specifies this function
// then, they can customize the error programmatically
if (ldp.error... |
package redis.clients.jedis.util;
import java.io.FilterOutputStream;
import java.io.IOException;
import java.io.OutputStream;
/**
* The class implements a buffered output stream without synchronization There are also special
* operations like in-place string encoding. This stream fully ignore mark/reset and should no... |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- sorter.cpp -->
<title>Sorter QML Type | <API key></title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="sidebar"... |
#include "stdafx.h"
#include "SGD_AudioManager.h"
// Uses assert for debug breaks
#include <cassert>
// Uses OutputDebugString for debug text
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <cstring>
// Uses std::multimap for storing voices
#include <map>
// Uses DirectInput to solve random memory-leak detect... |
<?php
def('pTABS', '');
def('REQUEST_ID', 'tp');
class TabbedPane
{
static $lasKeyIndex = 0;
public $id;
public $label;
public $file;
public $keyIndex;
private $className;
public function __construct($id,$label,$file=null,$keyIndex=null)
{
$this->id = $id;
... |
package cpup.mc.computers.content.network.impl.network
import scala.reflect.runtime.{universe => ru}
import cpup.mc.computers.CPupComputers
import cpup.mc.computers.content.network.impl
import cpup.mc.computers.content.network.impl.{Bus, Network, Node}
class NetworkBus(val network: Network) extends Bus {
override d... |
#include "base/testing.h"
#include <iostream>
GTEST_API_ int main(int argc, char** argv) {
std::cout << "Running main() from testing_main.cc\n";
InitTest(&argc, &argv);
return RUN_ALL_TESTS();
} |
package Eldhelm::Server::Logger;
use strict;
use threads;
use threads::shared;
use Data::Dumper;
use Time::HiRes qw(usleep);
use Date::Format;
use Carp;
use base qw(Eldhelm::Server::Child);
sub create {
my (%args) = @_;
Eldhelm::Server::Logger->new(%args);
}
sub new {
my ($class, %args) = @_;
my $self =... |
const DateTime = Jymfony.Component.DateTime.DateTime;
const DateTimeZone = Jymfony.Component.DateTime.DateTimeZone;
const TimeSpan = Jymfony.Component.DateTime.TimeSpanInterface;
const { expect } = require('chai');
describe('[DateTime] DateTime', function () {
it('should accept string on construction', () => {
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace abbTools
{
static class Program
{
<summary>
The main entry point for the application.
</summary>
[STAThread]
static void Main()
{... |
# Irbtools (More) Changelog
## 2.5.0
* Bump binding_of_caller & core_docs for Ruby 3.0
## 2.4.1
* Loosen Ruby dependency to allow Ruby 3.0
## 2.4.0
* Bump looksee & core_docs for Ruby 2.7
## 2.3.1
* Loosen irbrtools-more dependency to irbtools (allow 3.x)
## 2.3.0
* Remove dependency to did_you_mean, since it is now a ... |
class <API key> < ActiveRecord::Base
include Invitable
before_create :generate_token
belongs_to :event
<API key> :email, scope: :event
def create_participant(person)
event.participants.create(person: person, role: role)
end
private
def generate_token
self.token = Digest::SHA1.hexdigest(Time.now.... |
<div class="card">
<div class="card-image waves-effect waves-block waves-light">
<% if (image) { %>
<img class="activator" src="<%= image %>">
<% if (mode == 'mapmaker' && _.contains(objectType, 'kaart')) { %>
<div class="add-image-container">
<a href="#" class="add-image icon-plus" ... |
package com.imrenagi.service_auth.service.security;
import com.imrenagi.service_auth.AuthApplication;
import com.imrenagi.service_auth.domain.User;
import com.imrenagi.service_auth.repository.UserRepository;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;... |
package net.daw.bean;
import com.google.gson.annotations.Expose;
/**
*
* @author rafa
*/
public class Element implements IElement {
@Expose
private String tag;
// @Expose
// private String name;
@Expose
private String id;
@Expose
private String clase;
@Override
public String get... |
package org.vitrivr.cineast.api.rest.handlers.actions.metadata;
import io.javalin.http.Context;
import io.javalin.plugin.openapi.dsl.OpenApiBuilder;
import io.javalin.plugin.openapi.dsl.<API key>;
import java.util.Map;
import org.vitrivr.cineast.api.messages.result.<API key>;
import org.vitrivr.cineast.api.rest.OpenApi... |
using System.Web.Http;
using ProductService.Filters;
namespace ProductService
{
public class Config
{
//#if !DEBUG
// //static string Service_Url = "192.168.99.100:5004";
// static string Service_Url = "217.78.97.197:5004";
//#else
// static string Service_Url = "localhost:5004";
//#endif
... |
require 'fileutils'
module TwitterSms
class Logger
def initialize(filename,log_size=5)
@log_size=log_size
@raw_filename = filename
@file = File.new(filename, "a") # 2x check mode
write_intro
end
def log(message)
@file.puts("#{Time.now.strftime("(%b %d - %H:%M:%S)")} #{message... |
using System;
using System.Data;
using Signum.Utilities;
using Signum.Engine.Maps;
using System.IO;
using System.Data.Common;
using System.Linq.Expressions;
using Signum.Entities;
using Signum.Utilities.Reflection;
using System.Reflection;
using System.Threading.Tasks;
using System.Threading;
using System.Data.SqlClien... |
<?php
declare(strict_types=1);
namespace Fc2blog\Model;
class Validate
{
/**
*
* @param $value
* @param bool $isNeed true/false
* @return bool|string True is valid, string is some error message.
*/
public static function required($value, bool $isNeed)
{
if ($value == null ||... |
module.exports = function () {
var modules = [];
var creeps = Game.creeps;
var spawn = Game.spawns.Spawn1;
var score = spawn ? spawn.room.survivalInfo.score : 0;
var minions = {
total: 0,
build: 0,
carry: 0,
harvest: 0,
guard: 0,
medic: 0,
runn... |
using System;
using System.IO;
using System.Text;
namespace VirtualObjects.Core
{
class TextWriterStub : TextWriter
{
public override Encoding Encoding
{
get { return null; }
}
}
} |
Ajax
=
Standalone AJAX library inspired by jQuery/zepto
## Installation
[;
Or load using a script tag (downloads are available [here](https://component.jit.su/ForbesLindesay/ajax/download))
html
<script src="... |
// <auto-generated>
// This file was generated by Extensibility Tools v1.10.211
// </auto-generated>
namespace OpenInWinDirStat
{
static class Vsix
{
public const string Id = "<API key>";
public const string Name = "Open in WinDirStat";
public const string Description = @"Open multip... |
package com.indignado.logicbricks.utils.builders.joints;
import com.badlogic.gdx.physics.box2d.World;
/**
* @author Rubentxu
*/
public class JointBuilder {
private final World world;
private <API key> <API key>;
private <API key> <API key>;
private GearJointBuilder gearJointBuilder;
private <API k... |
# -*- coding: utf-8 -*-
# ProjectEuler/src/python/problem404.py
# Crisscross Ellipses
# Published on Sunday, 2nd December 2012, 01:00 am
# Ea is an ellipse with an equation of the form x2 + 4y2 = 4a2. Ea' is the
# points closest to the origin and c is the distance of the two other
# intersection points. We call an or... |
/**
* @class A wrapper around WebGL.
* @name GL
* @param {HTMLCanvasElement} element A canvas element.
* @param {function} onload A callback function.
* @param {function} callbacks.onerror A callback function.
* @param {function} callbacks.onprogress A callback function.
* @param {function} callbacks.onloadstart... |
using System;
using System.Collections.Generic;
using PMKS;
using PMKS.PositionSolving;
using StarMathLib;
namespace PMKS
{
internal class GearData
{
internal readonly double radius1;
internal readonly double radius2;
internal readonly int gearTeethIndex;
internal readonly int co... |
module Generators
module Hobo
module Migration
class HabtmModelShim < Struct.new(:join_table, :foreign_keys, :connection)
def self.from_reflection(refl)
result = self.new
result.join_table = refl.options[:join_table].to_s
result.foreign_keys = [refl.primary_key_name.to_... |
package checkers.logic.main;
import java.util.Scanner;
public class Player {
public static void main(String[] args) {
consolePlayer();
}
private static void consolePlayer(){
CheckersGame g = new CheckersGame();
Scanner in = new Scanner(System.in);
int x;
int y;
... |
#!/usr/bin/perl
use strict;
use warnings;
use Getopt::Std;
our $VERSION = "v0.1";
my $X = "\e[0m";
my $R = "\e[0;31m";
my $G = "\e[0;32m";
my $Y = "\e[0;33m";
my $B = "\e[0;34m";
my $P = "\e[0;35m";
my $IR = "\e[0;91m";
my $IG = "\e[0;92m";
my $IY = "\e[0;93m";
my $IB = "\e[0;94m";
my $IP = "\e[0;95m";
my %opts;
... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http:
<!--suppress ALL
<html xmlns="http:
style="font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; margin: 0; padding: 0;">
<head>
<meta name="viewport" content="width=device-widt... |
<!-- HTML header for doxygen 1.8.10-->
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>SideCar: Data Fields - Functions</title>
<link href=... |
import hotkeys from "hotkeys-js";
export default class HotkeyHandler {
constructor(hotkeyRegistry) {
this.hotkeyRegistry = hotkeyRegistry;
hotkeys("*", { keyup: true, keydown: false }, event => {
event.preventDefault();
this.hotkeyRegistry.<API key>();
return false;
});
hotkeys("*", ... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Rank extends MX_Controller {
public function __construct()
{
parent::__construct();
$this->load->config('rank');
$this->configs_rank = config_item('rank');
$this->players = $this->load->model('accoun... |
<?php
namespace Helpers;
/**
* Assets static helper
* @date 27th November, 2014
* @date May 18 2015
*/
class Assets
{
/**
* @var array Asset templates
*/
protected static $templates = array
(
'js' => '<script src="%s" type="text/javascript"></script>',
'css' => '<link href="%s... |
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Namespace Bifrost.ViewModels
</title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Namespace Bifrost.ViewModels
... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="de" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Blizzardcoin</source>
<translation>Über Blizzardcoin</translation>
... |
$(function(){
BrowserDetect.init();
$('.minifyme').on("navminified", function() {
// $('td.expand,th.expand').toggle();
});
// Activate all popovers (if NOT mobile)
if ( !BrowserDetect.isMobile() ) {
$('[data-toggle="popover"]').popover();
}
});
$.fn.pressEnter = function(fn) {
... |
import { <API key>, <API key> } from './types/ScaleConfig';
import { <API key>, D3Scale, PickD3Scale } from './types/Scale';
import { StringLike, DefaultOutput } from './types/Base';
import scaleOperator, { ALL_OPERATORS } from './operators/scaleOperator';
const applyAllOperators = scaleOperator(...ALL_OPERATORS);
// O... |
<?php
session_start();
//echo "filename:". $_REQUEST['fn'];
ini_set('display_errors', 'Off');
ini_set('<API key>', 'Off');
error_reporting(0);
include("../config.php");
include("../class/mysql.class.php");
if ($_REQUEST['r'])
$resource = $_REQUEST['r'];
$db = new MySQL(true);
if ($db->Error()) $db->Kill();
... |
{% extends "volunteers/base.html" %}
{% load staticfiles%}
{% block cssfiles %}
<link rel="stylesheet" type="text/css" href="{% static 'volunteers/css/updateProfile.css' %}" />
<link rel="stylesheet" type="text/css" href="{% static 'volunteers/css/staffPages.css' %}" />
{% endblock cssfiles %}
{% block tabs %}
... |
from pwn.internal.shellcode_helper import *
@shellcode_reqs(arch=['i386', 'amd64'], os=['linux', 'freebsd'])
def fork(parent, child = None, os = None, arch = None):
"""Fork this shit."""
if arch == 'i386':
if os in ['linux', 'freebsd']:
return _fork_i386(parent, child)
elif arch == 'amd6... |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>W30497_text</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div style="margin-left: auto; margin-right: auto; width: 800px; overflow: hidden;">
... |
var jsonZipper = (function(){
var jz = function(_jsonObj, _options) {
var Z = this;
var MAP = [];
var opts = _options && typeof(_options) !== "boolean" ? _options : {};
/* Public Functions */
Z.zip = function() {
if (Z.status === "zipable") {
Z.uzO... |
// Novell.Directory.Ldap.MessageVector.cs
// Sunil Kumar (Sunilk@novell.com)
using System;
namespace Novell.Directory.Ldap
{
<summary> The <code>MessageVector</code> class implements additional semantics
to Vector needed for handling messages.
</summary>
/* package */
class MessageVector:System.Co... |
package com.github.daneko.simpleitemanimator;
import android.support.v4.view.ViewCompat;
import android.support.v4.view.<API key>;
import android.view.View;
import fj.F;
import fj.F2;
import fj.F3;
import fj.Unit;
import fj.data.Option;
/**
* @see {@link android.support.v7.widget.DefaultItemAnimator}
*/
public class ... |
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title><API key> | <API key> API</title>
<meta name="description" content="Documentation for <API key> API">
<meta name="viewport" content="width=device-width, initial-sca... |
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<link href="css/home.css" type="text/css" rel="stylesheet"/>
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet"/>
<script src="jquery/js/jquery-1.11.1.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
</head>... |
<footer>
<hr>
<div class="container">
<span class="pull-right">
<button class="btn btn-primary" type="button">© ManageMyServer</button>
</span>
</div>
</footer> |
<?php
// Newfoundland Genetics Project
// Admin Functions
// "admin.php"
// Get config and start session
require 'inc/config.php';
session_start();
$uid = $_SESSION['UserID'];
if (isset($_SESSION['UserLoggedIn']) && ($_SESSION['UserLevel'] == 2)) {
// Print Token
if (isset($_GET['print_token_sheet'])) {
... |
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
// in all copies o... |
<div class="alert alert-warning">
<p><strong>This is a prototype resource.</strong></p>
<p>A prototype resource is experimental, and major changes are likely. In time, a prototype resource may or may not advance to production.</p>
</div> |
<API key>: ????.html |
// The LLVM Compiler Infrastructure
// This file is distributed under the University of Illinois Open Source
// Create a polyhedral description for a SCEV value.
#ifndef <API key>
#define <API key>
#include "llvm/ADT/DenseMap.h"
#include "llvm/Analysis/<API key>.h"
#include "isl/ctx.h"
struct isl_ct... |
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FormErrorsComponent } from './form-errors/form-errors.component';
import { <API key> } from './form-errors/<API key>.pipe';
@NgModule({
imports: [
CommonModule
],
declarations: [
FormErrorsComponent,
<AP... |
#include<iostream>
template<classy T>
class CSL // CommaSeparatedList
{
private:
int size;
public:
CSL(T *d, int s);
void showList();
};
CSL<T>::CSL(T *d, int s): data(s),size(d)
template<typename T>
void CSL<T>::showList()
{
cout<<"Comma separated list:"<<endl;
for(int x = 0; x < s ++x)
{
cou... |
package clusterconf
import (
"encoding/json"
"fmt"
"math/rand"
"net/url"
"path"
"path/filepath"
"strconv"
"strings"
"sync"
"time"
"github.com/cerana/cerana/acomm"
"github.com/cerana/cerana/pkg/errors"
)
const bundlesPrefix string = "bundles"
// BundleDatasetType is the ty... |
<HTML><HEAD>
<TITLE>Review for Crossing Guard, The (1995)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0112744">Crossing Guard, The (1995)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Bill... |
'use strict';
(function() {
// ProductAppliers Controller Spec
describe('<API key>', function() {
// Initialize global variables
var <API key>,
scope,
$httpBackend,
$stateParams,
$location;
// The $resource service augments the response obj... |
layout: post
title: "\"I don't have time\""
date: 2011-05-22 21:06:53
"I don't have time."
It can get you out of anything. A nearly universal excuse.
And yet, it is a lie.
During my senior year in high school I asked a teacher of mine to write a letter of recommendation for me. I asked him pretty far in advance, but wh... |
# Estimating short-term synaptic plasticity from pre- and postsynaptic spiking
for convinience all codes related to estimating STP parameters are in ```stp_glm``` folder
addpath(genpath('stp_glm'))```
- data for the in vitro experiment is available in ```in vitro data```
# Demo
stp_demo.m``` generates the pre and posts... |
[ => {
describe('when given a format', () => {
it('decides the output that will be used for serializing errors', () => {
expect(
function () {
const clonedExpect = expect.clone().outputFormat('html');
clonedExpect(42, 'to equal', 24);... |
require 'json'
require 'net/http'
require 'open-uri'
require 'uri'
require 'ostruct'
module DismalTony # :nodoc:
# Umbrella module for all mixins for Directives
module DirectiveHelpers
# Basic template , adds the inheritence methods through metaprogramming so
# that n-children inherit class methods and inst... |
'use strict';
const fs = require('fs');
const remote = require('electron').remote;
const mainProcess = remote.require('./main');
module.exports = {
template: `
<v-list dense class="pt-0">
<v-list-tile to="recent-projects" :router="true">
<v-list-tile-action>
<... |
// which is included with this distribution.
#pragma once
#include "BloombergTypes/ElementPtr.h"
namespace BEmu
{
class Name;
namespace <API key>
{
class <API key>;
class ReferenceElementInt;
class <API key> : public ElementPtr
{
private:
boost... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http:
<html xmlns="http:
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>pymatgen.io.ase — pymatgen 2018.3.14 documentation</title>
<link ... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sl_SI" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About AmeroX</source>
<translation>O AmeroX</translation>
</message>
<message>
<location l... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login Page - Photon Admin Panel Theme</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" href="ht... |
// BBN Technologies
// 10 Moulton Street
// Cambridge, MA 02138
// (617) 873-8000
// $Source: /cvs/distapps/openmap/src/openmap/com/bbn/openmap/image/ImageServerUtils.java,v $
// $RCSfile: ImageServerUtils.java,v $
// $Revision: 1.10 $
package com.bbn.openmap.image;
import java.awt.Color;
import java.awt.Paint;
imp... |
package lombok.javac;
import java.lang.reflect.Field;
import java.lang.reflect.<API key>;
import java.lang.reflect.Method;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import com.sun.tools.javac.code.Attribute;
import com.sun.tools.javac.code.BoundKind;
import com.sun.tools.... |
var sys = require("sys"),
my_http = require("http"),
path = require("path"),
url = require("url"),
filesys = require("fs");
my_http.createServer(function(request,response){
var my_path = url.parse(request.url).pathname;
var full_path = path.join(process.cwd(),my_path);
path.exists(full_path,function(exists)... |
#pragma once
namespace PhysX
{
namespace Apex
{
ref class ApexSdk;
public ref class Interface : IDisposable
{
public:
<summary>Raised before any disposing is performed.</summary>
virtual event EventHandler^ OnDisposing;
<summary... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BreakoutGL
{
public class Program
{
public static void Main(string[] args)
{
using (Game game = new Game())
{
game.Run();
... |
<!doctype html>
<html>
<head>
<title>Perform-O-Tron™</title>
<link rel="stylesheet" href="styles/mobile.css" type="text/css">
<link rel="stylesheet" href="styles/band.css" type="text/css">
<meta name="viewport" content="minimal-ui">
</head>
<body>
<div id="screen"></div>
<div id="band"></d... |
using System.Data.Entity;
using LauraAndChad.Models;
namespace LauraAndChad
{
public class LauraAndChadContext : DbContext
{
public LauraAndChadContext() : base("name=LauraAndChadContext")
{
}
public DbSet<Rsvp> Rsvps { get; set; }
}
} |
var path = require('path');
var fs = require('fs');
var Writer = require('broccoli-writer');
var Handlebars = require('handlebars');
var walkSync = require('walk-sync');
var RSVP = require('rsvp');
var helpers = require('<API key>');
var mkdirp = require('mkdirp');
var Promise = RSVP... |
from django.shortcuts import render, render_to_response, get_object_or_404
from django.template import RequestContext
# Create your views here.
from django.views.generic import ListView, DetailView
from .models import Category, Product
from cart.forms import CartAddProductForm
def category_list(request):
return ren... |
class ::Numeric
include GlobalizeNumeric::CoreExtensions::Numeric
end
class ::String
include GlobalizeNumeric::CoreExtensions::String
end
#class ::Locale
# include GlobalizeNumeric::Locale
#end
#Locale.class_eval do
# include GlobalizeNumeric::Locale
#end |
Copyright (c) 2016 Dylandy Chang
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, subli... |
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>PopTips Demo</title>
<style type="text/css">
body{
padding: 0;
margin: 0;
text-align: center;
}
</style>
<link href='../../../../modules/JC.PopTips/0.2/res/default/style.css' rel... |
var _a;
import app from './app';
import toHTML from './vdom-to-html';
import { _createEventTests, _createStateTests } from './<API key>';
app['debug'] = true;
window['_apprun-help'] = ['', () => {
Object.keys(window).forEach(cmd => {
if (cmd.startsWith('_apprun-')) {
cmd === '_apprun... |
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>Crap Engine 2: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/... |
using AdfToArm.Core.Models.LinkedServices.<API key>;
using Newtonsoft.Json;
namespace AdfToArm.Core.Models.LinkedServices
{
[JsonObject]
public class AzureSqlDatabase : LinkedService
{
public AzureSqlDatabase()
{
Properties = new <API key>
{
Type = Lin... |
/**
* Conversions inchesToCentimeters,gallonsToLiters milesToKilometers
*/
object Conversions{
def inchesToSantimeters(value: Double) = value * 2.54
def gallonsToLiters(value: Double) = value * 3.78541178
def milesToKilometers(value: Double) = value * 1.609344
} |
module Blorgh::Concerns::Models::Post
extend ActiveSupport::Concern
# 'included do' causes the included code to be evaluated in the
# context where it is included (post.rb), rather than being
# executed in the module's context (blorgh/concerns/models/post).
included do
attr_accessor :author_name
belon... |
import './index.css';
import React, {Component} from 'react';
import { postToggleDevice } from '../ajax';
export default class SocketDevice extends Component {
constructor() {
super();
this.state = {clicked: false, device: {}};
this.clicked = this.clicked.bind(this);
}
componentWillM... |
package com.jsoniter.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.ANNOTATION_TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
@Retention(RetentionPolic... |
var config = {
container: "#basic-example",
connectors: {
type: 'step'
},
node: {
HTMLclass: 'nodeExample1'
}
},
ceo = {
text: {
name: "Mark Hill",
title: "Chief executive officer",
contact: "Tel: 01 213 ... |
require 'spec_helper'
describe User do
before do
@user = User.new(name: "Example User", email: "user@example.com",
password: "foobar800", <API key>: "foobar800")
end
subject {@user}
it {should respond_to(:name)}
it {should respond_to(:email)}
it {should respond_to(:password_d... |
# -*- encoding: utf-8 -*-
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe Mugshot::Storage do
it "should convert an id to path with 6 levels of directories" do
@fs = Mugshot::Storage.new
@fs.send(:id_to_path, "<API key>").should == "a9/65/7a/30/c7/df/<API key>"
end
end |
# 005_cleaner.py
# Import des modules et ajout du path de travail pour import relatif
import sys
sys.path.insert(0 , 'C:/Users/WILLROS/Perso/Shade/scripts/LocalWC-Shade-App/apis/')
from voca import AddLog , StringFormatter , OutFileCreate , OdditiesFinder
# Init des paths et noms de fichiers
missionName = '005'
AddLog(... |
#Attr Methods
# I worked on this challenge by myself.
# I spent [#] hours on this challenge.
# Pseudocode
# Input:
# Output:
# Steps:
class NameData
end
class Greetings
end
# Release 1
#What are these methods doing?
# These methods set a name, age, and occupation, then they allow those instance variables to change by c... |
require( ['build/index'] ); |
<?php
namespace Gwa\Remote;
/**
* @brief Loads a remote resource using curl.
* @class RemoteResource
*/
class RemoteResource
{
private $_url;
private $_errno;
private $_errmsg;
private $_content;
private $_header;
private $_options;
/**
* @brief The constructor.
* @param string ... |
// Annotations
//@TestFile
//@Require('Class')
//@Require('Map')
//@Require('ObservableMap')
//@Require('PutChange')
//@Require('TypeUtil')
//@Require('bugdouble.BugDouble')
//@Require('bugmeta.BugMeta')
//@Require('bugunit.TestTag')
// Context
require('bugpack').context("*", function(bugpack) {
// BugPack
var ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.