code stringlengths 4 1.01M |
|---|
require_relative '../../../spec_helper'
require 'matrix'
describe "Vector#normalize" do
it "returns a normalized copy of the vector" do
x = 0.2672612419124244
Vector[1, 2, 3].normalize.should == Vector[x, x * 2, x * 3]
end
it "raises an error for zero vectors" do
lambda {
Vector[].normalize
... |
'use strict';
/**
* Module dependencies.
*/
var users = require('../../app/controllers/users'),
goaliedash = require('../../app/controllers/goaliedash');
module.exports = function(app) {
app.route('/goaliedash')
.get(users.requiresLogin, users.hasAuthorization);
}; |
// @flow
import React from 'react'
import withPropsStream from '@vega/utils/withPropsStream'
import {map} from 'rxjs/operators'
import styles from './styles/Communicator.css'
import ThreadList from './ThreadList'
import CreateComment from './CreateComment'
function getPropsStream(props$) {
// todo: implement open/c... |
# ember-promise-block
This is an Ember Addon that exposes a component `promise-block` which shows a loader while a given promise is being resolved.
## Installing
Install as an Ember-CLI addon:
ember install ember-promise-block
## Usage
// templates/posts.hbs
{{#promise-block promise=postsPromise loade... |
package pricing;
import org.configureme.ConfigurationManager;
import org.configureme.Environment;
import org.configureme.GlobalEnvironment;
import org.configureme.environments.DynamicEnvironment;
public class ShowPrice {
public static void main(String a[]){
showPrice();
showPriceIn("USA", GlobalEnvironment.INSTA... |
## Part 3
[](https://rawgit.com/Bogdan-Lyashenko/Under-the-hood-ReactJS/master/stack/images/3/part-3.svg)
<em>3.0 第 3 部分 (点击查看大图)</em>
### 挂载
`componentMount` 是我们整个系列中极其重要的一个板块。如图,我们关注 `ReactCompositeComponent.mountComp... |
## Release 1.1.0
## Breaking Changes
* removed cross-spawn dependency
### Features
- ([fc25d5e](https://github.com/igniteram/protractor-cli/commit/fc25d5edc09d775f35e356796c19e0425fc936d2))
feat(install modules): added npm progress & async installation
## Release 1.0.1
### Features
- ([7441967](https://github.... |
local d = require "distribution"
d6 = d.uniform(6)
d20 = d.uniform(20)
foo = 2*d6 + d20
-- The basic summary method gives a sorted list of all the outcomes
-- and a summary of statistical values
print("2d6 + d20")
print(foo:summary())
-- Note that tostring(foo) and print(foo) will automatically call summary
-- To... |
/* Error handling */
#include "Python.h"
void
PyErr_Restore(PyObject *type, PyObject *value, PyObject *traceback)
{
PyThreadState *tstate = PyThreadState_GET();
PyObject *oldtype, *oldvalue, *oldtraceback;
/* Save these in locals to safeguard against recursive
invocation through Py_XDECREF */
oldtype = tsta... |
/*
* Copyright (c) 2014-2022 The Voxie Authors
*
* 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, mer... |
var models = require('../models');
var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
console.log(req.session);
res.render('layout');
});
module.exports = router; |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>unicoq: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `FromUtf8Error` struct in crate `collections`.">
<meta name... |
*
{
margin: 0;
padding: 0;
}
body
{
margin: 0;
padding: 0;
font: 12px Arial, Helvetica, sans-serif;
color: #333;
background: #fff url(images/bg_body.jpg) repeat-x;
}
img
{
border: none;
}
p
{
margin: 0;
padding: 8px 0;
}
a, object, a:focus
{
outline: none;
}
h1, h2, h3, h4
{
marg... |
<html><body>
<h4>Windows 10 x64 (19041.388)</h4><br>
<h2>_IO_APIC_REGISTERS</h2>
<font face="arial"> +0x000 RegisterIndex : Uint4B<br>
+0x004 Reserved1 : [3] Uint4B<br>
+0x010 RegisterValue : Uint4B<br>
+0x014 Reserved2 : [11] Uint4B<br>
+0x040 EndOfInterrupt : Uint4B<br>
</f... |
import os
import logging
from django.core.management.base import BaseCommand
from django.core.mail import send_mail
from django.template.loader import get_template
from workshops.models import Badge, Person, Role
logger = logging.getLogger()
class Command(BaseCommand):
help = 'Report instructors activity.'
... |
<?php
/*
* This file is part of the Phuri package.
*
* Copyright © 2014 Erin Millard
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Eloquent\Phuri\Generic;
use Eloquent\Pathogen\Factory\PathFactoryInterface;
use Eloqu... |
# react-all
Use ReactJS to do cross platform StartKit
|
/*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... |
// Copyright (c) 2013 Raphael Estrada
// License: The MIT License - see "LICENSE" file for details
// Author URL: http://www.galaktor.net
// Author E-Mail: galaktor@gmx.de
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through t... |
# coding=utf-8
# --------------------------------------------------------------------------
# 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 ... |
class CreateDocuments < ActiveRecord::Migration[5.0]
def change
create_table :documents do |t|
t.integer :product_id, null: false
t.string :type, null: false
t.string :url, null: false
t.timestamps
end
end
end
|
@font-face {
font-family: 'icomoon';
src: url('../fonts/icomoon.eot');
src: url('../fonts/icomoon.eot?#iefix') format('embedded-opentype'),
url('../fonts/icomoon.woff') format('woff'),
url('../fonts/icomoon.ttf') format('truetype'),
url('../fonts/icomoon.svg#icomoon') format('svg');
font-weight: normal;
font... |
# -*- coding: utf-8 -*-
"""
Created on Fri Jun 25 16:20:12 2015
@author: Balázs Hidasi
@lastmodified: Loreto Parisi (loretoparisi at gmail dot com)
"""
import sys
import os
import numpy as np
import pandas as pd
import datetime as dt
# To redirect output to file
class Logger(object):
def __init__(self, filename=... |
# lecture-02 2018-01-29
* add buttons for handouts
* add additional content related to Open GIS
* add speakerdeck integration
# lecture-02 2018-01-28
* add initial site with youtube video for lecture prep replication embedded
# lecture-02 2018-01-02
* add `NEWS_SITE.md` for tracking updates to the course site, *bu... |
# Rustic Pizza
A collection of pizzeria web apps,
written in Rust, with each webapp using different web frameworks.
* https://rust-lang.org
* https://rustup.rs
* https://doc.rust-lang.org/book/README.html
* https://doc.rust-lang.org/std/
* http://rustbyexample.com/index.html
* https://aturon.github.io/
* http://www.... |
<?php
namespace PSR2R\Sniffs\Commenting;
use PHP_CodeSniffer\Files\File;
use PHP_CodeSniffer\Util\Tokens;
use PSR2R\Tools\AbstractSniff;
use PSR2R\Tools\Traits\CommentingTrait;
use PSR2R\Tools\Traits\SignatureTrait;
/**
* Methods always need doc blocks.
* Constructor and destructor may not have one if they do not ... |
(function() {
'use strict';
process.env.debug_sql = true;
var Class = require('ee-class')
, log = require('ee-log')
, assert = require('assert')
, fs = require('fs')
, QueryContext = require('related-query-context')
, ORM ... |
#!/usr/bin/env ruby
require 'tasklist'
during '2010 September' do
on '2010-09-03' do
task 'Take out garbage'
task 'Wash car'
end
on '2010-09-02' do
task 'Create tasklist DSL', '09:15:56', '', 'admin', 'done'
task 'Push tasklist to github', '09:34:00', '09:38:04', 'github'
end
end
|
var passport = require('passport');
var WebIDStrategy = require('passport-webid').Strategy;
var tokens = require('../../util/tokens');
var ids = require('../../util/id');
var console = require('../../log');
var createError = require('http-errors');
var dateUtils = require('../../util/date');
var url = require('url');
... |
module AwsHelpers
module ElasticLoadBalancing
class CreateTag
def initialize(elastic_load_balancing_client, load_balancer_name, tag_key, tag_value)
@elastic_load_balancing_client = elastic_load_balancing_client
@load_balancer_name = load_balancer_name
@tag_key = tag_key
@tag_... |
export declare class Console {
private static quiet;
private static debug;
private static verbose;
static Log(text: any): void;
private static readonly Timestamp;
static Debug(text: any): void;
static Verbose(text: any): void;
static Error(text: any): void;
static Exit(reason: any): ... |
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Sylius\Bundle\CoreBundle\Command;
use Sylius\Component\Core\Model... |
import { Nibble, UInt4 } from '../types'
/**
* Returns a Nibble (0-15) which equals the given bits.
*
* @example
* byte.write([1,0,1,0]) => 10
*
* @param {Array} nibble 4-bit unsigned integer
* @return {Number}
*/
export default (nibble: Nibble): UInt4 => {
if (!Array.isArray(nibble) || nibble.length !== 4)
... |
import { Injectable } from '@angular/core';
import { DataService } from '../../../_service/dataconnect';
import { Router } from '@angular/router';
@Injectable()
export class WarehouseViewService {
constructor(private _dataserver: DataService, private _router: Router) { }
getwarehouseTransfer(req: any) {
... |
{% extends "base.html" %}
{% load static %}
{% load template_extras %}
{% block title %}Analyse{% endblock %}
{% block active_class %}analyse{% endblock %}
{% block extra_css %}
<link href="{% static 'css/select2.min.css' %}" rel="stylesheet">
<link href="{% static 'css/jquery.nouislider.css' %}" rel="stylesheet">
<l... |
<!doctype html>
<html class="theme-next pisces use-motion">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta http-equiv="Cache-Control" content="no-transform" />
<meta... |
using System;
using Newtonsoft.Json;
namespace MultiSafepay.Model
{
public class Transaction
{
[JsonProperty("transaction_id")]
public string TransactionId { get; set; }
[JsonProperty("payment_type")]
public string PaymentType { get; set; }
[JsonProperty("order_id")]
... |
require 'spec_helper'
describe MWS::Report do
describe ".method_missing" do
describe ".get_report_list" do
let(:valid_args){
{
key: "ThisIsSigningKey",
endpoint: "mws.amazonservices.com",
params: {
"AWSAccessKeyId" => "AccessKeyIdString",
"Selle... |
require 'resolv'
module Geocoder
class IpAddress < String
def loopback?
valid? and !!(self == "0.0.0.0" or self.match(/\A127\./) or self == "::1")
end
def valid?
!!((self =~ Resolv::IPv4::Regex) || (self =~ Resolv::IPv6::Regex))
end
end
end
|
const chai = require('chai');
const expect = chai.expect;
const ComplexArray = require('../complex-array/complex-array');
function assertArrayEquals(first, second) {
const message = `${first} != ${second}`;
first.forEach((item, i) => {
expect(item).to.equal(second[i], message);
});
}
describe('Complex Ar... |
/*
* Copyright (C) 2011 by Jakub Lekstan <kuebzky@gmail.com>
*
* 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, cop... |
/*
* 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.
*/
package config;
import interfaces.*;
import java.sql.*;
import java.util.logging.*;
import javax.swing.*;
/**
*
* @author Luis G
*... |
<?php
/*
* This file is part of NodalFlow.
* (c) Fabrice de Stefanis / https://github.com/fab2s/NodalFlow
* This source file is licensed under the MIT license which you will
* find in the LICENSE file or at https://opensource.org/licenses/MIT
*/
namespace fab2s\NodalFlow\Nodes;
use fab2s\NodalFlow\Flows\Flo... |
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your
# dat... |
<!--Navigation bar-->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<sp... |
Ubench [](https://travis-ci.org/devster/ubench)
======
Ubench is a PHP micro library for benchmark
> https://github.com/devster/ubench
Installation
------------
### Old school ###
require `src/Ubench.php` in your project.
### Composer ###
Add... |
/*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import "NSObject.h"
@class NSMutableDictionary, NSString;
// Not exported
@interface GQZArchive : NSObject
{
NSMutableDictionary *mEntries;
id <GQZArchiveInputStream> ... |
/*
* mysplit.c - Another handy routine for testing your tiny shell
*
* usage: mysplit <n>
* Fork a child that spins for <n> seconds in 1-second chunks.
*/
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <signal.h>
int main(int argc, char **argv)
{
... |
/*
* Copyright (c) 1982, 1986, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above... |
\hypertarget{dir_a39a2e34196bbb4cf212587eee358088}{}\section{C\+:/\+Users/\+Tim-\/\+Mobil/\+Documents/\+Arduino/libraries/\+N\+B\+H\+X711/src Directory Reference}
\label{dir_a39a2e34196bbb4cf212587eee358088}\index{C\+:/\+Users/\+Tim-\/\+Mobil/\+Documents/\+Arduino/libraries/\+N\+B\+H\+X711/src Directory Reference@{C\+:... |
<?PHP
/**
* password view.
*
* includes form for username and email to send password to user.
*
*/
?>
<div id="content_area">
<div class="row" id="login"> <!--login box-->
<div class="col-xs-24" >
<?php
//begins th... |
using System;
using System.Threading;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
namespace vplan
{
public class PrefManager
{
NSUserDefaults locstore = new NSUserDefaults();
bool notified = false;
public PrefManager ()
{
refresh ();
}
protected void refresh () {
locstore.Synchronize ();
... |
/*
DISKSPD
Copyright(c) Microsoft Corporation
All rights reserved.
MIT License
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 us... |
/** @jsx h */
import h from '../../helpers/h'
export const schema = {
blocks: {
paragraph: {
marks: [{ type: 'bold' }, { type: 'underline' }],
},
},
}
export const input = (
<value>
<document>
<paragraph>
one <i>two</i> three
</paragraph>
</document>
</value>
)
expo... |
/* ========================================================================
* DOM-based Routing
* Based on http://goo.gl/EUTi53 by Paul Irish
*
* Only fires on body classes that match. If a body class contains a dash,
* replace the dash with an underscore when adding it to the object below.
*
* .noConflict()
* ... |
#pragma once
#include "interface/types.h"
inline uintptr_t get_return_address()
{
uintptr_t ret;
asm volatile("movq 8(%%rbp), %0" : "=r"(ret) : : "memory");
return ret;
} |
import {bootstrap} from '@angular/platform-browser-dynamic';
import {ROUTER_PROVIDERS} from '@angular/router-deprecated';
import {HTTP_PROVIDERS} from '@angular/http';
import {AppComponent} from './app.component';
import {LoggerService} from './blocks/logger.service';
bootstrap(AppComponent, [
LoggerService, ROUTE... |
package org.apache.shiro.grails.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.apache.shiro.authz.Permission;
@Target({ElementType.FIELD, ElementType.METHOD})
@Retention(Retention... |
local r = require('restructure')
local ArrayT = r.Array
describe('Array', function()
describe('decode', function()
it( 'should decode fixed length', function()
local stream = r.DecodeStream.new(string.char(1, 2, 3, 4, 5))
local array = ArrayT.new(r.uint8, 4)
assert.are.same({1, 2, 3, 4}, array:... |
using Academy.Core.Contracts;
using Academy.Commands.Adding;
using Moq;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Academy.Tests.Commands.Mocks;
namespace Academy.Tests.Commands.AddingTests.AddStudentToSea... |
module.exports = {
before: [function () {
console.log('global beforeAll1');
}, 'alias1'],
'alias1': 'alias2',
'alias2': function () {
console.log('global beforeAll2');
},
'One': function () {
this.sum = 1;
},
'plus one': function () {
this.sum += 1;
},
'equals two': function () {
... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Submission 121</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
<img src="gallery/subm... |
puppet-roundcube
================
## Overview
Install and configure roundcube with optional apache/mysql configuration.
* `roundcube` : Main define for the roundcube.
## Examples
Typical user with apache and mysql configuration :
roundcube { 'webmail.example.com':
docroot => '/var/www/webmail.ex... |
## 0.0.2 30-08-2016
* Fixed pin to mimic the old logic PR#4
## 0.0.1 29-08-2016
* First version
|
exports.__esModule = true;
exports.parseServerOptionsForRunCommand = parseServerOptionsForRunCommand;
exports.parseRunTargets = parseRunTargets;
var _cordova = require('../cordova');
var cordova = babelHelpers.interopRequireWildcard(_cordova);
var _cordovaProjectJs = require('../cordova/project.js');
var _cordovaRu... |
# MilkshakeAndMouse
An online store for organic/cruelty free merchandise.
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0037)http://notefeeder.heroku.com/500.html -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta http-equiv="Content-Type" content="text/html; chars... |
from attributes import *
from constants import *
# ------------------------------------------------------------------------------
#
class UnitManager (Attributes) :
"""
UnitManager class -- manages a pool
"""
# --------------------------------------------------------------------------
#
... |
'use strict';
angular.module('terminaaliApp')
.factory('Auth', function Auth($location, $rootScope, $http, User, $cookieStore, $q) {
var currentUser = {};
if($cookieStore.get('token')) {
currentUser = User.get();
}
return {
/**
* Authenticate user and save token
*
*... |
$(document).ready(function(){
var toggleMuffEditor = function(stat=false){
$("#muff-opt").remove();
// bind event
if(stat){
$(".muff").mouseover(function() {
$("#muff-opt").remove();
muffShowOptions($(this));
$(window).scroll(function(){
$("#muff-opt").remove();
}) ... |
---
layout: page
title: Version history
permalink: "setup/en/releasenotes/"
language: en
---
#### vNext
* __New__ FileCopy Add-In: parameter sourceTimeFilter also for FILE and SFTP protocol.
#### 1.4.5
* __New__ New Add-In List2Csv to export SharePoint Online lists to CSV files.
* __New__ New add-in SharepointToDB... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = undefined;
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _possibleConstructorReturn2 = require('babel-runtime/helpers/p... |
package jp.opap.material.model
import java.util.UUID
import jp.opap.data.yaml.Node
import jp.opap.material.data.Collections.{EitherSeq, Seqs}
import jp.opap.material.facade.GitLabRepositoryLoaderFactory.GitlabRepositoryInfo
import jp.opap.material.model.RepositoryConfig.RepositoryInfo
import jp.opap.material.model.Wa... |
const _cache = Dict{AbstractString,Array}()
function fetch_word_list(filename::AbstractString)
haskey(_cache, filename) && return _cache[filename]
try
io = open(filename, "r")
words = map(x -> chomp(x), readlines(io))
close(io)
ret = convert(Array{UTF8String,1}, words)
_cache[filename] = ret
... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_11) on Sun Aug 31 14:44:00 IST 2014 -->
<title>Uses of Class org.symboltable.Edge</title>
<meta name="date" content="2014-08-31">
<link rel="st... |
# Parser.Many<T> method
Always succeeds. The value is a collection of as many items as can be successfully parsed.
```csharp
public static IParser<IReadOnlyList<T>> Many<T>(this IParser<T> parser)
```
## See Also
* interface [IParser<T>](../IParser-1.md)
* class [Parser](../Parser.md)
* namespace [Faith... |
using System.ComponentModel;
namespace NSysmon.Collector.HAProxy
{
/// <summary>
/// Current server statuses
/// </summary>
public enum ProxyServerStatus
{
[Description("Status Unknown!")]
None = 0, //Won't be populated for backends
[Description("Server is up, status nor... |
import datetime
from django.contrib.contenttypes.models import ContentType
from django.utils import timezone
from .models import Action
def create_action(user, verb, target=None):
now = timezone.now()
last_minute = now - datetime.timedelta(seconds=60)
similar_actions = Action.objects.filter(user_id=user... |
package engine;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Point;
public class CircleShape extends Shape {
double radius; //radius of shape
public CircleShape(double rad, Vector2D v, double r, double d, Color c) {
super(v, r, d, c);
radius = rad;
}
@Override
... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19.99 9.79c.51-.4.51-1.18 0-1.58l-6.76-5.26c-.72-.56-1.73-.56-2.46 0L9.41 4.02l7.88 7.88 2.7-2.11zm0 3.49l-.01-.01a.991.991 0 00-1.22 0l-.05.04 1.4 1.4c.37-.41.34-1.07-.12-1.43zm1.45 5.6L4.12 1.56a.9... |
Deprecated.
See:
- [TRex Collection](https://github.com/Raphhh/trex-collection): PHP helpers for collections.
- [TRex Reflection](https://github.com/Raphhh/trex-reflection): PHP tool to reflect callables an types.
- [TRex parser](https://github.com/Raphhh/trex-parser): PHP tool to parse code and extract statements.... |
sandbox.lua
===========
A pure-lua solution for running untrusted Lua code.
The default behavior is restricting access to "dangerous" functions in Lua, such as `os.execute`.
It's possible to provide extra functions via the `options.env` parameter.
Infinite loops are prevented via the `debug` library.
For now, sand... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ms_MY" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About DarkSwift</source>
<translation type="unfinished"/>
</message>
<message>
<location l... |
# Worker Glass [Unmaintained]
**Note**: This library is no longer in use in the Karafka ecosystem. It was developed for Karafka versions prior to `1.0`. If you're using this library and want to take it over, please ping us.
[](https://gith... |
# -*- coding: utf-8 -*-
#
# RedPipe documentation build configuration file, created by
# sphinx-quickstart on Wed Apr 19 13:22:45 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# A... |
import {
assign,
forEach,
isArray
} from 'min-dash';
var abs= Math.abs,
round = Math.round;
var TOLERANCE = 10;
export default function BendpointSnapping(eventBus) {
function snapTo(values, value) {
if (isArray(values)) {
var i = values.length;
while (i--) if (abs(values[i] - value) <... |
var changeSpan;
var i = 0;
var hobbies = [
'Music',
'HTML5',
'Learning',
'Exploring',
'Art',
'Teaching',
'Virtual Reality',
'The Cosmos',
'Unity3D',
'Tilemaps',
'Reading',
'Butterscotch',
'Drawing',
'Taking Photos',
'Smiles',
'The Poetics of Space',
'Making Sounds',
'Board games',
'Trave... |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CodePen - A Pen by Justin Kams</title>
</head>
<body>
<html>
<head>
<title>The Basics of The Web and HTML</title>
</head>
<body>
<h2>The Basics of The Web and HTML</h2>
<p><em></em></p>
<p><em><h3>The Basics of the World Wide Web</h3></em>
The... |
<?php
namespace App\Http\ViewComposers;
use App\Models\Character;
use App\Models\Message;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\Auth;
use Illuminate\View\View;
class CharacterMessagesComposer
{
/**
* Bind data to the view.
*
* @param ... |
---
layout: default
archive: true
---
<script src="https://apis.google.com/js/platform.js" async defer></script>
<article class="post">
<header>
<h1>{{ page.title }}</h1>
<h2 class="headline">{{ page.date | date:"%B %-d, %Y" }}</h2>
</header>
<section id="post-body">
{{content}}
... |
from src.tools.dictionaries import PostLoadedDict
# Utility class
################################################
class ServerImplementationDict(PostLoadedDict):
def __missing__(self, key):
try:
return super().__missing__(key)
except KeyError:
return NotImplemented
########... |
import {
GraphQLInputObjectType,
GraphQLID,
GraphQLList,
GraphQLBoolean,
} from 'graphql';
import RecipientTypeEnum from './RecipientTypeEnum';
import MessageTypeEnum from './MessageTypeEnum';
import NoteInputType from './NoteInputType';
import TranslationInputType from './TranslationInputType';
import Communi... |
require "rubygems"
require 'active_support'
require "ruby-debug"
gem 'test-unit'
require "test/unit"
require 'active_support'
require 'active_support/test_case'
require 'shoulda'
require 'rr'
require File.dirname(__FILE__) + '/../lib/ubiquitously'
Ubiquitously.configure("test/config/secrets.yml")
Passport.configure("... |
{% macro scenario_tabs(selected,num,path, id) %}
<div class="section-tabs js-tabs clearfix mb20">
<ul>
{% set navs = [
{url:"timeline-review",label:"Timeline"},
{url:"details-fme",label:"Details"},
{url:"evidence-portal",label:"Evidence"},
{url:"appointment",label:"Appointment"}
... |
#include <boost/lexical_cast.hpp>
#include <disccord/models/user.hpp>
namespace disccord
{
namespace models
{
user::user()
: username(""), avatar(), email(), discriminator(0),
bot(false), mfa_enabled(), verified()
{ }
user::~user()
{ }
void use... |
package com.full360.voltdbscala
import org.voltdb.client.ClientResponse
/**
* Exception thrown when the status of a client response if not success
* @param message the detail message of this exception
*/
case class ClientResponseStatusException(message: String) extends Exception(message)
object ClientResponseStat... |
//
// UIView+WebCacheOperation.h
// SKWebImage
//
// Created by 侯森魁 on 2019/8/23.
// Copyright © 2019 侯森魁. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "SKWebImageCompat.h"
#import "SKWebImageManager.h"
NS_ASSUME_NONNULL_BEGIN
@interface UIView (WebCacheOperation)
/**
Set the image load operation (s... |
#CSCI 211 - Lab 1
##Introduction to Linux and the g++ Compiler
##Goals:
* Overview: Linux organization
* Introduce several basic Linux commands
* Provide an example of creating, compiling, and running a c++ program
* Set up all the directories for the course assignments
* Provide practice creating, compiling, and run... |
//
//
/////////////////////////////////////////////////////////////////////////////
//
// Copyright 2014 Autodesk, Inc. All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk license
// agreement provided at the time of installation or download, or which
// otherwise acco... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.