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
'use strict'; var path = require('path'); module.exports = path.join.bind(path, __dirname, '..');
stackjie/vue-pull-to
build/index.js
JavaScript
mit
99
--- title: Svett tag: svett active: false url: https://www.facebook.com/svettifi/ template: association.pug --- Navnet Svett spiller på den populært utbredte stereotypen av informatikere. Mange ser på informatikere som svette «nerder». Vi velger å spille videre på dette med et glimt i øyet. **Formål:** Foreningens fo...
megoth/ifi-ordenen
contents/association/svett/index.md
Markdown
mit
813
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Master thesis presentation &#8211; OpenLaws</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="Presentation of Master thesis @...
OpenLawsGR/OpenLawsGR.github.io
publications/2016/10/19/master-thesis-presentation/index.html
HTML
mit
7,403
<?php /* * This file is part of the Asset Injection package, an RunOpenCode project. * * (c) 2015 RunOpenCode * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace RunOpenCode\AssetsInjection\Tests\Mockup; use RunOpenCode\Asse...
RunOpenCode/assets-injection
test/Mockup/DummyCompilerPass.php
PHP
mit
1,708
--- layout: default title: Pegmatite github: CompilerTeaching/Pegmatite --- Pegmatite design overview ------------------------- This is a fork and extensive rewrite of Achilleas Margaritis's ParserLib. It has the following goals: - Idiomatic C++11 - Simple use - Reuseable, reentrant grammars with multiple action de...
CompilerTeaching/CompilerTeaching.github.io
pegmatite/index.markdown
Markdown
mit
2,771
var markdown = window.markdownit(); $(document).ready(function() { var $wish = $('#wish'); var todoNotificationArea = $('#todos .notification-area'); var todoNotificationIcon = $('#todos .notification-area > i'); var todoNotificationText = $('#todos .notification-area > span'); $('#news-stream ...
arpitbbhayani/penny
app/static/js/index.js
JavaScript
mit
13,851
// // AWSAppDelegate.h // TAWS // // Created by CocoaPods on 05/27/2015. // Copyright (c) 2014 suwa.yuki. All rights reserved. // @import UIKit; @interface AWSAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
classmethod/TAWS-iOS
Example/TAWS/AWSAppDelegate.h
C
mit
270
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>metacoq-erasure: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap...
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.08.1-2.0.5/extra-dev/8.10.dev/metacoq-erasure/1.0~alpha+8.8.html
HTML
mit
7,992
# This file is part of beets. # Copyright 2016, Adrian Sampson. # # 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, ...
beetbox/beets
beets/dbcore/query.py
Python
mit
29,107
require_relative '../animation' module NixonPi module Animations class CountFromToAnimation < Animation register :count_from_to, self accepted_commands :start_value, :single_digit? # TODO: unfinished and untested def initialize(options = {}) super(options) @options[:singl...
danielkummer/nixon-pi
lib/nixonpi/animations/tube/count_up_all_animation.rb
Ruby
mit
704
FROM python:3 ADD ./simplesocial /simplesocial WORKDIR /simplesocial RUN pip install -r requirements.txt EXPOSE 8000 CMD [ "python", "manage.py", "runserver", "0.0.0.0:8000"]
srijannnd/Login-and-Register-App-in-Django
Dockerfile
Dockerfile
mit
179
--- layout: post title: "Class Based Views" date: 2013-05-13 07:04 tags: [python, django, yakindanegitim] icons: [python] --- Web development is a bit repetitive and web frameworks try to reduce this burden. One of the best features of Django for making object manipulation easier is class based views(CBV). We are usua...
ferhatelmas/ferhatelmas.github.com
hack/yakindanegitim/_posts/2013-05-13-class-based-views.markdown
Markdown
mit
4,908
local Swapout = require('sconce.Swapout') return function(tester) local suite = torch.TestSuite() function suite.test_swapout_always_add() local swapout = Swapout.new(1.0) local actual = swapout:forward({torch.Tensor{1, 2}, torch.Tensor{3, 2}}) local expected = torch.Tensor{4, 4} tester:eq(actual,...
anibali/sconce
test/test_swapout.lua
Lua
mit
907
"use strict"; var http_1 = require("@angular/http"); var AppSettings = (function () { function AppSettings() { } Object.defineProperty(AppSettings, "API_OPTIONS", { get: function () { var headers = new http_1.Headers({ 'Content-Type': 'application/json' }), options = new http_1.RequestOp...
cristirosu/rpg-scheduler-front
src/app/shared/services/app.settings.js
JavaScript
mit
1,301
const fs = require('fs') const path = require('path') const {generateBabelEnvLoader, getConfig} = require('./common') const buildCache = {} module.exports = (params) => { const baseConfig = getConfig(params) const config = Object.assign({}, baseConfig) config.outputPath = path.join(__dirname, '../dist-' + confi...
bourbest/keeptrack
client/tasks/tool-initdb.js
JavaScript
mit
868
using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using tomware.Microwf.Domain; using tomware.Microwf.Infrastructure; namespace tomware.Microwf.Engine { public interface IJobQueueControllerService { Task<IEnumerable<WorkItemViewModel>> GetSnapshotAsync(); Task<PaginatedLis...
thomasduft/microwf
src/microwf.AspNetCoreEngine/Services/JobQueueControllerService.cs
C#
mit
2,595
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__wchar_t_connect_socket_w32spawnl_18.c Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-18.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: connect_socket Read data u...
maurer/tiamat
samples/Juliet/testcases/CWE78_OS_Command_Injection/s05/CWE78_OS_Command_Injection__wchar_t_connect_socket_w32spawnl_18.c
C
mit
5,742
require "pivotal/sass/version" module Pivotal module Sass class Engine < ::Rails::Engine end end end
pivotal/pivotal-styles-sass
lib/pivotal/sass.rb
Ruby
mit
114
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users', function (Blueprint $table) { $table...
Ranthalion/LevelUp
database/migrations/2014_10_12_000000_create_users_table.php
PHP
mit
787
<html><body> <h4>Windows 10 x64 (19041.208) 2004</h4><br> <h2>_HEAP_DESCRIPTOR_KEY</h2> <font face="arial"> +0x000 Key : Uint4B<br> +0x000 EncodedCommittedPageCount : Pos 0, 16 Bits<br> +0x000 LargePageCost : Pos 16, 8 Bits<br> +0x000 UnitCount : Pos 24, 8 Bits<br> </font></body...
epikcraw/ggool
public/Windows 10 x64 (19041.208) 2004/_HEAP_DESCRIPTOR_KEY.html
HTML
mit
328
<?php /* * */ namespace RDF\JobDefinitionFormatBundle\Type; /** * * * @author Richard Fullmer <[email protected]> */ class CMYKColor { /** * @var float */ protected $cyan; /** * @var float */ protected $magenta; /** * @var float */ protected $yell...
richardfullmer/RDFJobDefinitionFormatBundle
Type/CMYKColor.php
PHP
mit
1,730
<html> <head> <title> Install SEO Commerce</title> <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"> <style> #container { margin:auto; } label, input { display: block; } </style> </head> <body> <div class="container"> <form action="pasang_p.php" method="POST"> <label> Nama Situs </label> <input t...
idmahardika/SEO_commerce
pasang.php
PHP
mit
634
Turbocoin Core version 0.9.0 is now available from: https://turbocoin.us/bin/0.9.0/ This is a new major version release, bringing both new features and bug fixes. Please report bugs using the issue tracker at github: https://github.com/turbocoin/turbocoin/issues How to Upgrade -------------- If you are runnin...
Phonemetra/TurboCoin
doc/release-notes/release-notes-0.9.0.md
Markdown
mit
14,787
{{ define "main" }} <!-- Header --> {{ partial "header" . }} <div class="container"> <section id="projects"> <h4 class="my-5">{{ .Site.Data.projects.name }}</h4> <div class="panel"> <div class="panel-body"> {{ range $el := .Site.Data.projects.source }} <h5> ...
nurlansu/hugo-sustain
layouts/_default/projects.html
HTML
mit
560
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace DebtSnowBall2017 { class LoanList { private List<Loan> loanList; public LoanList() { this.loanList = new List<Loan>(); ...
passanpm/DebtSnowBall
DebtSnowBall2017/DebtSnowBall2017/LoanList.cs
C#
mit
2,759
--- layout: default title: Отправить совет! --- <div class="grid_8 alpha omega white"> <h2>Отправить совет!</h2> <iframe src="http://spreadsheets.google.com/embeddedform?key=pNxLaOX4yIJnLpmHYEDxXXQ" width="590" height="616" frameborder="0" marginheight="0" marginwidth="0">Загрузка...</iframe> </div>
gitready/ru
submit.html
HTML
mit
341
package render import ( "github.com/gin-gonic/gin" ) /* ================================================================================ * Render 工具模块 * qq group: 582452342 * email : [email protected] * author : 美丽的地球啊 - mliu * ================================================================================ ...
sanxia/ging
render/error.go
GO
mit
601
/* * _____ _ _ _ _____ _ _ _ _____ _ __ _____ _____ * / ___| | | | | | | |_ _| | | / / | | | ____| | | / / | ____| | _ \ * | | | | | | | | | | | | / / | | | |__ | | __ / / | |__ | |_| | * | | _ | | | | |...
stormHan/gpu_rvd
Gpu_Rvd/header/thid_party/glut_viewer/glut_viewer_gui.cpp
C++
mit
25,552
<?php /** * Description of aSites * * @author almaz */ class aSitesUsers extends Action { protected $defaultAct = 'List'; protected function configure() { require_once $this->module->pathModels . 'as_Sites.php'; require_once $this->module->pathModels . 'as_SitesUsers.php'; $authModu...
AlmazKo/Brill
Brill/Modules/AutoSubmitter/Actions/aSitesUsers.php
PHP
mit
4,519
package cz.muni.fi.pa165.mushrooms.service.exceptions; /** * @author bkompis */ public class EntityOperationServiceException extends MushroomHunterServiceDataAccessException { public <T> EntityOperationServiceException(String what, String operation, T entity, Throwable e) { super("Could not " + operatio...
PA165-MushroomHunter/MushroomHunter
service/src/main/java/cz/muni/fi/pa165/mushrooms/service/exceptions/EntityOperationServiceException.java
Java
mit
563
#!/usr/bin/env python import subprocess import praw from hashlib import sha1 from flask import Flask from flask import Response from flask import request from cStringIO import StringIO from base64 import b64encode from base64 import b64decode from ConfigParser import ConfigParser import OAuth2Util import os import mar...
foobarbazblarg/stayclean
stayclean-2018-march/serve-signups-with-flask.py
Python
mit
8,581
#![cfg_attr(all(feature = "nightly", test), feature(test))] #![cfg(all(feature = "nightly", test))] extern crate test; extern crate cxema; #[cfg(test)] use cxema::sha2::{Sha256}; use cxema::digest::Digest; use test::Bencher; #[bench] pub fn sha256_10(bh: &mut Bencher) { let mut sh = Sha256::new(); let bytes...
alexyer/cxema
benches/sha256_bench.rs
Rust
mit
818
using System.Collections.Generic; using JsonApiDotNetCore.Resources; using JsonApiDotNetCore.Resources.Annotations; using JsonApiDotNetCore.Serialization.Objects; namespace JsonApiDotNetCore.Serialization.Building { /// <summary> /// Responsible for converting resources into <see cref="ResourceObject" />s give...
Research-Institute/json-api-dotnet-core
src/JsonApiDotNetCore/Serialization/Building/IResourceObjectBuilder.cs
C#
mit
1,337
# Wir backen uns ein Mandelbrötchen ![Screenshot](images/mandelbrotmenge.jpg) Die [Mandelbrot-Menge](https://de.wikipedia.org/wiki/Mandelbrot-Menge) ist die zentrale Ikone der Chaos-Theorie und das Urbild aller Fraktale. Sie ist die Menge aller komplexen Zahlen *c*, für welche die durch $$ \begin{align} z_{0} & = 0\...
kantel/processingpy
docs/mandelbrot.md
Markdown
mit
3,571
<html> <head> <title>User agent detail - Mozilla/5.0 (Linux; U; Android 4.0.3; zh-tw; ME171 Build/IML74K) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css"> <link ...
ThaDafinser/UserAgentParserComparison
v4/user-agent-detail/e6/ea/e6eaf7e7-11e5-4133-96e9-37b82f74ebf9.html
HTML
mit
46,902
<html> <head> <script src='https://surikov.github.io/webaudiofont/npm/dist/WebAudioFontPlayer.js'></script> <script src='0410_Aspirin_sf2_file.js'></script> <script> var selectedPreset=_tone_0410_Aspirin_sf2_file; var AudioContextFunc = window.AudioContext || window.webkitAudioContext; var audioContext ...
surikov/webaudiofontdata
sound/0410_Aspirin_sf2_file.html
HTML
mit
7,832
'use strict'; var page = 'projects'; module.exports = { renderPage: function(req, res) { if (!req.user) { res.redirect('/login'); } else { res.render(page, { helpers: { activeClass: function(section) { if (section === 'projects') { return 'active'; ...
bobholt/genealogists-friend
app/controllers/project.js
JavaScript
mit
472
[![Deploy to now](https://deploy.now.sh/static/button.svg)](https://deploy.now.sh/?repo=https://github.com/zeit/next.js/tree/master/examples/with-jsx) # JSX Next.js example This is a really simple project that show the usage of Next.js with JSX. ## How to use it? ``` npm install # to install dependencies npm ru...
nelak/next.js
examples/with-jsx/README.md
Markdown
mit
349
Search = function(data, input, result) { this.data = data; this.$input = $(input); this.$result = $(result); this.$current = null; this.$view = this.$result.parent(); this.searcher = new Searcher(data.index); this.init(); }; Search.prototype = $.extend({}, Navigation, new function() { var suid = 1; ...
gadzorg/gorg_mail
doc/app/js/search.js
JavaScript
mit
2,999
version https://git-lfs.github.com/spec/v1 oid sha256:505b4ccd47ed9526d0238c6f2d03a343ce476abc1c4aa79a9f22cabcbd0a3c16 size 12575
yogeshsaroya/new-cdnjs
ajax/libs/require.js/0.22.0/require.min.js
JavaScript
mit
130
#include "ConfirmationMenu.h" ConfirmationMenu::ConfirmationMenu(CarrotQt5* mainClass, std::function<void(bool)> callback, const QString& text, const QString& yesLabel, const QString& noLabel) : MenuScreen(mainClass), text(text) { menuOptions.append(buildMenuItem([this, callback]() { root->popState();...
soulweaver91/project-carrot
src/menu/ConfirmationMenu.cpp
C++
mit
1,509
'use strict'; //Ghost service used for communicating with the ghost api angular.module('ghost').factory('Ghost', ['$http', 'localStorageService', function($http, localStorageService) { return { login: function() { return $http.get('api/ghost/login'). success(function(dat...
newcrossfoodcoop/nxfc
modules/ghost/client/services/ghost.client.service.js
JavaScript
mit
1,804
from flask_webapi import status from unittest import TestCase class TestStatus(TestCase): def test_is_informational(self): self.assertFalse(status.is_informational(99)) self.assertFalse(status.is_informational(200)) for i in range(100, 199): self.assertTrue(status.is_informati...
viniciuschiele/flask-webapi
tests/test_status.py
Python
mit
1,233
/* * Copyright 2014 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
ktg/openFood
src/main/java/uk/ac/nott/mrl/gles/program/GraphProgram.java
Java
mit
5,077
# nazdrave Като Untappd ама за ракия
bgstartupidei/nazdrave
README.md
Markdown
mit
51
Omnom App ========= This is the example app for Omnom. See [Omnom](https://github.com/tombenner/omnom) for details. License ------- Omnom App is released under the MIT License. Please see the MIT-LICENSE file for details.
tombenner/omnom-app
README.md
Markdown
mit
225
package org.sfm.tuples; public class Tuple20<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> extends Tuple19<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> { private final T20 element19; public Tuple20(T1 element0, T2 element1,...
tsdl2013/SimpleFlatMapper
sfm/src/main/java/org/sfm/tuples/Tuple20.java
Java
mit
3,155
# Supported tags and respective `Dockerfile` links - [`8.3.0-alpha1-apache`, `8.3-rc-apache`, `rc-apache`, `8.3.0-alpha1`, `8.3-rc`, `rc` (*8.3-rc/apache/Dockerfile*)](https://github.com/docker-library/drupal/blob/a5a6b1294bd3a987d6410887ba895e5649dc163c/8.3-rc/apache/Dockerfile) - [`8.3.0-alpha1-fpm`, `8.3-rc-fpm`, `...
vmassol/docs
drupal/README.md
Markdown
mit
10,246
<?php $districts = array('Ampara', 'Anuradhapura', 'Badulla', 'Batticaloa', 'Colombo', 'Galle', 'Gampaha', 'Hambantota', 'Jaffna', 'Kaluthara', 'Kandy', 'Kilinochchi', 'Kegalle', 'Mannar', 'Matale', 'Matara', 'Monaragala', 'Mulattivu', 'Nuwaraeliya', 'Polonnaruwa', 'Rathnapura', 'Trincomalee', 'Vavuniya'); ?> <!DOCTY...
buddhiv/DatabaseProject
school_views/login.php
PHP
mit
9,115
/* * file: twi.h * created: 20160807 * author(s): mr-augustine * * These are the Two-Wire Interface (TWI) bit mask definitions * They were copied from the following site: * http://www.nongnu.org/avr-libc/user-manual/group__util__twi.html * * The mnemonics are defined as follows: * TW_MT_xxx: Master Transmitte...
mr-augustine/kintobor
demo_sgcom/twi.h
C
mit
2,112
/* * This file is part of ViaVersion - https://github.com/ViaVersion/ViaVersion * Copyright (C) 2016-2021 ViaVersion and contributors * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, eith...
MylesIsCool/ViaVersion
common/src/main/java/com/viaversion/viaversion/protocols/protocol1_12_2to1_12_1/Protocol1_12_2To1_12_1.java
Java
mit
2,084
//config file for bae if(sumeru.BAE_VERSION){ sumeru.config.database({ dbname : '', user: '',//bae 3.0 required password: ''//bae 3.0 required }); sumeru.config({ site_url : '' //with tailing slash }); }
Clouda-team/Cloudajs-examples
ExternalData/clouda_request_data/app/server_config/bae.js
JavaScript
mit
251
.preloader-background { display: flex; align-items: center; justify-content: center; background-color: #eee; position: fixed; z-index: 100; top: 0; left: 0; right: 0; bottom: 0; } .collapsible header { background-color: #546e7a !important; }
gmcfiesta/gmcfiesta.github.io
index.css
CSS
mit
267
#include <cassert> #include <cmath> #include "gtest/gtest.h" #include "interlude.hpp" // defined in the header // #define MAT_SIZE 5 using std::cout; using std::endl; // void matDiagSum(int a[][MAT_SIZE], int rows, int cols){ // } // 1 2 3 4 5 1 2 3 4 5 // 6 7 8 9 10 6 8 10 12 14 ...
JonMuehlst/WORKSPACE_A
8_interlude/interlude.cpp
C++
mit
3,372
<?php /** * @author "Michael Collette" <[email protected]> * @package Metrol_Libs * @version 2.0 * @copyright (c) 2014, Michael Collette */ namespace Metrol\HTML\Table; /** * Defines an HTML Table Foot Area */ class Foot extends Section { /** */ public function __construct() { parent::__construct(...
Metrol/Metrol
HTML/Table/Foot.php
PHP
mit
364
clean_zsh_history ================= Erase tautological history in `.zsh_history`. # Usage python ./clean_zsh_history.py [path/to/.zsh_history] default arguments is `$HOME/.zsh_history`
xeno1991/clean_zsh_history
README.md
Markdown
mit
192
import sys sys.path.insert(0,'../') from fast_guided_filter import blur print("hello")
justayak/fast_guided_filters
test/sample.py
Python
mit
88
#include "core/bomberman.hpp" #include "core/menu.hpp" #include "core/screens.hpp" #include "core/view.hpp" #include "core/views/menu.hpp" MenuView::MenuView(Screen *screen, Menu *menu) : View(screen) , menu(menu) , clock(Timer::get(2)) { } MenuView::~MenuView() { delete this->menu; } void MenuView::...
kassisdion/Epitech_year_2
bomberman/src/core/views/menu.cpp
C++
mit
1,035
///<reference src="js/tempus-dominus"/> /*global $ */ tempusDominus.jQueryInterface = function (option, argument) { if (this.length === 1) { return tempusDominus.jQueryHandleThis(this, option, argument); } // "this" is jquery here return this.each(function () { tempusDominus.jQueryHandleThis(this, opti...
cdnjs/cdnjs
ajax/libs/tempus-dominus/6-alpha1/js/jQuery-provider.js
JavaScript
mit
4,501
web-practice ============
gyuwon/web-practice
README.md
Markdown
mit
26
import { Pipe, PipeTransform } from '@angular/core'; import { DomSanitizer, SafeHtml } from '@angular/platform-browser'; @Pipe({ name: 'sanitizeHtml', pure: false }) export class SanitizerPipe implements PipeTransform { constructor(private _sanitizer: DomSanitizer) { } transform(v: string): SafeH...
ultimate-comparisons/ultimate-comparison-BASE
src/app/components/pipes/sanitizer-pipe/sanitizer.pipe.ts
TypeScript
mit
809
<?php /* * This file is part of the Nexylan packages. * * (c) Nexylan SAS <[email protected]> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Nexy\PayboxDirect\Tests\Symfony\Bridge\DependencyInjection; use Matthias\S...
nexylan/paybox-direct
tests/Bridge/Symfony/DependencyInjection/ConfigurationTest.php
PHP
mit
2,758
.jqCron-selector { position: relative; } .jqCron-cross, .jqCron-selector-title { cursor: pointer; border-radius: 3px; border: 1px solid #ddd; margin: 0 0.2em; padding: 0 0.5em; } .jqCron-container.disable .jqCron-cross:hover, .jqCron-container.disable .jqCron-selector-title:hover, .jqCron-cross, .jqCron-selector-...
ligoj/ligoj
app-ui/src/main/webapp/lib/jqcron/jqcron.css
CSS
mit
1,773
# from test_plus.test import TestCase # # # class TestUser(TestCase): # # def setUp(self): # self.user = self.make_user() # # def test__str__(self): # self.assertEqual( # self.user.__str__(), # 'testuser' # This is the default username for self.make_user() # ) # ...
Alex-Just/gymlog
gymlog/main/tests/test_models.py
Python
mit
476
<?php class WPML_ST_Track_Strings_Notice { const NOTICE_ID = 'wpml-st-tracking-all-strings-as-english-notice'; const NOTICE_GROUP = 'wpml-st-strings-tracking'; /** * @var WPML_Notices */ private $admin_notices; public function __construct( WPML_Notices $admin_notices ) { $this->admin_notices = $admin_not...
mandino/hotelmilosantabarbara.com
wp-content/plugins/wpml-string-translation/classes/notices/track-strings/wpml-st-track-strings-notice.php
PHP
mit
1,629
using System; using System.Xml.Serialization; namespace EZOper.NetSiteUtilities.AopApi { /// <summary> /// AlipayEbppPdeductSignValidateResponse. /// </summary> public class AlipayEbppPdeductSignValidateResponse : AopResponse { } }
erikzhouxin/CSharpSolution
NetSiteUtilities/AopApi/Response/AlipayEbppPdeductSignValidateResponse.cs
C#
mit
257
#ifndef ACCOUNTDIALOG_H #define ACCOUNTDIALOG_H #include <QDialog> namespace Ui { class AccountDialog; } class AccountDialog : public QDialog { Q_OBJECT public: explicit AccountDialog(QWidget *parent = 0); ~AccountDialog(); private slots: // TODO: 三个槽变成一个 void on_azureDefaultRadioButton_clicked...
myd7349/AzureStorageExplorerClone
UI/Qt/AccountDialog.h
C
mit
577
import Telescope from 'meteor/nova:lib'; import Posts from "meteor/nova:posts"; import Comments from "meteor/nova:comments"; import Users from 'meteor/nova:users'; serveAPI = function(terms){ var posts = []; var parameters = Posts.parameters.get(terms); const postsCursor = Posts.find(parameters.selector, param...
trujunzhang/newspoliticl
packages/nova-api/lib/server/api.js
JavaScript
mit
2,059
class ImportResult < ActiveRecord::Base belongs_to :import enum status: [ :starting, :running, :finishing, :finished, :stalled, :aborted ] serialize :found_listing_keys serialize :removed_listing_keys serialize :snapshots def found_count_difference previous_run = self.import.import_results.where(['st...
arcticleo/reso_data_dictionary
app/models/import_result.rb
Ruby
mit
507
package fr.pizzeria.exception; public class StockageException extends Exception { public StockageException() { super(); } public StockageException(String message, Throwable cause) { super(message, cause); } public StockageException(String message) { super(message); } public StockageException(Throwable...
lionelcollidor/dta-formation
apps/pizzeria-console-objet/pizzeria-dao/src/main/java/fr/pizzeria/exception/StockageException.java
Java
mit
353
# swio -- import "github.com/shipwire/swutil/swio" Package swio provides additional utilities on top of the standard io package. ## Usage ```go var DummyReader = newDummy(time.Now().Unix()) ``` DummyReader is a reader of pseudo-random data. It is meant to be more efficient than cryptographically random data, but...
shipwire/swutil
swio/readme.md
Markdown
mit
4,492
from rest_framework import serializers from django.contrib.auth.models import User from dixit.account.models import UserProfile class UserProfileSerializer(serializers.ModelSerializer): class Meta: model = UserProfile fields = ('name', ) class UserSerializer(serializers.ModelSerializer): ...
jminuscula/dixit-online
server/src/dixit/api/auth/serializers/user.py
Python
mit
494
# == Schema Information # # Table name: tecnicos # # id :integer not null, primary key # phone_number :string # health_post_id :integer # created_at :datetime not null # updated_at :datetime not null # name :string # class Tecnico < ActiveRecord::Base in...
CUPeru/CUPeru
app/models/tecnico.rb
Ruby
mit
432
using System; using System.Collections.Generic; namespace Paladino.Drawing { /// <summary> /// The thumbnails class handles all thumbnails to different types of content /// embedded in the core. /// </summary> public static class Thumbnails { #region Members private static Dictionary<Guid,...
cnascimento/Paladino
Paladino/Drawing/Thumbnails.cs
C#
mit
13,732
using System.Linq; using UnityEditor; using UnityEditor.Animations; using UnityEngine; namespace Framework.Editor { [CustomActionEditor(typeof(ActionAnimParam))] public class ActionGraphEditorAnimParamNode : ActionGraphEditorNode { public ActionAnimParam Node => (ActionAnimParam) ActionNode; ...
MrJaqbq/Unity3DFramework
Editor/ActionGraph/ActionGraphEditorAnimParamNode.cs
C#
mit
3,547
/** * @author Vexatos */ @MethodsReturnNonnullByDefault @ParametersAreNonnullByDefault package vexatos.backpacks.backpack; import mcp.MethodsReturnNonnullByDefault; import javax.annotation.ParametersAreNonnullByDefault;
Vexatos/ForecastersBackpacks
src/main/java/vexatos/backpacks/backpack/package-info.java
Java
mit
225
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head profile="http://selenium-ide.openqa.org/profiles/test-case"> <meta http-equiv="Content-Type" cont...
IsaacLewis/eol
spec/selenium/comment/text_comment_permalinks.html
HTML
mit
1,748
//This code is taken from InflightShipSave by Claw, using the CC-BY-NC-SA license. //See https://github.com/ClawKSP/InflightShipSave //Actually I found this code from Kerbal_Construction_Time as well. All bundled in this utility class. Thanks guys ;) using UnityEngine; namespace FlightEdit.FlightEdit { public ...
thomas15v/FlightEdit
FlightEdit/InflightSave.cs
C#
mit
1,360
import React from 'react'; import Helmet from 'react-helmet'; import { Route } from '../../core/router'; import { Model as Waste } from '../../entities/Waste'; import { Deferred } from '../../util/utils'; import NavLink from '../../components/NavLink'; import Progress from 'react-progress-2'; import { PageHeader, Row, ...
ryrudnev/dss-wm
app/routes/waste/ShowRoute.js
JavaScript
mit
2,612
// // JMColor.h // JMChartView // // Created by chengjiaming on 15/3/26. // Copyright (c) 2015年 chengjiaming. All rights reserved. // #import <UIKit/UIKit.h> /** * 主色系 */ #define JMBlue [UIColor colorWithRed:38 / 255.0 green:173 / 255.0 blue:223 / 255.0 alpha:1] /** * 背景色 */ #define JMCloudWhite [UIColor col...
chengjiaming/JMChartView
JMChartView/JMColor.h
C
mit
752
var basePaths = { src: 'public/', dest: 'public.dist/', bower: 'bower_components/' }; var paths = { images: { src: basePaths.src + 'images/', dest: basePaths.dest + 'images/min/' }, scripts: { src: basePaths.src + 'scripts/', dest: basePaths.dest + 'scripts/min/' }, styles: { src: ba...
marcolino/escrape2
.old/gulpfile-advanced.js
JavaScript
mit
3,371
--- title: ajz21 type: products image: /img/Screen Shot 2017-05-09 at 11.56.54 AM.png heading: z21 description: lksadjf lkasdjf lksajdf lksdaj flksadj flksa fdj main: heading: Foo Bar BAz description: |- ***This is i a thing***kjh hjk kj # Blah Blah ## Blah![undefined](undefined) ### Baah image1:...
pblack/kaldi-hugo-cms-template
site/content/pages2/ajz21.md
Markdown
mit
339
/* * Vulkan Example - Implements a separable two-pass fullscreen blur (also known as bloom) * * Copyright (C) 2016 by Sascha Willems - www.saschawillems.de * * This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <...
martty/Vulkan
bloom/bloom.cpp
C++
mit
42,639
package mcjty.deepresonance.jei.smelter; import mezz.jei.api.recipe.IRecipeWrapper; import javax.annotation.Nonnull; public class SmelterRecipeHandler implements mezz.jei.api.recipe.IRecipeHandler<SmelterRecipeWrapper> { private final String id; public SmelterRecipeHandler() { this.id = SmelterReci...
McJty/DeepResonance
src/main/java/mcjty/deepresonance/jei/smelter/SmelterRecipeHandler.java
Java
mit
834
#### Add WordPress Plugin Ajax Load More Auth File Upload Vulnerability Application: WordPress Plugin 'Ajax Load More' 2.8.1.1 Homepage: https://wordpress.org/plugins/ajax-load-more/ Source Code: https://downloads.wordpress.org/plugin/ajax-load-more.2.8.0.zip Active Installs (wordpress.org): 10,000+ Referenc...
espreto/wpsploit
documentation/exploits/wp_ajax_load_more_file_upload.md
Markdown
mit
5,129
<?php class Braintree_CreditCardVerification extends Braintree_Result_CreditCardVerification { public static function factory($attributes) { $instance = new self($attributes); return $instance; } // static methods redirecting to gateway public static function fetch($qu...
vuonghuynhthanhtu/administrator.lacasa.com
application/libraries/braintree-php-2.38.0/lib/Braintree/CreditCardVerification.php
PHP
mit
601
var g_batchAssessmentEditor = null; var g_tabAssessments = null; var g_updatingAttendance = false; var g_onRefresh = null; var g_lockedCount = 0; var g_btnSubmit = null; var g_sectionAssessmentEditors = null; var g_sectionAssessmentButtons = null; function createAssessment(content, to) { var assessmentJson = {}; a...
duanp0128/PlayHongKongResort
public/javascripts/assessment/editor.js
JavaScript
mit
9,652
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html><head><title></title> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <link rel="stylesheet" type="text/css" href="search.css"/> <script type="text/javascript" src="search...
alpsayin/radiotftp
doc/html/search/variables_73.html
HTML
mit
3,503
package edu.purdue.eaps.weatherpipe; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.PrintWriter; import java.io.UnsupportedEncodingException; import java.security.MessageDigest; import java.security.NoSuchA...
stephenlienharrell/WeatherPipe
WeatherPipe/src/main/java/edu/purdue/eaps/weatherpipe/AWSInterface.java
Java
mit
19,505
--- layout: post title: Any code of your own that you haven't looked at for six or more months might as well have been written by someone else. (Eagleson's law) category: week tags: [c++, python, versioning, javascript, bash, windows, programming, ping-pong, spotify, engineering] --- ## Top Pick * Spotify En...
capravictoriae/vulpesbag
_posts/2016-05-09-Week-19.md
Markdown
mit
1,619
fluency ======= An HTML, CSS, and Javascript framework for interactive video produced <a href="http://interactivedocs.com" target="_blank">Interactive Docs</a>. Check out the <a href="http://interactivedocs.com/fluency.html" target="_blank">documentation</a> on our website. To run locally [npm](https://www.npmjs.org...
interactivedocs/fluency
README.md
Markdown
mit
997
del *.exe del *.obj call "%VS140COMNTOOLS%\..\..\VC\bin\vcvars32.bat" cl /D _CONSOLE /W4 /O2 calc-ram.cpp
pavel-pimenov/sandbox
console-test/memory/compile-calc-ram-vc2015.bat
Batchfile
mit
109
/* $Id: get_attachments.c,v 1.13 2015/07/20 10:35:53 tm Exp $ * * PDFlib TET sample application. * * PDF text extractor which also searches PDF file attachments. * The file attachments may be attached to the document or * to page-level annotations of type FileAttachment. The former construct * also covers PDF 1....
kentaiwami/masamon
masamon/TET/c/get_attachments.c
C
mit
7,568
# -*- coding: utf-8 -*- require 'spec_helper' describe RailwayCompany do describe :import do let(:file_path) do tempfile = Tempfile.new('railway_companies.csv') tempfile << <<EOS company_cd,rr_cd,company_name,company_name_k,company_name_h,company_name_r,company_url,company_type,e_status,e_sort 1,11,J...
aonashi/jpstation
spec/models/railway_company_spec.rb
Ruby
mit
1,833
<?php /** * PHPSpec * * LICENSE * * This file is subject to the GNU Lesser General Public License Version 3 * that is bundled with this package in the file LICENSE. * It is also available through the world-wide-web at this URL: * http://www.gnu.org/licenses/lgpl-3.0.txt * If you did not receive a copy of the l...
manufy/PHP-BDD-YaCMS
Lib/PHPSpec-1.3.0beta/PHPSpec/Runner/Formatter/Factory.php
PHP
mit
2,204
package framework.org.json; /* Copyright (c) 2002 JSON.org 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, ...
marcossilva/IFAdventure
EnsaioRetentivo/src/framework/org/json/JSONArray.java
Java
mit
32,203
#include "abstract_serializable.h" using namespace json; json::__abstract_serializable__::__abstract_serializable__() {} std::map<std::string, std::function<json::__abstract_serializable__*()> > json::__abstract_serializable__::dictionary;
Dariasteam/JSON-cpp
src/abstract_serializable.cpp
C++
mit
243
module CalculableAttrs VERSION = "0.0.15" end
dmitrysharkov/calculable_attrs
lib/calculable_attrs/version.rb
Ruby
mit
48
# -*- coding: utf-8 -*- import pack_command import pack_command_python import timeit import cProfile import pstats import pycallgraph def format_time(seconds): v = seconds if v * 1000 * 1000 * 1000 < 1000: scale = u'ns' v = int(round(v*1000*1000*1000)) elif v * 1000 * 1000 < 1000: ...
simonz05/pack-command
misc/bench.py
Python
mit
1,564
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="SerializationJsonModule.cs" company="Catel development team"> // Copyright (c) 2008 - 2015 Catel development team. All rights reserved. // </copyright> // ----------------------...
blebougge/Catel
src/Catel.Serialization.Json/Catel.Serialization.Json.Shared/SerializationJsonModule.cs
C#
mit
1,132