code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30
values | license stringclasses 15
values | size int64 3 1.01M |
|---|---|---|---|---|---|
<?php
/*
* This file is part of the Doctrine RiakBundle
*
* (c) Fabien Potencier <fabien@symfony.com>
* (c) Doctrine Project, Benjamin Eberlei <kontakt@beberlei.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Cosmo... | cosmow/DoctrineRiakBundle | DependencyInjection/Compiler/DoctrineRiakMappingsPass.php | PHP | mit | 8,824 |
interface IShaderAsset {
Key: string;
GetPath: () => string;
}
export class Shaders {
// Add Shaders Here (supports .frag files only)
}
| dmk2014/phaser-template | src/assets/shaders.ts | TypeScript | mit | 149 |
# DISCONTIUATION
*Sorry for not working on this project for a long time. I will not further support this project, but I still leave it accessible to those, who use grunt-closure-linter in theri projects. If anyone is interested in taking over the project, let me know!*
# grunt-closure-linter
> Google closure lintin... | wzr1337/grunt-closure-linter | README.md | Markdown | mit | 4,713 |
/**
* Copyright 2014 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | AccelNA/timeLogs | Web/node_modules/react-component/lib/monitorCodeUse.js | JavaScript | mit | 1,281 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=2.0">
<title>DataTables example - Ordering plug-ins (with type detection)</title>
<link rel="styleshee... | dialv/tesisControl | src/tesisControl/tesisBundle/Resources/public/DataTables-1.10.12/examples/plug-ins/sorting_auto.html | HTML | mit | 27,122 |
<?php
namespace AppBundle\Helpers;
/**
* Wrapper for json_decode
*/
class JSON
{
protected $data = "";
protected $errorCode = JSON_ERROR_NONE;
protected $errorString = "";
/**
* Attempt to decode JSON.
* @param $string JSON encoded string
*/
function __construct($string) {
$this->... | iclemens/wexp | src/AppBundle/Helpers/JSON.php | PHP | mit | 2,224 |
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("So... | vasiliyfomichev/Sitecore-Solr-Search-Term-Highlight | Properties/AssemblyInfo.cs | C# | mit | 1,410 |
__author__ = 'olga'
import numpy as np
from prettyplotlib.colors import blue_red, blues_r, reds
from prettyplotlib.utils import remove_chartjunk, maybe_get_fig_ax
def pcolormesh(*args, **kwargs):
"""
Use for large datasets
Non-traditional `pcolormesh` kwargs are:
- xticklabels, which will put x tic... | olgabot/prettyplotlib | prettyplotlib/_pcolormesh.py | Python | mit | 4,451 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#define TILE_W 4
#define TILE_H 8
#define NTILES_W 32
#define NTILES_H 32
#define TILESET_SIZE 93
int compare_tile(uint8_t *tile, uint8_t *level, int x, int y)
{
int row;
uint8_t buffer[32];
for(row = 0; row < TILE_H; ++row... | tykel/hbt | tiler.c | C | mit | 3,367 |
"""
To use this, create a settings.py file and make these variables:
TOKEN=<oath token for github>
ORG=<your org in github>
DEST=<Path to download to>
"""
from github import Github
from subprocess import call
import os
from settings import TOKEN, ORG, DEST
def download():
"""Quick and Dirty Download all repos funct... | sqor/3rdeye | fetch_repos.py | Python | mit | 789 |
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("SQ... | NikitoG/TelerikAcademyHomeworks | Database/Ado.NetHomework/SQLLiteBook/Properties/AssemblyInfo.cs | C# | mit | 1,398 |
require File.expand_path("../lib/heroku/command/cleardb", __FILE__)
require File.expand_path("../lib/heroku/command/xeround", __FILE__)
| heroku/heroku-migrate-xeround | init.rb | Ruby | mit | 136 |
//
// Board.hpp
// Arcade Game Engine
//
#pragma once
#include "core.hpp"
const Dimension2 BOARD_DIMENSIONS { 224, 176 };
// MARK: Events
const Event DidClearBoard("DidClearBoard");
const Event DidSetBlock("DidSetBlock");
/**
* Defines the block physics.
*/
class BlockPhysicsComponent
: public PhysicsCompo... | lidin/Arcade-Game-Engine | Arcade Game Engine/qbert/Board.hpp | C++ | mit | 1,079 |
/*! @license Firebase v4.5.0
Build: rev-f49c8b5
Terms: https://firebase.google.com/terms/ */
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.OperationSource = exports.OperationType = undefined;
var _assert = require("../../../utils/assert");
/**
*
* @enum
*/
var OperationTy... | tupamba/kardex | node_modules/firebase/database/core/operation/Operation.js | JavaScript | mit | 3,210 |
from distutils.core import setup, Extension
setup(
name = 'iMX233_GPIO',
version = '0.1.0',
author = 'Stefan Mavrodiev',
author_email = 'support@olimex.com',
url = 'https://www.olimex.com/',
license = 'MIT',
descrip... | mikevoyt/iMX233_GPIO | setup.py | Python | mit | 1,271 |
//
// TableViewCellTemplate.h
// SQTemplate
//
// Created by 双泉 朱 on 17/5/11.
// Copyright © 2017年 Doubles_Z. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "HYBlockOneCellAdapter.h"
@interface HYBlockOneCell : UITableViewCell
@property (nonatomic,strong) id<HYBlockOneCellAdapter> adapter;
+ (instancet... | coderZsq/coderZsq.project.oc | SQTemplate/SQTemplate/HYSpecialSale/HYBlockOneCell.h | C | mit | 407 |
//
// KontaktSDK
// Version: 3.0.4
//
// Copyright (c) 2015 Kontakt.io. All rights reserved.
//
#import "KTKEddystoneRegion.h"
NS_ASSUME_NONNULL_BEGIN
#pragma mark - KTKSecureEddystoneRegion (Interface)
@interface KTKSecureEddystoneRegion : KTKEddystoneRegion <NSCopying, NSSecureCoding>
#pragma mark - Secure Edd... | Artirigo/react-native-kontaktio | ios/KontaktSDK.framework/Headers/KTKSecureEddystoneRegion.h | C | mit | 2,113 |
#include "aviary.hh"
#include "duck.hh"
#include "bird.hh"
#include "owl.hh"
#include <iostream>
#include <string>
using aviary::Aviary;
using aviary::Duck;
using aviary::Owl;
void constTest(Aviary const &a)
{
a[1]->speak(std::cout);
}
int main()
{
// The output of the program should be this:
/*
Esko... | tuohis/cpp_course_2006 | u4/u4e1/aviarytest.cc | C++ | mit | 595 |
(function(){dust.register("data-tpl.tl",body_0);function body_0(chk,ctx){return chk.write("<div class=\"col-md-24\" style=\"font-size:10pt;\">").section(ctx._get(false, ["data"]),ctx,{"block":body_1},null).write("</div>");}function body_1(chk,ctx){return chk.write("<div class=\"col-md-8\">").reference(ctx._get(false, [... | BlackCloudConcepts/requireunderpin | dusttemplates/data-tpl.js | JavaScript | mit | 548 |
/*
* This file is part of the Spludo Framework.
* Copyright (c) 2009-2010 DracoBlue, http://dracoblue.net/
*
* Licensed under the terms of MIT License. For the full copyright and license
* information, please see the LICENSE file in the root folder.
*/
/**
* @class The manager for all registered data_mappers.
... | DracoBlue/spludo | core/DataMapperManager.js | JavaScript | mit | 1,455 |
<!DOCTYPE html>
<html lang="en">
<head>
<!-- this tag is necessary to use the emulator -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="stylesheet.css">
<title>Responsive Design and Fluid Layouts</title>
</head>
<body>
<div id="wrapper">
<div id="head... | valeriesmith/valeriesmith.github.io | week-2-challenge-5/starting-point.html | HTML | mit | 3,570 |
# Upgrade notes
We're trying to keep the upgrade process as easy as possible. Unfortunately, sometimes manual code changes are required. Before pulling out the latest version, please take a look at the upgrade notes below:
## 1.11 -> 1.12
Most of the changes added to 1.12 are backward compatible. To enable the new f... | DivanteLtd/vue-storefront | docs/guide/upgrade-notes/README.md | Markdown | mit | 52,373 |
# frozen_string_literal: true
require_dependency "renalware/hd"
require_dependency "collection_presenter"
# TODO: mixing query and presenter here..
module Renalware
module HD
module Scheduling
class DiarySlotPresenter < SimpleDelegator
delegate :master?, to: :diary, allow_nil: true
# Pati... | airslie/renalware-core | app/presenters/renalware/hd/scheduling/diary_slot_presenter.rb | Ruby | mit | 2,411 |
#ifndef PARSER_SIGNATURES_H
#define PARSER_SIGNATURES_H
#include "parser_state.h"
void *ParseAlloc(void *(*allocProc) (size_t));
void Parse(void *, int, const char *, struct parser_state *);
void ParseFree(void *, void (*freeProc) (void *));
#endif
| compiler-dept/event-compiler | src/parser_signatures.h | C | mit | 252 |
+++
hook = "On joining the party eight years late."
published_at = 2017-01-27T19:39:57Z
title = "Chrome"
+++
So put this in the bucket of "things that I do five years
behind the curve", but I recently switched my default
browser from Firefox to Chrome. The change wasn't exactly
by choice, but more the result of [new s... | brandur/sorg | content/fragments/chrome.md | Markdown | mit | 2,897 |
var gulp = require('gulp'),
mocha = require('gulp-spawn-mocha');
gulp.task('test', function(){
return gulp.src('test/*.js').pipe(mocha());
});
gulp.task('default', ['test']); | gengojs/sails-hook-gengojs | gulpfile.js | JavaScript | mit | 181 |
exports.list = require('./list')
exports.game = require('./game')
| elevate-pulsar/smwcentral.net-jsonapi | src/index.js | JavaScript | mit | 66 |
require 'tracker_api'
require_relative 'pivotal/tracker'
module Amanuensis
module Pivotal
include ActiveSupport::Configurable
include Validatable
config_accessor(:token)
config_accessor(:project)
validate_presence_of :token, :project
end
Tracker.register :pivotal, Pivotal::Tracker.new
end... | alaibe/amanuensis | lib/amanuensis/pivotal.rb | Ruby | mit | 321 |
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
struct _guild_battle_reserved_schedule_no_data_result_zocl
{
char byToday;
char byTommorow;
char byDayId;
};
END... | goodwinxp/Yorozuya | library/ATF/_guild_battle_reserved_schedule_no_data_result_zocl.hpp | C++ | mit | 335 |
<?php namespace GDoctor\Common\Models;
use Illuminate\Database\Eloquent\Model;
class WechatAppMenu extends Model {
/**
* 表名
*/
protected $table = 'wehcat_app_menu';
/**
* 禁用id自增
*/
public $incrementing = false;
}
| suffrajet/gdoctor | framework/src/Common/Models/WechatAppMenu.php | PHP | mit | 266 |
# ListeningServerC
#### A file server in C++ utilizing TCP sockets for linux computers.
The client must send a request in the form `GET <FILEPATH ON SERVER>`
This server works as follows:
1. It sets up its memory and configures the server to use TCP sockets.
2. It pulls a linked list of structures that contains t... | JamesSmitty/ListeningServerC | README.md | Markdown | mit | 2,021 |
/**
*
*
* @author fuyg
* @date 2014-12-16
*/
define(function (require) {
var TRIM = require('../core/str/trim'),
STARTS_WITH = require('../core/str/startsWith'),
_ = require('../core/underscore'),
/**
* @param {String} line
* @return {Integer} level >= 1
*
... | FuDesign2008/htmlize | src/htmlize/parse.js | JavaScript | mit | 7,742 |
using System;
using NetOffice;
using NetOffice.Attributes;
namespace NetOffice.MSProjectApi.Enums
{
/// <summary>
/// SupportByVersion MSProject 11, 12, 14
/// </summary>
///<remarks> MSDN Online Documentation: http://msdn.microsoft.com/en-us/en-us/library/office/ff861190(v=office.14).aspx </remarks>
[Support... | NetOfficeFw/NetOffice | Source/MSProject/Enums/PjIMEMode.cs | C# | mit | 2,390 |
<?php
/*
* 2007-2011 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive ... | j1v3/lakombi | src/LaKombi/ShopBundle/admin/tabs/AdminWebservice.php | PHP | mit | 12,855 |
/* MIT License
*
* Copyright (c) 2017 Jon Haggblad
*
* 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... | octol/optional-monad | test/test1.cpp | C++ | mit | 3,590 |
from flask import Blueprint
from flask import current_app
from flask import request
from flask import jsonify
from flask import abort
from flask import render_template
from flask import redirect
from flask import url_for
from flask import flash
from werkzeug.exceptions import NotFound
from printus.web.models import Re... | matrixise/printus | old_code/printus/web/views/general/__init__.py | Python | mit | 2,782 |
"""
commswave
=========
Takes device communications up and down according to a timefunction.
Comms will be working whenever the timefunction returns non-zero.
Configurable parameters::
{
"timefunction" : A timefunction definition
"threshold" : (optional) Comms will only work when the timefunction ... | DevicePilot/synth | synth/devices/commswave.py | Python | mit | 3,252 |
//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2022 Ryo Suzuki
// Copyright (c) 2016-2022 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include <cfloat>
# include <Si... | Siv3D/OpenSiv3D | Siv3D/src/Siv3D/NavMesh/NavMeshDetail.hpp | C++ | mit | 1,911 |
from setuptools import setup, find_packages
with open('requirements.txt') as reqs:
inst_reqs = reqs.read().split('\n')
setup(
name='autobot',
version='0.1.0',
packages=find_packages(),
author='Mikael Knutsson',
author_email='mikael.knutsson@gmail.com',
description='A bot framework made acc... | mikn/autobot | setup.py | Python | mit | 648 |
<?php
/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| Here you may define all of your model factories. Model factories give
| you a convenient way to create models for testing and seeding yo... | leigh-hackspace/hackspace-management-sistim | database/factories/ModelFactory.php | PHP | mit | 634 |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
//session_start();
class Permiso extends MX_Controller
{
public function __construct()
{
parent::__construct();
$this->load->model('permiso_model');
$this->load->model('general_model');
$this->load->l... | Chambeishon/opc.grupohi.mx | application/modules/grl/controllers/Permiso.php | PHP | mit | 1,918 |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | Star-Lowd/Bookstore-Management-System | Implementation/BSMS/BSMS/Properties/Settings.Designer.cs | C# | mit | 1,622 |
---
layout: post
title: There's No Such Thing as No Project Management
published: true
---
Project management. Every engineer seems to loathe the term and also what it
describes. It has that word *management* in there. It's different than code.
It's not code. So naturally whenever this comes up, all the engineers make... | mrtazz/unwiredcouch.com | src/2015/05/04/project-management.md | Markdown | mit | 6,419 |
<?php
/*
* This file is part of the Presque package.
*
* (c) Justin Rainbow <justin.rainbow@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Presque\Worker;
class WorkerFactory implements WorkerFactoryInterfa... | justinrainbow/presque | src/Presque/Worker/WorkerFactory.php | PHP | mit | 409 |
<?php
define('QB_APP_ID', "30840");
define('QB_AUTH_KEY', "x-KtuXMwmCtnfLS");
define('QB_AUTH_SECRET', "yEeZEM3hb5hC2PZ");
define('QB_API_ENDPOINT', "https://api.quickblox.com");
define('QB_PATH_SESSION', "session.json");
define('QB_PATH_USER', "users.json");
define('QB_PATH_AUTH', "auth.json");
define('QB_PATH_... | WangYinXing/ipray_server | application/libraries/Qbconfig.php | PHP | mit | 471 |
'use strict';
const { thinscriptWasm } = require('/usr/lib/wasm');
module.exports = (args, env, cb) => {
try {
env.stdio.write(thinscriptWasm.helloWorld());
cb(0);
} catch(e) {
env.stdio.writeError(e);
cb(1);
}
}
| facekapow/rjst | usr/bin/helloWorldThinscript.js | JavaScript | mit | 237 |
using Microsoft.Xna.Framework;
using System;
namespace Gem.Engine.AI.Steering
{
public class Agent
{
public Agent(Func<Vector2> velocity, Func<Vector2> position)
{
VelocityProvider = velocity;
PositionProvider = position;
}
internal Func<Vector2> Positi... | gmich/Gem | Gem.Engine/AI/Steering/Agent.cs | C# | mit | 724 |
using Assets.Scripts.Services;
using Parse;
using ParseUnitySampleCommon;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using UnityEngine.UI;
namespace Assets.Scripts.Menus
{
public class LoggedInState : MonoBehaviour
{
public Button logoutBut... | mikecann/ParseUnitySampleProject | ParseUnitySampleProject/Assets/Scripts/Menus/LoggedInState.cs | C# | mit | 977 |
/* eslint-disable */
/** !
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.14.1
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of chargrequestAnimationFramee, to any person obtaining a copy
* of this ... | heyui/heyui | src/plugins/popper/index.js | JavaScript | mit | 85,449 |
<div class="profile">
<section id="wrapper">
<header id="header">
{% if site.aboutPage %}
<a href="{{ site.baseurl }}/about">
<img id="avatar" class="2x" src="{{ "/assets/images/avatar.png" | prepend: site.baseurl }}"/>
</a>
{% else %}
<img id="avatar" class="2x" src=... | itsdn/kactus | _includes/profile.html | HTML | mit | 505 |
<?php
namespace AppBundle\Entity;
class Member
{
private $name;
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
}
| geof62/gamesite | src/AppBundle/Entity/Member.php | PHP | mit | 222 |
---
layout: post
title: "The iPhone X’s new neural engine exemplifies Apple’s approach to AI"
posturl: https://www.theverge.com/2017/9/13/16300464/apple-iphone-x-ai-neural-engine
tags:
- Apple
- AI chips
---
{% include post_info_header.md %}
Even though some people are saying this, Apple doesn't seem to be behind the... | polgarp/alg-exp | _posts/archive/26-20170926/2017-09-25-The-iPhone-X-s-new-neural-engine-exemplifies-Apple-s-approach-to-AI.md | Markdown | mit | 694 |
if ENV.fetch('COVERAGE', false)
require 'simplecov'
SimpleCov.start 'rails' do
add_filter '/lib/'
minimum_coverage 95
if ENV['CIRCLE_ARTIFACTS']
coverage_dir File.join(
'..', '..', '..', ENV['CIRCLE_ARTIFACTS'], 'coverage')
end
end
end
require 'webmock/rspec'
# http://rubydoc.info... | jaisonerick/kratos | templates/spec_helper.rb | Ruby | mit | 743 |
import pidcrypt from 'pidcrypt'
import {
path,
pipe,
type,
equals
} from 'rambda'
import {
toByteArray,
decodeBase64,
encodeBase64,
convertFromHex
} from 'pidcrypt/pidcrypt_util'
import 'pidcrypt/asn1'
import 'pidcrypt/rsa'
import createError from './error'
const { RSA, ASN1 } = pidcrypt
const CHARS =... | wagerfield/ig-api | src/utils.js | JavaScript | mit | 1,329 |
"""File related wrapper functions to streamline common use cases"""
import manage as manage
from manage import find_file, find_file_re, list_dir
import operation as operation
from operation import hash_file, read_file, slice_file, write_file
| qevo/py_file_helper | file_helper/__init__.py | Python | mit | 243 |
import * as React from "react";
import PropTypes from "prop-types";
import { withWrapper } from "../Icon";
const Vector = React.forwardRef(({ size, color, ...props }, ref) => (
<svg
width={size}
height={size}
viewBox="2 2 20 20"
xmlns="http://www.w3.org/2000/svg"
ref={ref}
aria-hidden={!props... | CraveFood/farmblocks | packages/icon/src/jsx/SmCross.js | JavaScript | mit | 939 |
<div class="panel-heading row">
<h3 class="panel-title text-center">Best Variety Show</h3>
</div>
<div class="panel-body">
<ul class="list-group">
<li class="list-group-item">
<div class="radio">
<label>
<input type="radio" name="BestVarietyShow" ng-model="vm.varietyShow" value="Showtim... | caninojories/jrc_admin | front-end/views/paragalaQuestions/questionnaire/thirteen.html | HTML | mit | 749 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""test_03b_subcmd_primer3.py
Test primer3 subcommand for pdp script. These tests require primer3 v2+.
This test suite is intended to be run from the repository root using:
pytest -v
(c) The James Hutton Institute 2017-2019
Author: Leighton Pritchard
Contact:
leighton... | widdowquinn/find_differential_primers | tests/test_03b_subcmd_primer3.py | Python | mit | 8,352 |
// (C) Copyright 2002-2007 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warr... | Xiongpq/FontCenter | trunk/src/Client/Warrentech.FontCenter.Client/Warrentech.FontCenter.Client/DocData.cpp | C++ | mit | 1,895 |
import factory from '../octicon.js';
// This is an auto-generated ES2015 icon from the modularize script. Please do not modify this file.
var ruby = factory('ruby', 16, 16, {"fill-rule":"evenodd","d":"M13 6l-5 5V4h3l2 2zm3 0l-8 8-8-8 4-4h8l4 4zm-8 6.5L14.5 6l-3-3h-7l-3 3L8 12.5z"}, ["code","language"]);
export defaul... | hiendv/octicons-modular | packages/octicons-modular/es/icons/ruby.js | JavaScript | mit | 328 |
<div id="comments" data-foreign-type="{!! $foreignType !!}" data-foreign-id="{!! $foreignId !!}">
@foreach ($comments as $comment)
@include('comments.comment')
@endforeach
{!! $comments->render() !!}
</div>
@if (user())
{!! HTML::script('vendor/contentify/comments.js') !!}
@else
<div class="... | Contentify/Contentify | resources/views/comments/show.blade.php | PHP | mit | 523 |
import os
def run(name='test1.py'):
filename = os.getcwd() + name
exec(compile(open(filename).read(), filename, 'exec'))
| karljakoblarsson/Rattan-Geometry | Utils.py | Python | mit | 130 |
<?php
/**
* Created by JetBrains PhpStorm.
* User: Aza
* Date: 03.06.13
* Time: 13:25
* To change this template use File | Settings | File Templates.
*/
namespace Nurix\CatalogBundle\Entity;
use Doctrine\ORM\EntityRepository;
class ExchangeRepository extends EntityRepository{
public function getRate($... | nakusyat/burut | src/Nurix/CatalogBundle/Entity/ExchangeRepository.php | PHP | mit | 914 |
---
title: 'Quick Tip Git: "Limpar" as branches locais sem referência remota e que já foram "merged"'
date: '00:00 01/19/2018'
taxonomy:
category:
- blog
tag:
- tips
- git
---
A dica rápida da vez fica por conta do Git. Quando trabalhamos em um ambiente colaborativo, como o [GitHub](htt... | vschettino/blog | pages/01.blog/dica_git_remover_branches_locais_merged/item.md | Markdown | mit | 2,068 |
//! AWS API requests.
//!
//! Wraps the Hyper library to send PUT, POST, DELETE and GET requests.
extern crate lazy_static;
use std::env;
use std::io::Read;
use std::io::Error as IoError;
use std::error::Error;
use std::fmt;
use std::collections::HashMap;
use hyper::Client;
use hyper::Error as HyperError;
use hyper:... | noggleboggle/rusoto | src/request.rs | Rust | mit | 4,520 |
StringManip
===========
A helper string class for C++ that adds string functionality from Ruby and Objective-C Foundation library.
## Usage
Just copy the StringManip.h and StringManip.cpp into your project, then remember to ```#include "StringManip.h"``` in the relevant files.
| tfrank64/StringManip | README.md | Markdown | mit | 283 |
#pragma once
#include "chash.h"
template<class key_t, class unique_t, class hasher_t, class key_equal_t, class allocator_t>
struct chash_set_config_t
{
typedef key_t key_type;
typedef key_t mapped_type;
typedef key_t value_type;
typedef hasher_t hasher;
typedef key_equal_t key_equal;
typedef ... | TetrisAI/tetris_ai_runner | src/chash_set.h | C | mit | 1,205 |
<?php
namespace Acacha\AdminLTETemplateLaravel\Console;
use Acacha\Filesystem\Filesystem;
use Illuminate\Console\Command;
/**
* Class MakeView.
*
* @package Acacha\AdminLTETemplateLaravel\Console
*/
class MakeView extends Command
{
/**
* The filesystem instance.
*
* @var \Acacha\Filesystem\Fi... | wpouseele/adminlte-laravel | src/Console/MakeView.php | PHP | mit | 2,218 |
<html>
<head>
<meta http-equiv="refresh" content="0; url=https://www.dropbox.com/request/gaLlPaZ3avkMlWcikmdr">
<link rel="canonical" href="https://www.dropbox.com/request/gaLlPaZ3avkMlWcikmdr" />
</head>
</html>
| Visgean/blog | requests.html | HTML | mit | 223 |
When /^I start the "([^"]*)" survey$/ do |name|
steps %Q{
When I go to the surveys page
Then I should see "#{name}\"
When I press "Take it"
}
end
Then /^there should be (\d+) response set with (\d+) responses? with:$/ do |rs_num, r_num, table|
ResponseSet.count.should == rs_num.to_i
Response.count.... | tcw48/surveyor_FriendCompare | features/step_definitions/surveyor_steps.rb | Ruby | mit | 4,619 |
import angular from 'angular';
import {loginComponent} from './login.component';
const loginConfig = ($stateProvider) => {
'use strict';
$stateProvider
.state('app.login', {
url: '/login',
layout: 'mainMenu',
component: 'login'
});
};
loginConfig.$inject = [... | GinesOrtiz/angularES6seed | src/app/components/auth/login/index.js | JavaScript | mit | 464 |
/*
* Copyright (C) 2009 Apple Inc. 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 copyright
* notice, this list of conditi... | lordmos/blink | Source/core/accessibility/AXARIAGridRow.cpp | C++ | mit | 4,315 |
# Copyright (C) 2010 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the ... | lordmos/blink | Tools/Scripts/webkitpy/layout_tests/port/test.py | Python | mit | 29,134 |
# League of Legends chest status
[](https://travis-ci.org/rmehner/lol-chest-status)
[](https://greenkeeper.io/)
## Check if you can get a chest with that cha... | rmehner/lol-chest-status | README.md | Markdown | mit | 1,416 |
/*
pygame - Python Game Library
Copyright (C) 2000-2001 Pete Shinners
Copyright (C) 2007 Rene Dudfield, Richard Goedeken
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
... | gmittal/aar-nlp-research-2016 | src/pygame-pygame-6625feb3fc7f/src/transform.c | C | mit | 89,031 |
PER_PAGE = 100
SORT_MAP = {n: 'last_comment_time', v: 'view_counter', f: 'start_time', m: 'mylist_counter', r: 'comment_counter', l: 'length_seconds'}
ORDER_MAP = {a: 'asc', d: 'desc'}
@q = params['q']
@page = params['page'].to_i || 1
@sort = params['sort']
@sort = 'nd' unless %w{nd vd fd md na ... | mktoho/page51 | top.rb | Ruby | mit | 662 |
var log4js = require("log4js"),
log = log4js.getLogger("megapis-worker"),
request = require("request"),
cheerio = require("cheerio"),
_ = require("lodash"),
async = require("async"),
util = require("util");
var MegapisWorker = require("megapis-worker").MegapisWorker;
function PrimeBooksWorke... | kielni/megapis | workers/prime_books/index.js | JavaScript | mit | 3,957 |
# JPEG ファイルへの GPS 情報追加サンプル
## コンパイル
```sh
./mvnw compile
```
## 実行
`test.jpg` という名前の jpeg ファイルをプロジェクトルートに配置したうえで、以下コマンドを実行。
```sh
./mvnw exec:java
```
`test_dest.jpg` という名前の jpeg ファイルがプロジェクトルートに生成される。
## プロジェクト作成
```sh
mvn archetype:generate \
-DarchetypeArtifactId=maven-archetype-quickstart \
-Dinteractiv... | mikoto2000/MiscellaneousStudy | java/exif/firststep/README.md | Markdown | mit | 2,029 |
# Makefile
OBJECTS = main4.o dfsw.o
HEADERS = dfsw.h
TARGET = test
all: ${TARGET}
clean:
rm -f ${TARGET} ${OBJECTS}
${TARGET}: ${OBJECTS}
cc -g -o $@ ${OBJECTS}
${OBJECTS}: ${HEADERS} | her0m31/Studys | SoftC/10/Makefile | Makefile | mit | 194 |
package tbsc.server.db.service;
import tbsc.server.db.DB;
import tbsc.server.security.PasswordHasher;
import tbsc.server.security.RandomStringGenerator;
import tbsc.shared.model.User;
public class UserService {
public static User createUser(String username, String password) {
String md = new PasswordHasher().h... | njustesen/tbsc | src/main/java/tbsc/server/db/service/UserService.java | Java | mit | 922 |
<?php
namespace Quartz\Tests\Triggers;
use PHPUnit\Framework\TestCase;
use Quartz\Core\SchedulerException;
use Quartz\Core\Trigger;
use Quartz\Triggers\SimpleTrigger;
class SimpleTriggerTest extends TestCase
{
public function testShouldImplementTriggerInterface()
{
$this->assertInstanceOf(Trigger::cla... | php-quartz/quartz-dev | pkg/quartz/Tests/Triggers/SimpleTriggerTest.php | PHP | mit | 4,258 |
exports.ADD_ITEM_TO_IMPORT_LIST = function(state, contentNode) {
state.itemsToImport.push(contentNode);
};
exports.REMOVE_ITEM_FROM_IMPORT_LIST = function(state, contentNodeId) {
state.itemsToImport = state.itemsToImport.filter(function(node) {
return node.id !== contentNodeId;
});
};
exports.UPDATE_IMPORT_... | fle-internal/content-curation | contentcuration/contentcuration/static/js/edit_channel/import/vuex/importMutations.js | JavaScript | mit | 987 |
var TutorialStudyLayer = cc.Layer.extend({
label : null,
array : [
//"안녕하세요!\n뉴로스터디를 이용해주셔서 감사합니다!\n\n뉴로스터디는 뇌파를 이용한 영어 학습 도구입니다.\n\n뇌파 헤드셋을 통하여 집중력을 측정하고 이에 대한 피드백을 전달하여 사용자가 자연스럽게 집중 상태를 유지하도록 도와줍니다.\n\n이를 통하여 하루 30분 정도의 시간 투자만으로도 놀라울 정도의 학습 효과를 보장합니다.",
"본격적인 학습에 앞서 뉴로스터디의 뇌파 스터디 시스템에 대해 소개해드... | sincntx/neurostudy | src/layer/tutorial_study.js | JavaScript | mit | 3,447 |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
const u = undefined;
fun... | vikerman/angular | packages/common/locales/mt.ts | TypeScript | mit | 2,250 |
---
layout: notes
title: Differential Equations
category: math
---
{:toc}
# Differential Equations
Separable: Separate and Integrate
FOLDE: y' + p(x)y = g(x)
IF: $e^{\int{p(x)}dx}$
Exact: Mdx+Ndy = 0 $M_y=N_x$
Integrate Mdx or Ndy, make sure all terms are present
Constant Coefficients:
Plug in $e^{rt}$, solve cha... | csinva/csinva.github.io | _notes/math/differential_equations.md | Markdown | mit | 1,170 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | ademirtc/bandeirantes | lib/gft/doc/html/gft__matrix_8h.html | HTML | mit | 15,521 |
const React = require('react')
const {Cursor} = require('./prop_types')
class Chat extends React.Component {
onSubmit = (e) => {
e.preventDefault()
const input = this.refs.input.getDOMNode()
const message = input.value
input.value = ''
// push the new message onto the array in ultrawave
if... | charlieschwabacher/ultrawave-chess-example | src/interface/chat.js | JavaScript | mit | 1,974 |
import Enum from '../../lib/Enum';
export default new Enum([
'init',
'initSuccess',
'fetch',
'fetchSuccess',
'fetchError',
'fSync',
'fSyncSuccess',
'fSyncError',
'iSync',
'iSyncSuccess',
'iSyncError',
'reset',
'resetSuccess',
'clearToken',
], 'callLogActionTypes');
| u9520107/ringcentral-js-integration-commons | src/modules/CallLog/actionTypes.js | JavaScript | mit | 295 |
//For submit articles
tinymce.init({
selector: '#content',
directionality:'ltr',
language:'zh_CN',
height:400,
plugins: [
'advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker',
'searchreplace wordcount visualblocks visualchars code fullscr... | dsq-src/xslweb | app/static/js/tinymce_setup.js | JavaScript | mit | 1,358 |
<HTML>
<HEAD>
<TITLE>
ZCL_WB_VIEW
</TITLE>
<link rel="stylesheet" type="text/css" href="css/style_class.css" />
<link rel="stylesheet" type="text/css" href="css/style_function_groups.css" />
<link rel="stylesheet" type="text/css" href="css/style_object_list.css" />
</HEAD>
<BODY>
<H1>ZCL_WB_VIEW</H1>
<BR/>
... | fabiopagoti/WB-Objects | last_release/abapdoc/ZWB_OBJECTS/ZCL_WB_VIEW.html | HTML | mit | 2,154 |
import componentsModule from '../index';
describe('tl-people-you-may-know component', () => {
'use strict';
var $rootScope, $compile, elm, scope, $httpBackend, $timeout;
beforeEach(window.module(componentsModule.name));
beforeEach(inject(($injector) => {
$rootScope = $injector.get('$rootScope');
$co... | m0t0r/social-media-profile | src/components/tl-people-you-may-know/tl-people-you-may-know.spec.js | JavaScript | mit | 3,171 |
namespace Carbon.Css
{
public class CssCompatibility
{
public static readonly CssCompatibility All = new CssCompatibility();
public static readonly CssCompatibility Default = new CssCompatibility();
public CssCompatibility(
CompatibilityTable prefixed = default,... | Carbon/Css | src/Carbon.Css/Comptability/CssCompatibility.cs | C# | mit | 2,180 |
from jupyter_workflow.data import get_fremont_data
import pandas as pd
def test_fremont_data():
data = get_fremont_data()
assert all(data.columns == ['West','East','Total'])
assert isinstance(data.index,pd.DatetimeIndex)
| irenalanc/JupyterPythonPals | jupyter_workflow/tests/test_data.py | Python | mit | 234 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>doc</title>
<style>
/*github.com style (c) Vasily Polovnyov <vast@whiteants.net>*/
pre code {
display: block; padding: 0.5em;
color: #333;
background: #f8f8ff
}
pre .comment,
pre .templa... | quattromani/placewise | node_modules/grunt-contrib-nodeunit/node_modules/nodeunit/node_modules/tap/README.html | HTML | mit | 6,300 |
<?xml version="1.0" encoding="UTF-8"?>
<gpx creator="strava.com Android" version="1.1" xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.garmin.com/xmlschemas/GpxExten... | thayumanavar77/thayumanavar77.github.io | _traces/2016-11-15_strava_run.md | Markdown | mit | 271,434 |
<?php
/**
* Google Dashboard Report
* Receives :
* - $pageViews
* - $uniquePageViews
* - $avgTimeOnPage
* - $exitRate
*/
?>
<div id="analyticsChart"></div>
<?php if ( ! empty($data)) :?>
<div id="page-analytics">
<div class="metric"><div><span><?php echo lang('ionize_ga_pageviews') ?></span><... | chguoxi/ionize | themes/admin/views/google/dashboard_report.php | PHP | mit | 2,318 |
# 螺旋开发
- 将瀑布模型和快速原型模型结合起来,强调了其他模型所忽视的风险分析,特别适合于大型复杂的系统
- “螺旋模型”刚开始规模很小,当项目被定义得更好、更稳定时,逐渐展开
## 核心
- 在于不需要在刚开始的时候就把所有事情都定义的清清楚楚
- 轻松上阵,定义最重要的功能,实现它,然后听取客户的意见,之后再进入到下一个阶段
- 如此不断轮回重复,直到得到您满意的最终产品
## 步骤
1. 制定计划:确定软件目标,选定实施方案,弄清项目开发的限制条件
2. 风险分析:分析评估所选方案,考虑如何识别和消除风险
3. 实施工程:实施软件开发和验证
4. 客户评估:评价开发工作,提出修正建议,制定下一步计划
螺旋模型很大程... | zhuifeng740643787/learn-notes | other/development/spiral.md | Markdown | mit | 1,010 |
//======================================================================
// Copyright (C) 2015-2020 Winddy He. All rights reserved
// Email: hgplan@126.com
//======================================================================
using System;
using System.Collections;
using System.Collections.Generic;
us... | winddyhe/knight | knight-client/Packages/Knight-Lib/Knight.Framework.Hotfix/Runtime/HotfixGameMainLogic.cs | C# | mit | 1,366 |
using System;
using System.ComponentModel.DataAnnotations.Schema;
using BundlesOfAmaze.Shared;
namespace BundlesOfAmaze.Data
{
public class Cat : Entity
{
public long OwnerId { get; private set; }
public string Name { get; private set; }
public Gender Gender { get; private set; }
... | minshea/BundlesOfAmaze | BundlesOfAmaze.Data/Entities/Cat.cs | C# | mit | 3,669 |
<div class="row blue-mat">
<div class="breadcrumbs col-md-12">
<?php echo set_breadcrumb(); ?>
</div>
</div>
<?php display_flashmsg($this->session->flashdata());?>
<div class="container category">
<div class="row">
<form name="dropdowns" id="dropdowns" method="post" action="<?=site_url('admin/add_edit_d... | ariff-izaap/plastics | application/views/admin/general_dropdowns.php | PHP | mit | 3,314 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.