id
stringlengths
64
64
content
stringlengths
500
100k
language
stringclasses
29 values
path
stringlengths
4
333
repo
stringlengths
5
116
license
stringclasses
15 values
size
int64
500
100k
lines
int64
26
8.06k
source
stringclasses
1 value
1adae28d5e0f5424cbd3640ac3dac22ede1aee22cf3f8e471d14be3184bdd6e1
<?xml version="1.0" ?> <!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"> <head> <title>i2d_PKCS7_bio_stream</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rev="made" href="mailto:...
HTML
modules/OpenSSL/VS/html/man3/i2d_PKCS7_bio_stream.html
chronoxor/CppServer
mit
3,053
75
codeparrot/github-code
4aa995d610834854e7c306f025e908f305c59653338266abe9d36c9c90938a4b
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>paradoxes: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.c...
HTML
clean/Linux-x86_64-4.05.0-2.0.1/released/8.5.0~camlp4/paradoxes/8.7.0.html
coq-bench/coq-bench.github.io
mit
7,516
170
codeparrot/github-code
759fbefcadb65b40eb075a816761ce34ae7f635686eb48ad074b6ebfbe7997f4
<?php class BasesfGuardRegisterActions extends sfActions { public function executeIndex(sfWebRequest $request) { if ($this->getUser()->isAuthenticated()) { $this->getUser()->setFlash('notice', 'Ya estas registrado!'); $this->redirect('@homepage'); } $this->form = new sfGuardRegisterFor...
PHP
Legacy/html/quehagoporti/plugins/sfDoctrineGuardPlugin/modules/sfGuardRegister/lib/BasesfGuardRegisterActions.class.php
chepeftw/WorldVolunteering
mit
1,167
39
codeparrot/github-code
b6c4b94eed54dba1544896ed03c37fe2854dff1cd1ad0da227873bfff6c61e29
// js/modules/search/shsearch.js define(['modules/media/jrpadHandler', 'indeed', 'indeedKey'], function(Ads) { // if there is a problem loading the Indeed tracking api, indeedTracking.js will be loaded as the fallback where var blocked is defined. if (typeof blocked !== 'undefined') { require(['modules/media/adblo...
JavaScript
dev/js/app/library/modules-example/search/indeedsearch.js
mwelche/backbone-react-skeleton
mit
12,477
387
codeparrot/github-code
0e0d0a7af89eee4d2ef0bdd9a3cb9c715c157dbdc8589d31a0cfd72a57c3b41f
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2011-2012 Litecoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef __cplusplus # error This he...
C
src/protocol.h
IeuanG/testcoin
mit
3,426
139
codeparrot/github-code
d250be67a601d65e6fddb5edd0b3c6bcdd4007bec5634383ee9194a3055725ae
-- phpMyAdmin SQL Dump -- version 4.6.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: 2016-10-20 17:57:13 -- 服务器版本: 5.5.47 -- PHP Version: 5.5.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!4010...
SQL
my.sql
shampeak/My
mit
18,277
518
codeparrot/github-code
d9fd9befe10cfd0fafe46330fe1fc2e28ab402a5b76a5acc3ee4a6553188c5b9
/**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the examples of the Qt Toolkit. ** ** $QT_BEGIN_LICEN...
C++
freezetablewidget.cpp
chemmalion/EIDBEditor
mit
6,081
157
codeparrot/github-code
66d4d560fc8dad35478a17ca4be6283e191c46f7acd06aa7f9402cd1a1f2bc83
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>ext-lib: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css...
HTML
clean/Linux-x86_64-4.08.1-2.0.5/released/8.11.2/ext-lib/0.10.1.html
coq-bench/coq-bench.github.io
mit
6,504
165
codeparrot/github-code
c842ba3a51a18848939da60c36d584c32baf6e0a0b0599e1a8cde7ecc78c72c1
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>ipc: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="...
HTML
clean/Linux-x86_64-4.05.0-2.0.6/released/8.11.0/ipc/8.6.0.html
coq-bench/coq-bench.github.io
mit
7,661
174
codeparrot/github-code
9cb51497fa1dee3bf894d0216af912b9b92adc810b1ea430d4c9562aad1c3d0e
=begin Individual Equipment by Fomar0153 Version 1.0 ---------------------- Notes ---------------------- This script changes the way weapons and armours are handled in game. This script make every weapon and armour unique. ---------------------- Instructions ---------------------- Plug and play. If you want to be able ...
Ruby
Fomar0153/fomar0153_-_individual_equipment_1.0.rb
Archeia/Kread-Ex-Scripts
mit
11,229
382
codeparrot/github-code
146c8bdbff0c15ad29417281ffb564a39a8c1c06ebac8657909208335ea43d1c
/* * @(#)ReversiMainWindow.java 2006/02/04 * * Part of the reversi applet that uses the strategy game framework. * Copyright (c) Michael Patricios, lurgee.net. * */ package net.lurgee.reversi.applet; import java.applet.Applet; import java.awt.Graphics; import java.awt.Image; import java.awt.event....
Java
reversi/src/net/lurgee/reversi/applet/ReversiMainWindow.java
mpatric/lurgee
mit
8,840
192
codeparrot/github-code
b3af6545a12f8edc3cd82324da72bac5b611983d5ec2a3901193cd0898f19cd7
package jason.algorithm.combinatoric; import static org.junit.Assert.assertEquals; import java.util.function.Consumer; import org.junit.Test; /** * The algorithm is very similar to 0/1 knapsack. * @author jason * */ public class Combination { /* * Select k elements from n without order */ public static ...
Java
src/main/java/jason/algorithm/combinatoric/Combination.java
jasonzhang2022/algorithm
mit
1,496
79
codeparrot/github-code
7901bde16e4b284f4d30eb189d6fc6372842dc8b3e7cacdd76e5c5515c0ab4cc
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>mathcomp-character: 5 m 40 s</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.c...
HTML
clean/Linux-x86_64-4.11.1-2.0.7/released/8.11.2/mathcomp-character/1.9.0.html
coq-bench/coq-bench.github.io
mit
10,320
180
codeparrot/github-code
2aa8eed6742da02aff074a4f1deee677c9f2e44ecf328e2a842d64377d595c77
// Filename: models/comment define([ 'underscore', 'backbone', 'scripts/main/collections/comment' ], function (_, Backbone, CommentCollection) { var CommentModel = Backbone.Model.extend({ urlRoot : '/j/comment', url : function (url){return this.urlRoot + ( this.id ? ('/' + this.id ...
JavaScript
student/static/js/main/models/comment.js
houssemFat/MeeM-Dev
mit
886
31
codeparrot/github-code
bb6f1fc4479dc11947f03da3088b600f6e87ff20d27dcc1decd049eb2a8a0fe3
import { fabric } from 'fabric'; import extend from 'tui-code-snippet/object/extend'; import isExisty from 'tui-code-snippet/type/isExisty'; import forEach from 'tui-code-snippet/collection/forEach'; import Component from '@/interface/component'; import { stamp } from '@/util'; import { componentNames, eventNames as ev...
JavaScript
apps/image-editor/src/js/component/text.js
nhnent/tui.component.image-editor
mit
14,164
573
codeparrot/github-code
65fdb17c28819c5a7b4c4100af5bf7b8b360f00f6136f41f5244bc4291ea8318
using System.Collections.Generic; using BusinessObjects; using BusinessObjects.Devices; namespace Configuration { public class MachineConfiguration : IMachineConfiguration { public string ServerName { get; set; } public string ServerIcon { get; set; } public bool UseHardware ...
C#
common/Configuration/MachineConfiguration.cs
rampantslug/pinball-framework
mit
1,913
57
codeparrot/github-code
908d63ca8ef59d75cc6d6096f30a5b1342a1daa55222f848b15fcf008a2450ee
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>hanoi: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" ...
HTML
clean/Linux-x86_64-4.09.1-2.0.6/released/8.8.0/hanoi/1.0.0.html
coq-bench/coq-bench.github.io
mit
7,139
175
codeparrot/github-code
1527f8ea2dddf2845809b5a4e0851c32b8a51aff8c0952f59a0040c3b52d72b7
import * as http from 'http'; /** * Mix of different standarized HTTP-Response Codes * The 200-code is dropped, as it's returned as default in NodeJS * * The http.ServerResponse is required for each method, to assign the statusCode and statusMessage to the current response * If a responseText is appended as a par...
TypeScript
src/HttpResponse.ts
fosenutvikling/fuhttp-ts
mit
2,664
79
codeparrot/github-code
ed169dc7c1ef6ae342cada9367b801a95155ee34b790951c917e9e6d3cf19370
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>coq-in-coq: 1 m 6 s 🏆</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" re...
HTML
clean/Linux-x86_64-4.06.1-2.0.5/released/8.7.2/coq-in-coq/8.7.0.html
coq-bench/coq-bench.github.io
mit
13,580
220
codeparrot/github-code
da00cfc49855598888d5e1298ae519ee1a744a71c26bccf6991fcdc2cde5df56
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>exceptions: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min....
HTML
clean/Linux-x86_64-4.11.2-2.0.7/released/8.12.2/exceptions/8.10.0.html
coq-bench/coq-bench.github.io
mit
6,587
166
codeparrot/github-code
d06a280cc36497e46809585ef6e4f2b1975ccb7cfd91d11937f3015dcb269820
/* * Implementation of functions that filter values in strings. ***** * YOU MAY NOT USE ANY FUNCTIONS FROM <string.h> OTHER THAN * strcpy() and strlen() ***** */ #include <stdlib.h> #include <string.h> #include <stdbool.h> #include "filter.h" #define NUL ('\0') /* * YOU MAY FIND THIS FUNCTION USEFUL. * Retu...
C
Personal Software Engineering/Filter/filter.c
moiseslorap/RIT
mit
4,608
191
codeparrot/github-code
c50ca92b8a94f7b6e61c1d39c17c272ca12610d4c0b86b9480921f54ad5b9f29
<?php /* @WebProfiler/Profiler/base_js.html.twig */ class __TwigTemplate_17800ee9548cccae6a5a3f2c48a919cb extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ); } protect...
PHP
app/cache/dev/twig/17/80/0ee9548cccae6a5a3f2c48a919cb.php
Garethsoul/ToahS
mit
4,762
134
codeparrot/github-code
d209b3102ae1123c937a60099a968513ee7adcf231f070694160db6c6cf445a8
using System; using System.IO; namespace MyzukaRuGrabberCore.DataModels { /// <summary> /// Представляет один скачанный файл. Неизменяемый класс. /// </summary> [Serializable()] public sealed class DownloadedFile : IDisposable, IEquatable<DownloadedFile> { /// <summary> /// Кон...
C#
Solution/MyzukaRuGrabberCore/DataModels/DownloadedFile.cs
Klotos/MyzukaRuGrabber
mit
3,023
88
codeparrot/github-code
64fc9cc719d6b06404306f3f736bbc13b268e455ce5a50643e33b686ec85536e
<!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"...
HTML
clean/Linux-x86_64-4.04.2-2.0.5/released/8.6.1/unicoq/1.3+8.7.html
coq-bench/coq-bench.github.io
mit
6,734
167
codeparrot/github-code
feee109afa7108c092d16788d68f17f6ebbe162e9ea3d774a54245571f71f53d
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>smc: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" re...
HTML
clean/Linux-x86_64-4.09.1-2.0.6/released/8.10.2/smc/8.7.0.html
coq-bench/coq-bench.github.io
mit
7,237
166
codeparrot/github-code
d34dc93177976ebdd957bbb68ccee8a8e98687aa01815573be610596bc339b3c
/* *********************************************************************************************************************** * * Copyright (c) 2019-2022 Advanced Micro Devices, Inc. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associ...
C
lgc/builder/BuilderImpl.h
GPUOpen-Drivers/llpc
mit
48,420
875
codeparrot/github-code
7904575c222c76d69e27d90eed9621b0b60d0fe45625fc3c90358817e3b6f6ee
<!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" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script src="http://ajax.googleapis.com/ajax/libs...
HTML
fonts/opensans-bolditalic-demo.html
zirajmohammed/ICHESS
mit
37,848
615
codeparrot/github-code
c87c2e027c603950d4222d830478fc212552501c63769626db79f040e673c0f6
require 'base64' require 'arel/visitors/sqlserver' require 'active_record' require 'active_record/base' require 'active_support/concern' require 'active_support/core_ext/string' require 'active_record/connection_adapters/abstract_adapter' require 'active_record/connection_adapters/sqlserver/core_ext/active_record' requ...
Ruby
lib/active_record/connection_adapters/sqlserver_adapter.rb
pedrojfranco/activerecord-sqlserver-adapter
mit
18,194
540
codeparrot/github-code
ba57121f7f349b51aca9392174787fd98cfc88944cda22df5cfa39a068c6f7dd
/************************************************************************************ * * * Copyright (c) 2014 - 2018 Axel Menzel <info@rttr.org> * * ...
C
src/rttr/detail/registration/registration_impl.h
rttrorg/rttr
mit
16,358
322
codeparrot/github-code
eb38eab550a75bd072802f103bec04cf11b162f16246a84c7d0336858e369958
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>vst: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" re...
HTML
clean/Linux-x86_64-4.02.3-2.0.6/released/8.4.6/vst/2.8.html
coq-bench/coq-bench.github.io
mit
7,981
188
codeparrot/github-code
18dc722838704db05d2ecd52de9a29e4bb46257b4690f2b757b73f13bf44a839
import { TestBed } from '@angular/core/testing'; import { Injector } from '@angular/core'; import { XlsxService } from '../xlsx/xlsx.service'; import { XlsxExportOptions } from '../xlsx/interface'; import { SimpleTableExport } from './simple-table-export'; import { STExportOptions, SimpleTableColumn } from './interface...
TypeScript
src/00.core/50.ctrl/simple-table/simple-table-export.spec.ts
yoryu/cardinn
mit
2,192
63
codeparrot/github-code
ca1037481eb514fb68bf3aa045393fe17f076b3da594f6a104ec933614f2c6f9
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>coinduction: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min...
HTML
clean/Linux-x86_64-4.03.0-2.0.5/released/8.8.1/coinduction/1.0.html
coq-bench/coq-bench.github.io
mit
7,256
180
codeparrot/github-code
5e58125237ef89a5230ed109cd1819059a87ca09142143649eaca83992b45c43
<!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"...
HTML
clean/Linux-x86_64-4.11.2-2.0.7/released/8.15.0/unicoq/1.3+8.7.html
coq-bench/coq-bench.github.io
mit
6,597
164
codeparrot/github-code
bcddee16699fa7236a77eddd8d0eb899516dcd7a90a1bb8710949721cb9a1e29
package model import ( "github.com/blevesearch/bleve" "github.com/blevesearch/bleve/analysis/analyzers/keyword_analyzer" "github.com/blevesearch/bleve/analysis/analyzers/simple_analyzer" "github.com/blevesearch/bleve/analysis/language/en" ) // InitIndex initializes the search index at the specified path func Init...
GO
model/index.go
hoop33/limo
mit
1,476
46
codeparrot/github-code
bddbed14fbbd0dc54e32ab267fa0ad69819257c432b622e98d720f0fe242dc4a
<?php namespace DataBundle\Entity; /** * RightAnswersBlank */ class RightAnswersBlank { /** * @var integer */ private $id; /** * @var string */ private $content; /** * @var \Doctrine\Common\Collections\Collection */ private $answersdatas; /** * @var ...
PHP
src/DataBundle/Entity/RightAnswersBlank.php
iskun/iskun.net
mit
2,262
130
codeparrot/github-code
66da3df5934f7eef21fc696dfda7de894a61b7ee6bd8bc1e485f81771c7179e9
<?php namespace App\Observers; use App\Domain\PhotoStatus; use App\Trip as Model; use App\Utilities\CacheHelper; class TripObserver { public function __construct(private CacheHelper $cache) { } public function deleting(Model $model) { \DB::transaction(function () use ($model) { ...
PHP
app/Observers/TripObserver.php
ivacuum/hosting
mit
1,439
66
codeparrot/github-code
94471b445702a27a9519c7c9686f71da9a4b14deb7770199c2e3db745079d2eb
#ifndef BOID_H #define BOID_H #include "Vector.h" #include <SFML/Graphics.hpp> #include <math.h> #include <vector> using namespace std; class Boid { public: Boid(float x, float y, sf::RenderWindow * window, int * windowsize);//, vector<Boid*> * boidvec); virtual ~Boid(); void draw(); ...
C
Projects/Swarm0/include/Boid.h
jamtot/CPP
mit
1,157
47
codeparrot/github-code
ef54543db897f6ca03c6175897017a6e4056ba40b889769bc1a07b828cbc2d83
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>automata: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.cs...
HTML
clean/Linux-x86_64-4.09.1-2.0.6/released/8.8.2/automata/8.5.0.html
coq-bench/coq-bench.github.io
mit
7,077
174
codeparrot/github-code
36004b2ce5c5963715c1c25b40f61ef87da471ad2914b3a4c2dda7352636438b
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>gappa: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" ...
HTML
clean/Linux-x86_64-4.06.1-2.0.5/released/8.14.0/gappa/1.4.6.html
coq-bench/coq-bench.github.io
mit
7,587
179
codeparrot/github-code
e9757bd2571f9d7cc12fb8c346c34f7bfd7de5fe1cf2107613e97e95661b5860
<?php namespace Jack\DeckKeeperBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Gedmo\Mapping\Annotation as Gedmo; use Symfony\Component\Validator\Constraints as Assert; /** * Card * * @Gedmo\Uploadable(filenameGenerator="SHA1") * @ORM\Table * @ORM\Entity(repositoryClass="Jack\DeckKeeperBundle\Entity\CardRep...
PHP
src/Jack/DeckKeeperBundle/Entity/Card.php
cystbear/smartme
mit
7,607
461
codeparrot/github-code
cdc34aba375a14dc373e855dff27af98ae81faf1846a3769bef539dbbf91aae4
// -------------------------------------------------------------------------------------------------------------------- // // coupon-code.js : An implementation of Perl's Algorithm::CouponCode for NodeJS. // // Author : Andrew Chilton // Web : http://www.chilts.org/blog/ // Email : <an...
JavaScript
coupon-code.js
chilts/node-coupon-code
mit
4,754
157
codeparrot/github-code
69458c6c43624b068a317ed7df476ab239dc84f28d9785a93f9d487fa191c471
using UnityEngine; using System.Collections; public class Hammer : MonoBehaviour { bool hit = false; public float force; // Use this for initialization void Start() { } void Update() { if (Input.GetMouseButtonDown(0)) { hit = true; } } // ...
C#
Assets/Scripts/Hammer.cs
HypnoBeaverMoose/Bacteroids
mit
863
35
codeparrot/github-code
6c3dc16ed138368f61bd0c704ca8d2ecc55f7a1161537b47a67a8a153e12a3fd
/* * wifi.c * * Created on: Dec 14, 2014 * Author: Baoshi */ #include "esp_common.h" #include "wifi.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "udhcp/dhcpd.h" #define WIFI_APSSID "HACKBO" #define WIFI_APPASSWORD "12345678" #define PLATFORM_DEBUG true static char macaddr[6]; ...
C
app/user/wifi.c
AccretionD/ESP8266_freertos_coap
mit
3,392
148
codeparrot/github-code
c18b70c20da818be5bbf13d530f8762b5b7b5c82fb353fb35aa3e5de9fe17b27
// EventArgs.cs // // Copyright (c) 2008 Ethan Osten // // 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, mod...
C#
src/Summa.Core.EventArgs.cs
wfarr/newskit
mit
2,307
64
codeparrot/github-code
f0b75805eda5b4ef688844523fafed15213c7dcd8b5020f7de5033f7e52beff7
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using VenoMpie.Common.IO.FileReaders.Emulation.DataFiles; using VenoMpie.Common.IO.FileReaders.Emulation.DataFiles.Resources; namespace VenoMpie.Common.IO.FileReaders.Emulation.TOSEC { ...
C#
VenoMpie.Common.IO/FileReaders/Emulation/TOSEC/ParsedTosecDat.cs
VenoMpie/KitchenSink
mit
1,539
47
codeparrot/github-code
d0dd414a3d309c9fb3b019473dfe0fa7f717deb25a9adc8c3db978cfd2647dbc
'use strict'; /** * @ngdoc function * @name todoApp.controller:MainCtrl * @description * # MainCtrl * Controller of the todoApp */ angular.module('todoApp') .controller('MainCtrl', function ($scope,localStorageService) { var todosInStore = localStorageService.get('todos'); $scope.todos = todosInS...
JavaScript
app/scripts/controllers/main.js
AlienCoders/ToDoList
mit
908
38
codeparrot/github-code
4e1457d12a4db91b41f86da8c35be4b6ed2ef2c17b64d546077ca882491aaf9e
/* eslint-env mocha */ import expect from 'expect'; import fFunction from '../../src/types/function.js'; describe('function', () => { context('.name', () => { it('is "function"', () => { expect(fFunction.name).toEqual('function'); }); }); context('.checker', () => { it('accepts a function', (...
JavaScript
test/types/function.js
algolia/fargs
mit
1,587
49
codeparrot/github-code
12a1c9bf932eaf12104426f281491e0dce018413834c7c90eec3d6a8a3f9935d
<?php namespace SoftuniProductBundle\Controller; use SoftuniProductBundle\Entity\ProductCategory; use SoftuniProductBundle\Entity\Product; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; ...
PHP
src/SoftuniProductBundle/Controller/DefaultController.php
ivaneurope/symfony-course-project
mit
3,004
106
codeparrot/github-code
ff4fc26d893cab730928684804981229dddd0124504c889ca2ad277c780a1433
export interface Entity { id: string; owner: string; editors?: string[]; } export interface RawEntity { id?: string, $key?: string; owner: string; editors?: string[]; } export const parseEntity = (it: any) => { if (!(it.$key || it.id)) { throw new Error(`cannot parse entity without ID: ${J...
TypeScript
browser/src/app/core/models.ts
civinomics/city-council
mit
722
33
codeparrot/github-code
8d2915ad52958fbf531fc8ce821f6a53f9dbe94e56da0be8d6af7e5f69914c04
package sign import ( "dfss" cAPI "dfss/dfssc/api" pAPI "dfss/dfssp/api" "dfss/dfsst/entities" "dfss/net" "golang.org/x/net/context" "google.golang.org/grpc" ) type clientServer struct { incomingPromises chan interface{} incomingSignatures chan interface{} } func getServerErrorCode(c chan interface{}, in ...
GO
dfssc/sign/server.go
Lesterpig/dfss
mit
1,756
60
codeparrot/github-code
6b77fdbb72325692b1a08a445eaa710dc44d9193635ec32f77df5adef6bff2d8
import { Component, OnInit, OnChanges, OnDestroy, Input, Output, EventEmitter, forwardRef, ElementRef } from '@angular/core'; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; import { WherePipe } from 'angular-pipes/src/array/where.pipe'; import * as _ from 'lodash'; export interface NameValu...
TypeScript
src/SearchOptions/SearchOptions.component.ts
Centeva/ngx-forms
mit
3,144
117
codeparrot/github-code
8c22d14efdba5b62e3b3fe99196ccef25f29a59704300d2517d687418ebc0b1c
import { Authorable } from './mixins/authorable'; import { Identifiable } from './mixins/identifiable'; import { Skill } from './skill'; import { JsonLdEntity } from './json-ld-entity'; export class SkillCategory extends Authorable(Identifiable(JsonLdEntity)) { public name: string; public skills: Skill[]; publi...
TypeScript
src/app/shared/model/skill-category.ts
Lyrkan/adrastee-website
mit
822
37
codeparrot/github-code
5d5c35af278581b2989a95a8c6fea7ce46a094eaeb67a99237a0b1f143500d2a
from django import template from django.contrib.contenttypes.models import ContentType from django.template.loader import get_template from rating.models import * from rating.utils import get_target_for_object register = template.Library() class GetRatingNode(template.Node): def __init__(self, object_name, va...
Python
rating/templatetags/rating_tags.py
ericholscher/django-rating
mit
2,481
83
codeparrot/github-code
b7b1b8f2f3a212bc8057760cc53b41532408763c835e7551ceb58278445cba69
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package pgzip import ( "bytes" "errors" "fmt" "github.com/klauspost/compress/flate" "github.com/klauspost/crc32" "hash" "io" ) const ( defaultBlockSiz...
GO
gzip.go
glycerine/pgzip
mit
11,454
459
codeparrot/github-code
2391b30f131ad4ae2674d1a7f633ade88e907850e0329a95f5006b4b5c01b5e1
using System; using System.Linq; using System.Web; using FunBook.Models; using FunBook.WebForms.Providers; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.Owin; namespace FunBook.WebForms.Account { public partial class TwoFactorAuthenticationSignIn : System.Web.UI.Page { private Appli...
C#
FunBook/FunBook.WebForms/Account/TwoFactorAuthenticationSignIn.aspx.cs
dzhenko/FunBook
mit
2,686
74
codeparrot/github-code
0990bbe3ed4b2f5b7032853b9933e7effa736149eba0680cc485cf887e3ca1ca
--[[ string addslashes( string s ) number bigger( number val1, number val2 ) number charCount( string haystack, char/number needleChar ) number clamp( number val, number minVal, number maxVal ) string decimalToHex( string dec ) string dumpvar( mixed data, [ number maxDepth ] ) boolean ...
Lua
resources/MTAW/includes/lib.lua
prineside/mtaw
mit
17,595
686
codeparrot/github-code
ba72c64bea5dd982bc6a792d05aac89242f24c66dc8e7a609e6c3ea3a39bf037
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>prototype</title> <script> // 【 传统构造函数存在的问题 】 // 1. 全局变量增多,造成污染 // 2. 代码结构混乱,不易维护 function Person(name, status) { this.name = name; this.status = status; this.act = function () { console.log("act"); }; } var p = new Person("cs...
HTML
01-JS语言基础/原型与面向对象/03-原型.html
csxiaoyaojianxian/JavaScriptStudy
mit
1,731
77
codeparrot/github-code
12dc813eddd43d43477b9e26bf1d6fc1661ea4faca5ae3b66c88cd8cad25fd7c
#include "game.h" void runGame(void) { initialisePins(); initRandomSeed(); initFrameBuffer(); initialisePlayers(); setupRound(); while (readyScreen()) { player_id winner = playRound(); for(int j = 0; j < PLAYER_NUM; j++) { if(winner == players[j].id) { ...
C
src/objects/game.c
Bongermen/Bongerman
mit
1,978
79
codeparrot/github-code
aac8db33a2109e96188903ce57a91ec78cf1ab0ba952865dbdce56ce13727e29
local Combat = {} local Movelist = require "data.movelist" local Opponents = require "data.opponents" local Utils = require "util.utils" local Memory = require "util.memory" local Pokemon = require "storage.pokemon" local damageMultiplier = { -- http://bulbapedia.bulbagarden.net/wiki/Type_chart#Generation_I...
Lua
ai/combat.lua
mathiasbynens/PokeBot
mit
13,141
421
codeparrot/github-code
e4d13f4325e11b7054631507d51a4a0676aa65e48b955d2f51bd68ed6545f1ef
<?php /** * @copyright Copyright (C) 2015-2019 AIZAWA Hina * @license https://github.com/fetus-hina/stat.ink/blob/master/LICENSE MIT * @author AIZAWA Hina <hina@fetus.jp> */ namespace yii\helpers; use Yii; use app\models\Rank2; class Html extends BaseHtml { public static $enableServerPush = true; privat...
PHP
components/overwrite/yii/helpers/Html.php
fetus-hina/stat.ink
mit
4,161
133
codeparrot/github-code
8b51c34199f05c7de0f22227c178b3788145533fdd95e43460c47d5414119f1f
#include <vector> #include <cstdio> #include <cmath> #include "degree_flow.h" using namespace std; int r, c; int k; vector<int> row_degrees; vector<int> col_degrees; vector<vector<double> > a; vector<vector<double> > support; void output_function(const char* s) { fprintf(stderr, s); fflush(stderr); } int main(...
C++
src/main.cc
ludwigschmidt/degree_flow
mit
1,031
56
codeparrot/github-code
ebc303712159deb1f4b3717adb113068bd48112a6d367ec5f124d1611f154f08
/* Thing > CreativeWork > MediaObject - An image, video, or audio object embedded in a web page. Note that a creative work may have many media objects associated with it on the same web page. For example, a page about a single song (MusicRecording) may have a music video (VideoObject), and a high and low bandwidth audi...
JavaScript
src/jsx/mediaobject.js
adrienthiery/cormorant
mit
60,968
1,178
codeparrot/github-code
9a8b705ada6875663c3f6eaf849bfb08945bd5221d314ff04447443db33e48c0
import React from 'react' import { shallow } from 'enzyme' import LoadingDots from './LoadingDots' describe('ClassName', () => { test('Applies custom className if specified', () => { const customClass = 'piano-key-neck-tie' const wrapper = shallow(<LoadingDots className={customClass} />) expect(wrapper....
JavaScript
src/components/LoadingDots/LoadingDots.test.js
helpscout/blue
mit
1,092
37
codeparrot/github-code
cbd29d7474d65f1bcbba9367d5703258490fa9ebb3ad50b544df32d9a4d39a59
<?php namespace Pagekit\Widget\Event; use Pagekit\Application as App; use Pagekit\Widget\Entity\Widget; use Pagekit\Widget\Model\TypesTrait; use Symfony\Component\EventDispatcher\EventSubscriberInterface; class WidgetListener implements EventSubscriberInterface { /** * Handles the widget to position assignm...
PHP
extensions/system/modules/widget/src/Event/WidgetListener.php
HostSpectr/pagekit
mit
2,623
88
codeparrot/github-code
e995081271fd5d0832f3ba32d8b3980161c0168196a8a5c073d3382d1863dbd9
{% extends "base.html" %} {% block head %} <style> .link-box { width: 100%; height: 1.5em; overflow: hidden; display: block; text-align: center; } .sites { max-width: 1000px; margin: 0 auto; padding: 0; } .site { width: 25%; vertical-align: top; float: left; ma...
HTML
dastier/templates/welcome.html
alexa-infra/dastier
mit
2,002
71
codeparrot/github-code
5a33129cd007949fd4c4561f01e1e1ddacd1d5f974a1f6482fad2a41acf30f4a
import * as THREE from "three"; import * as Tags from "../tags"; import * as MathUtil from "../util/math"; import mouseWheel from "mouse-wheel"; import query from "../util/query-string"; export default function UserZoomSystem(world, props) { const e = world.entity("UserZoomEntity").add(Tags.UserZoom, props); ...
JavaScript
src/games/nfb-wayfinder/src/systems/UserZoomSystem.js
SuneBear/SB-Playgrounds
mit
1,304
54
codeparrot/github-code
e1e5da5188707b35c199b61775dfe9c6f7a3f5e33e2b187cddd284a3e00c9b91
<?php /* * This file is part of the FreshCommonBundle * * (c) Artem Genvald <genvaldartem@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Acme\BlogBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; /** ...
PHP
src/Acme/BlogBundle/Transliteration.php
combatx007/SimpleSymfonyBlog
mit
3,675
122
codeparrot/github-code
d19737f050183cdce9cf2f8d7b58e2e65402dfc47c85ed952988428b12de694b
'use strict'; // -------------------------------------------------------------------- // Imports // -------------------------------------------------------------------- const assert = require('../src/common').assert; // -------------------------------------------------------------------- // Private stuff // --------...
JavaScript
packages/ohm-js/extras/VisitorFamily.js
cdglabs/ohm
mit
5,354
172
codeparrot/github-code
831c96fe4602b61d28e3802ae04457f1d904dbdf3483e0021ca97b9e62694119
// ReSharper disable All namespace OpenTl.Schema.Messages { using System; using System.Collections; using System.Text; using OpenTl.Schema; using OpenTl.Schema.Serialization.Attributes; [Serialize(0xfa88427a)] public sealed class RequestSendMessage : IRequest<OpenTl.Schema.IUpdates> { [Seriali...
C#
src/OpenTl.Schema/_generated/Messages/RequestSendMessage.cs
OpenTl/OpenTl.Schema
mit
1,800
61
codeparrot/github-code
6400447cceef690bc5deb1617d6eb6590dce9155e73112e812e20e23ef3a036f
(function() { 'use strict'; var module = angular.module('ui.grid.filldown', ['ui.grid']); module.directive('uiGridFilldown', ['$timeout', 'gridUtil', 'uiGridConstants', function ($timeout, gridUtil, uiGridConstants) { return { require: 'uiGrid', scope: false, ...
JavaScript
ui-grid-filldown.js
danielhultqvist/ui-grid-filldown
mit
13,295
299
codeparrot/github-code
cdd3ca83a2ac437fc903a6bf995ac32e2df7c0759f6f3d25a4dcae27b05096f4
/* * Copyright (c) 2014 Juri Berlanda * * Licensed under the MIT License (see LICENSE.txt) */ package org.duckdns.raven.ttscallresponder.dataAccess; import android.content.ContentResolver; import android.content.Context; import android.database.Cursor; import android.net.Uri; import android.provider.ContactsContra...
Java
src/org/duckdns/raven/ttscallresponder/dataAccess/PhoneBookAccess.java
j-be/TtsCallResponder
mit
1,721
65
codeparrot/github-code
b497dee6ec4f82cb94a98676931bdd6321f27a034eb71d2a34fdd47c55bca122
<?php /* @styles/step_1.html.twig */ class __TwigTemplate_72389635b3737085dae796688d8ee193b3e1b1e3239b6d2e1ee71d7f883831b3 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); // line 1 $this->parent = $this->loadTemplate("@styles/layo...
PHP
web/install/cache/dev/twig/ed/ed422fcbd09889c31fc1244a1162372ad524ed2a1f79c4908319e4529ed2a0af.php
MyRayTech/CMSFul
mit
6,300
130
codeparrot/github-code
c601a19222cc8b260932d625b9d44a4022a7f3786fae0379c05ffa88588be23e
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; //using System.Numerics; //comment out if AOJ using System.Text; using Problem = Tmp.Problem; using MyIO; #pragma warning disable //for AOJ namespace Tmp { class Problem : I...
C#
atcoder/abc/abc075/c/Program.cs
yu3mars/procon
mit
6,734
218
codeparrot/github-code
ed6656449320fff3d4db997af74c571304f1541c3ce23171c59326ce9a680f0a
using System; using System.Collections.Generic; using System.Text; class KaspichanNumbers { static string[] KaspichanDigits = new string[256]; static void Main() { FillDigits(); ulong decimalNumber = ulong.Parse(Console.ReadLine()); string KaspichanNumber = ConvertToKaspichan(dec...
C#
C#-part-two/Exam-preparation/KaspichanNumbers/KaspichanNumbers.cs
svilenbonev/TelerikAcademy
mit
1,427
66
codeparrot/github-code
cb0699e53c55072be6f7e40d5b6de367296bff3bd0d10310defeebab8901699d
using System; using System.Collections.Generic; namespace Trigon.UI { /// <summary> /// Adorner layer element. /// </summary> public class AdornerLayer : ContentElement { /// <summary> /// The adorners. /// </summary> private readonly HashSet<Adorner> adorners = new...
C#
src/Trigon/UI/AdornerLayer.cs
vetuomia/trigon
mit
3,563
127
codeparrot/github-code
58d026b6544d700649d55bae9db26bac33fe82edcad5f8d77a9683ec0dec1173
--- layout: post title: "Property-based testing is not the same as partition testing" description: "Including an example of property-based testing without much partitioning." date: 2021-06-28 6:45 UTC tags: [Unit Testing, Haskell, Property-based Testing] image: "/content/binary/partition-property-based-testing-venn.png...
HTML
_posts/2021-06-28-property-based-testing-is-not-the-same-as-partition-testing.html
ploeh/ploeh.github.com
mit
35,718
556
codeparrot/github-code
cb3c74515dc665aea2ce4794e3a5b11d60945f25fb434e06b79e425df4457269
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>User agent detail - Mozilla/5.0 (Linux; Android 4.1.1; VS TOUCHTAB 7DC Build/JRO03H) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.58 Safari/537.31 OPR/14.0.1074.58201</title> <link rel="stylesheet" href...
HTML
v5/user-agent-detail/7f/c8/7fc81454-a3ff-47f6-8732-56a22599cc09.html
ThaDafinser/UserAgentParserComparison
mit
56,824
1,384
codeparrot/github-code
55d073b429532a91f7cf3957e2c63428fe95e675a1cf4a041e86bee9647602b0
# -*- coding: utf-8 -*- import os import sys from django.contrib.auth.decorators import login_required from django import get_version as get_django_version from django.template import RequestContext from django.shortcuts import render_to_response from django.conf import settings from django_info import __version__ de...
Python
django_info/views.py
marcelor/django_info
mit
1,879
74
codeparrot/github-code
4cfe5c57e8bd9004ba84f9ff74f80e918e5db2f8bf36f10a449a31a67c84e6b6
// Copyright (c) 2012 Pieter Wuille // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "addrman.h" using namespace std; int CAddrInfo::GetTriedBucket(const std::vector<unsigned char> &nKey) const { CDataStream ss...
C++
src/addrman.cpp
YourCoin-project/YourCoin
mit
15,667
528
codeparrot/github-code
5c4db6dd2ac7c4c722b612e40c3ee367ee99aceeadb3a765f193f0390e4afd2d
/**************************************************************************** Copyright (c) 2010-2011 cocos2d-x.org http://www.cocos2d-x.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...
Java
proj.android/src/com/lyvv/SpaceGame/SpaceGame.java
vuvanly/space_game
mit
1,928
49
codeparrot/github-code
9fab8427d9f5f13d479917a01f5faa4e4a90a184abb01f500ccc949cc0c4c04b
<?php defined('C5_EXECUTE') or die('Access Denied.'); use Concrete\Core\Attribute\Form\Renderer; use Concrete\Core\Authentication\AuthenticationType; use Concrete\Core\Config\Repository\Repository; use Concrete\Core\Entity\Attribute\Key\UserKey; use Concrete\Core\Form\Service\Form; use Concrete\Core\Localization\Loca...
PHP
concrete/single_pages/account/edit_profile.php
MrKarlDilkington/concrete5
mit
5,190
149
codeparrot/github-code
4422db2262d607b1bf25646b83da8ff93e595cf96a8d0fe52232fa010325fb0f
#define USE_DMA #define USE_GTE_PERSP // This requires USE_GTE_PERSP! // (It is *slightly* faster.) #define USE_GTE_RTPT #ifdef USE_GTE_RTPT #ifndef USE_GTE_PERSP #error "USE_GTE_RTPT requires USE_GTE_PERSP" #endif #endif #define MS_SHADOW (1<<0) #define MS_FLASH (1<<1) #define MS_NOPRIO (1<<2) typedef struct mesh ...
C
mesh.c
fanzyflani/ld33
mit
8,757
423
codeparrot/github-code
5da273a1e4e0f7c255353ad084418ed100455c7d1224604a74d21a47a25e2fb9
#!BPY """ Name: 'Inter-Quake Model' Blender: 249 Group: 'Export' Tip: 'Export Inter-Quake Model files' """ import struct, math import Blender import BPyArmature IQM_POSITION = 0 IQM_TEXCOORD = 1 IQM_NORMAL = 2 IQM_TANGENT = 3 IQM_BLENDINDEXES = 4 IQM_BLENDWEIGHTS = 5 IQM_COLOR ...
Python
blender-2.49/iqm_export.py
lsalzman/iqm
mit
40,875
969
codeparrot/github-code
ba8cf4fa210eb8e4f688be21b691b7617acc2abfbfec1cd7fe75d0f56d710ec8
#region Licence /**************************************************************************** Copyright 1999-2015 Vincent J. Jacquet. All rights reserved. Permission is granted to anyone to use this software for any purpose on any computer system, and to alter it and redistribute it, subject t...
C#
WmcSoft.Core/ResourceManagerExtensions.cs
vjacquet/WmcSoft
mit
2,710
60
codeparrot/github-code
b06af12c88daa16d165d5d4e30f4bb3092a5a56c6f42661262592271c2949168
package com.restfb; /** * The JSONException is thrown by the JSON.org classes then things are amiss. * * @author JSON.org * @version 2008-09-18 */ class JSONException extends Exception { private Throwable cause; /** * Constructs a JSONException with an explanatory message. * * @param message * ...
Java
src/com/restfb/JSONException.java
fumingshih/savefaceDemo
mit
594
30
codeparrot/github-code
6d2f8f49d82360a9cebff0f345c1f31286f6e0a211dfad16b388a61661c191a8
<?php /** * Xservice.php * * @package arch-php * @author jafar <jafar@xinix.co.id> * @copyright Copyright(c) 2011 PT Sagara Xinix Solusitama. All Rights Reserved. * * Created on 2011/11/21 00:00:00 * * This software is the proprietary information of PT Sagara Xinix Solusitama. * * History * ===...
PHP
arch/libraries/Xservice.php
rip-projects/judge
mit
1,732
76
codeparrot/github-code
05e73ca67355e8318c8973be3e1b06bbd4383e95ea438b0183380b1c340a2cf9
{-# LANGUAGE MultiParamTypeClasses #-} module Core ( NonUnitVector , UnitVector , Point(..) , Ray(..) , Transform(..) , RayPosition , VectorUnaryOps(..) , VectorBinaryOps(..) , RefractiveIndex , RayWithMedium(..) , vector , normal , unsafeForceUnitVector , origin , to , normalize , normalizeWithLength , at , toRayP...
Haskell
src/experiment08/Core.hs
stu-smith/rendering-in-haskell
mit
8,275
288
codeparrot/github-code
9027314ec399307ce3d4fd750649f7971f750c04bf9947e308084cf196cc088f
/** * * - send: 1210 ----------- * - send: 1723 ----------|---- * - send: 1513 ----------|---|---- * ---- recv: 1723 <------|---- * - send: 1164 ----------|------------ * - send: 1146 ----------|---------------- * - send: 1926 ----------|-------------------- * ---- recv: 1164 | * - send: 1841 ------...
JavaScript
talk/exhibit-b.js
soggie/naws
mit
1,474
60
codeparrot/github-code
5ad5b9cf73251ff04898d16905ac75b76a4746fe1f6635923b20234afbc1eaf8
using UnityEngine; using System.Collections; // place this on the object to be used as an invisibility potion public class InvisibilityPotion : Potion { protected Vector3 fullScale; // the duration of the potion's effects in seconds public int duration = 3; private bool pickedUp = false; // Use this fo...
C#
Chase/Chase/Assets/Scripts/Potions/InvisibilityPotion.cs
rbVessal/Chase
mit
809
39
codeparrot/github-code
5670b60400c7f5a2b89839564d450149200ecf2f95fb184c4fef892487c604cd
import ply.lex as lex from ast import Node reserved = { 'or' : 'LOR', 'and' : 'LAND', 'neg' : 'NEG', 'exists' : 'EXISTS', 'forall' : 'FORALL', 'implies': 'IMPLIES', 'iff' : 'IFF' } tokens = tuple( [ 'WORD', 'VARIABLE', 'CONSTANT', 'FUNCTION', 'PREDICATE', 'COMMA', 'LPA...
Python
lex.py
arity-r/MiniLogic
mit
1,410
82
codeparrot/github-code
d7616ef5a35366ddf82dc5a31a7512d56b9b8b9d8ab40ffd3b422b687000c8c8
""" A small Sphinx extension that adds Domain objects (eg. Python Classes & Methods) to the TOC Tree. It dynamically adds them to the already rendered ``app.env.tocs`` dict on the Sphinx environment. Traditionally this only contains Section's, we then nest our Domain references inside the already existing Sections. ""...
Python
autoapi/toctree.py
rtfd/sphinx-autoapi
mit
5,871
158
codeparrot/github-code
ca545cab345c7b9892c498388278ac152075c3ac56466d1e087dbfc19df2ec0a
/** * Copyright 2015 the original author or authors * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by ...
Java
src/test/java/com/wandrell/tabletop/testing/utils/test/unit/interval/function/TestUpperDifference.java
Bernardo-MG/tabletop-intervals
mit
3,274
97
codeparrot/github-code
b066c5fd492c48fbe5b32cf34598db62ebe571c42ba4694b434faa685cdad05c
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE TupleSections #-} -- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-origin.html module Stratosphere.ResourceProperties.CloudFrontDistributionOrigin where...
Haskell
library-gen/Stratosphere/ResourceProperties/CloudFrontDistributionOrigin.hs
frontrowed/stratosphere
mit
4,862
78
codeparrot/github-code
10d83b1e066bd3b30e2e3cead438299017337837051ad0b98e74583a2c048a2f
'use strict'; angular.module('grtyrApp') .factory('Auth', function Auth($rootScope, $http, User, $cookieStore, $q) { /** * Return a callback or noop function * * @param {Function|*} cb - a 'potential' function * @return {Function} */ var safeCb = function(cb) { return (angul...
JavaScript
client/components/auth/auth.service.js
grtyr/grtyr-web
mit
5,217
192
codeparrot/github-code
a1de0bbde62dfb738e15818e9f73214818ed1a219ddddbf42af367d327de7a8f
package org.aikodi.java.core.type; import java.util.List; import org.aikodi.chameleon.core.lookup.LocalLookupContext; import org.aikodi.chameleon.core.lookup.LookupException; import org.aikodi.chameleon.oo.type.TypeInstantiation; import org.aikodi.chameleon.oo.type.generics.CapturedTypeParameter; import org.aikodi.ch...
Java
src/org/aikodi/java/core/type/CapturedType.java
markovandooren/jnome
mit
1,462
53
codeparrot/github-code
d9cdb1c688cc964ebb2c1b7b1c8709c1e3233ab585ec0ee319fb4d8603973fa6
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.core.implementation.serializer; import com.azure.core.exception.HttpResponseException; import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpMethod; import com.azure.core.http.HttpRequest...
Java
sdk/core/azure-core/src/test/java/com/azure/core/implementation/serializer/HttpResponseBodyDecoderTests.java
Azure/azure-sdk-for-java
mit
34,286
626
codeparrot/github-code
b308796dbd7645f293013b8dfa590abd3aa25917141b944be7d4b5ec93dfd15e
package com.example.note; import java.text.SimpleDateFormat; import java.util.Date; import android.app.Activity; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.database.Cursor; import android.graphics.Canvas; import android.graphics.Color; import...
Java
note/Note/src/com/example/note/NoteEdit.java
tamzi/sophia
mit
6,225
214
codeparrot/github-code
5992cd7bd3a6d148c65618ffb84899da776dd0182f277cf71e3d6b7ef2a2a15a
#!/bin/bash # CIJ_sphere.bash # Shell script to plot phase velocity surfaces for elastic constants on a sphere # with the viewpoint of one's choosing ############################################### # CIJ_plot_cij2phasevels must be in your PATH # ############################################### usage () { { echo "`ba...
Shell
CIJ_plot/CIJ_sphere.bash
anowacki/elasticity
mit
8,872
297
codeparrot/github-code
5009672f8432d7683d14c151b4049f52ff57fd5fd0f90a3ce57ca9f8038b6230
import { CancellableAction } from './Action' export default function trifurcate (f, r, c, p, promise) { // assert: promise.token == null p._when(p._whenToken(new Trifurcation(f, r, c, promise))) return promise } class Trifurcation extends CancellableAction { constructor (f, r, c, promise) { super(f, promise) ...
JavaScript
src/trifurcate.js
bergus/creed
mit
1,114
56
codeparrot/github-code
869e732ef4f024df8cf37389fa1b5db922833b120b5ba8632ee69294a0ee0c50
package net.qldarch.compobj; import javax.annotation.Nullable; import javax.inject.Inject; import javax.ws.rs.DELETE; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.core.Response; import net.qldarch.db.Db; import net.qldarch.hibernate.HS; import net.qldarch.jaxr...
Java
src/net/qldarch/compobj/WsDeleteCompObj.java
uq-eresearch/qldarch.backend
mit
1,669
55
codeparrot/github-code