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 |
|---|---|---|---|---|---|
<?xml version="1.0" ?><!DOCTYPE TS><TS language="he" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About LuckySevens</source>
<translation>אודות לייטקוין</translation>
<... | LuckySevens-Dev/LuckySevens | src/qt/locale/bitcoin_he.ts | TypeScript | mit | 122,802 |
using System;
using System.Collections.Generic;
namespace Util.Impresion.Web.Entities {
public partial class Imagenes
{
public Imagenes()
{
GuiasDet = new HashSet<GuiasDet>();
}
public int ImagenId { get; set; }
public int ProveedorId { get; set; }
... | Nestornjrz/GenealogiaAnimal | Utilidades/Util.Impresion.Web/Entities/Imagenes.cs | C# | mit | 540 |
---
id: 130
title: What I learned from my summer at Code for Nepal
date: 2014-12-22T21:31:20-05:00
author: codefornepal
layout: revision
guid: https://codefornepal.org/2014/12/14-revision-v1/
permalink: /2014/12/14-revision-v1/
---
by **<a title="Shashi Adhikari" href="https://codefornepal.org/staff/shashi-adhikari/" t... | codefornepal/codefornepal.github.io | _drafts/what-i-learned-from-my-summer-at-code-for-nepal14-revision-v1-What-I-learned-from-my-summer-at-Code-for-Nepal.md | Markdown | mit | 4,707 |
<!doctype html>
<html>
<head>
<style>
li {color: grey; padding-bottom: 5px;}
a:hover {color:red;}
body {width:400px;}
.vote-count {color: black;}
span {margin: 5px;}
img {vertical-align: text-bottom;}
</style>
<script src="jquery-2.1.4.min.js"></script>
<script src="popup.js"></script>
<tit... | raymonstah/BestPart | bestpart_chrome/popup.html | HTML | mit | 558 |
# mandikal.com
Personal website for [http://mandikal.com/](http://mandikal.com/) built with [Jekyll](http://jekyllrb.com/) and hosted on [GitHub Pages](https://pages.github.com/).
## Requirements
```sh
gem install github pages
```
## Usage
```sh
jekyll serve
```
## License
Data in [_data/resume.json](_data/resum... | sreeram6791/sreeram6791.github.io | README.md | Markdown | mit | 576 |
scouts = new Meteor.Collection('scouts', {
schema: new SimpleSchema({
userId: {
type: String,
index: 1,
unique: true
},
scoutId: {
type: String,
optional: true
},
scoutStatusCode: {
type: String,
optional: true
},
scoutLand: {
type: S... | Karl-PeterNos/fps02 | model/scouts.js | JavaScript | mit | 827 |
class AddAcceptedToFormAnswers < ActiveRecord::Migration[4.2]
def change
add_column :form_answers, :accepted, :boolean, default: false
end
end
| bitzesty/qae | db/migrate/20150326170750_add_accepted_to_form_answers.rb | Ruby | mit | 151 |
# frozen_string_literal: true
require 'view_model'
require 'oj'
module ViewModel::Controller
extend ActiveSupport::Concern
included do
rescue_from ViewModel::AbstractError, with: ->(ex) do
render_error(ex.view, ex.status)
end
end
def render_viewmodel(viewmodel, status: nil, serialize_context: ... | iknow/cerego_view_models | lib/view_model/controller.rb | Ruby | mit | 4,169 |
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'
SQLALCHEMY_COMMIT_ON_TEARDOWN = True
MAIL_SERVER = 'smtp.googlemail.com'
MAIL_PORT = 587
MAIL_USE_TLS = True
MAIL_USERNAME = 'frey.maxim@gmail.com'
... | jeffthemaximum/jeffPD | config.py | Python | mit | 1,272 |
/*
* Copyright (c) 2012 Unicode Collective London > Amsterdam contributors
* This program is made available under the terms of the MIT License:
* http://www.opensource.org/licenses/MIT
*/
package com.unicodecollective.amsterdam;
import java.lang.reflect.Method;
public interface TokenCostFunction {
int calculate... | zooktech/amsterdam | src/main/java/com/unicodecollective/amsterdam/TokenCostFunction.java | Java | mit | 359 |
<?php declare(strict_types = 1);
declare(strict_types=1);
namespace DrdPlus\Properties\Combat\Partials;
use Granam\Integer\PositiveInteger;
use Granam\Integer\Tools\ToInteger;
abstract class PositiveIntegerCharacteristicForGame extends CharacteristicForGame implements PositiveInteger
{
/**
* @param int|str... | jaroslavtyc/drd-plus-properties | DrdPlus/Properties/Combat/Partials/PositiveIntegerCharacteristicForGame.php | PHP | mit | 707 |
/* global angular: false */
/**
* WinchJS Factory - Maintain state of winch
*
* Written by Sean Cady
*/
angular.module('winch')
.factory('winchFactory', [function() {
//Basic API structure
var API = {
_img: {}
};
/**
* Register an image
* @param URL
* @param load
* @para... | GeneralElectric/winchjs | files/winch-factory.js | JavaScript | mit | 3,515 |
exports.up = (knex, Promise) => {
return knex.schema.createTable('users', (table) => {
table.increments('id')
table.string('user_id')
// table.string('username')
table.string('server_id')
table.integer('quest_xp')
table.integer('message_xp')
table.dateTime('last_msg')
})
}
exports.down... | MarinMakers/eyebot | src/utils/migrations/1_user_data.js | JavaScript | mit | 386 |
using System;
using NUnit.Framework;
using StructureMap;
namespace TinyHandler.Tests
{
using TinyHandler.Tests.Mocks;
using TinyHandler.Tests.Mocks.Exceptions;
[TestFixture]
public class OnFailSequenceTests
{
[Test]
public void OnFailExecuted()
{
... | ApmeM/TinyHandler | Source/TinyHandler.Tests/OnFailSequenceTests.cs | C# | mit | 5,017 |
'use strict';
/**
* Module dependencies.
*/
var coursesPolicy = require('../policies/courses.server.policy'),
courses = require('../controllers/courses.server.controller');
module.exports = function (app) {
// Articles collection routes
app.route('/api/courses').all(coursesPolicy.isAllowed)
.get(courses.l... | hdmsoftware/lightcoder-v1 | modules/courses/server/routes/courses.server.routes.js | JavaScript | mit | 622 |
<?php
/**
* @copyright Copyright (C) 2015-2018 AIZAWA Hina
* @license https://github.com/fetus-hina/stat.ink/blob/master/LICENSE MIT
* @author AIZAWA Hina <hina@fetus.jp>
*/
use app\components\db\GearMigration;
use app\components\db\Migration;
class m180501_070903_nonslipsenseis extends Migration
{
use GearM... | fetus-hina/stat.ink | migrations/m180501_070903_nonslipsenseis.php | PHP | mit | 719 |
<?php
define('PATH_D2TRADETOOLS_SIGNATURE', realpath(dirname(__FILE__)));
class D2TradeTools_Signature {
public function __construct() {
}
private function get_color_from_code($im, $code) {
if($code == "c3") // magic
return ImageColorAllocate($im, 179, 226, 255);
else if($code == "c4")... | ericmuyser/d2tt | signature/signature.php | PHP | mit | 5,068 |
package alec_wam.CrystalMod.tiles.xp;
import alec_wam.CrystalMod.network.AbstractPacketThreadsafe;
import io.netty.buffer.ByteBuf;
import net.minecraft.client.network.NetHandlerPlayClient;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.network.NetHandlerPlayServer;
import net.minecraft.... | Alec-WAM/CrystalMod | src/main/java/alec_wam/CrystalMod/tiles/xp/PacketXPTank.java | Java | mit | 1,696 |
/* global Flash */
export default class BlobViewer {
constructor() {
this.switcher = document.querySelector('.js-blob-viewer-switcher');
this.switcherBtns = document.querySelectorAll('.js-blob-viewer-switch-btn');
this.copySourceBtn = document.querySelector('.js-copy-blob-source-btn');
this.simpleView... | htve/GitlabForChinese | app/assets/javascripts/blob/viewer/index.js | JavaScript | mit | 3,593 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport"/>
<meta content="telephone=no" name="format-detection"/>
<meta content="address=no" name="format-detection"/>
<title> 治腰疼方(丹溪心法) </title><script language="jav... | hucaihua/cmssp | server/html/prescription/199.html | HTML | mit | 1,154 |
<?php
declare(strict_types=1);
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\Localization;
class RofTest extends Localizati... | serima/Carbon | tests/Localization/RofTest.php | PHP | mit | 11,462 |
/**
* Created by khuongdt on 12/07/2015.
* Author : khuongdt
* Copyright @ 2015 by OneSoft.,JSC
*/
goog.provide('com.onesoft.livetube.entity.SCLogout');
goog.require('bigfox.Global');
goog.require('bigfox.core.base.BaseMessage');
goog.require('com.onesoft.livetube.base.LiveTag');
com.onesoft.livetube.entity.SCL... | khuongdt/livetube | app/livetube/live/entity/sc/SCLogout.js | JavaScript | mit | 563 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<base data-ice="baseUrl" href="../../../../../">
<title data-ice="title">src/templates/semantic/builderEditForm/index.js | formiojs</title>
<link type="text/css" rel="stylesheet" href="css/style.css">
<link type="text/css" rel="stylesheet" href="css/prettif... | formio/formio.js | docs/file/src/templates/semantic/builderEditForm/index.js.html | HTML | mit | 46,108 |
#ifndef BUW_MATERIAL_HPP
#define BUW_MATERIAL_HPP
#include <glm/glm.hpp>
#include <glm/vec3.hpp>
#include <string>
#include "color.hpp"
struct Material
{
std::string name_;
Color ka_;
Color kd_;
Color ks_;
float m_;
Material();
Material(std::string const& name, Color const& ka, Color c... | S1r0hub/programmiersprachen-raytracer | framework/material.hpp | C++ | mit | 614 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>TV</title>
<script>
var televisions = [];
function TV(make, model, screenSize, resolution)
{
this.make = make;
this.model = model;
this.screenSize = screenSize;
this.resolution = resolution;
this.isOn = false;
this.volumeL... | rogermle/bootcamp-feb9 | week1/day1/exercises/dom_tv2.html | HTML | mit | 2,962 |
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Dhwani 2010 CET | REG</title>
<meta http-equiv="Content-Language" content="en" />
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
<script src="js/jquery.min.1.4.2.js" type="text/javascript"></scrip... | cetfosscell/dhwanierp | dhwani1/registration/head.php | PHP | mit | 396 |
require File.expand_path("../../lib/bootlace", __FILE__)
require 'test_helper'
class BootlaceTest < MiniTest::Unit::TestCase
include TestHelpers
def test_reality
Bootlace.strap_up do |b|
assert_equal b, Bootlace.base
end
end
end
| highgroove/bootlace | test/bootlace_test.rb | Ruby | mit | 251 |
/* jslint node: true */
'use strict';
var cfg = require('../../../config.json');
exports.validNick = function(nickname) {
var regex = /^\w*$/;
return regex.exec(nickname) !== null;
};
// determine mass from radius of circle
exports.massToRadius = function (mass) {
return 4 + Math.sqrt(mass) * 6;
};
//... | Faris90/lagario | src/server/lib/util.js | JavaScript | mit | 2,688 |
layout:
- post
title: 'SelfStore'
date: 2014-07-26 00:00:00
categories: 网摘
tags: 创意事物
---
<a href="http://xinpinla.com/product/286" title="查看产品详情">
数字作品售卖社区,Writings.io 创始人 chloerei 新项目 </a>
更多详情请参考相关网站 [SelfStore](https://selfstore.io/)
本站数据以 [新品啦](http://xinpinla.com/) 作为入口点进行爬取! 并自动发布于g... | buf1024/xinpinla-crawler | hexo/source/_posts/2014-07-26-SelfStore.md | Markdown | mit | 462 |
.reveal .slides {
text-align: left; }
aside.controls {
display: none; }
div.slide-number {
display: none !important; }
.reveal .slides section.title {
background-position: 40px 40px; }
| holisticon/holisticon.github.io | presentations/reactive-systems/css/pdf.css | CSS | mit | 196 |
package com.tobykurien.jozijug;
import android.app.Activity;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.provider.ContactsContract;
import android.view.View;
import android.widget.Toast;
public class JoziJugActivity extends Activity {... | tobykurien/JoziJug | src/com/tobykurien/jozijug/JoziJugActivity.java | Java | mit | 1,702 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_cpy_22b.c
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE193.label.xml
Template File: sources-sink-22b.tmpl.c
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Allocate memory... | maurer/tiamat | samples/Juliet/testcases/CWE122_Heap_Based_Buffer_Overflow/s06/CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_cpy_22b.c | C | mit | 2,674 |
using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Windows;
using System.Windows.Input;
using System.Xml.Linq;
using SchematicControls;
namespace LiveSPICE
{
/// <summary>
/// Control for interacting with a Circuit.Schematic.
//... | dsharlet/LiveSPICE | LiveSPICE/Controls/Editor/SchematicEditor.cs | C# | mit | 14,708 |
using Chloe.Server.Models;
namespace Chloe.Server.Dtos
{
public class ProfileSettingDto
{
public ProfileSettingDto(ProfileSetting entity)
{
this.Id = entity.Id;
this.Name = entity.Name;
}
public ProfileSettingDto()
{
}
... | QuinntyneBrown/you-tube-video-manager | Server/Dtos/ProfileSettingDto.cs | C# | mit | 400 |
package vaadin.scala
import vaadin.scala.mixins.ListSelectMixin
package mixins {
trait ListSelectMixin extends AbstractSelectMixin
}
class ListSelect(override val p: com.vaadin.ui.ListSelect with ListSelectMixin = new com.vaadin.ui.ListSelect with ListSelectMixin) extends AbstractSelect(p) with MultiSelectable {
... | CloudInABox/scalavaadinutils | src/main/scala/vaadin/scala/ListSelect.scala | Scala | mit | 470 |
export const CODE_LENGTH = 12
export const ALL_DIGITS = /^\d+$/
export const normalizedValue = (value) => {
const { length } = value
const systemDigitMissing = !value.startsWith('0')
return length == CODE_LENGTH - 1 && systemDigitMissing ? '0' + value : value
}
export const passesCheckDigitVerification = (val... | armw4/redux-samples | client/lib/upc-a.js | JavaScript | mit | 884 |
# CarLog Backend
This folder contains the node.js backend API server for CarLog.
## Configuration
System configuration values are stored in `config/env/`, in a file named after the `NODE_ENV` environment variable, defaulting to `development`. Setting this environment variable allows overriding the configuration used... | carlogio/carlog | backend/readme.md | Markdown | mit | 788 |
<?php
$attributes = array('class' => 'form-horizontal', 'id' => 'delete_publicacion');
echo form_open(base_url('control/publicaciones/delete/'.$query->id), $attributes);
echo '<fieldset>'.form_hidden('id', $query->id);
?>
<legend><?php echo $title ?></legend>
<div class="well well-large well-transparent">
<!-- <p>... | hubermann/enlobos | application/views/control/publicaciones/comfirm_delete.php | PHP | mit | 1,583 |
-- Compare this against topic volume query to see that it aggregates
-- from data here.
SELECT id, topic, DATE(timestamp) AS date, timestamp, volume
FROM Trend
ORDER BY topic, timestamp
;
| MichaelCurrin/twitterverse | app/lib/db_query/sql/development/topicVolumeTest.sql | SQL | mit | 189 |
## IAP (Identity Aware Proxy) Authentication into Laravel
When IAP is turned on, you need a way to validate it's presence for the session, plus register the session with Laravel's user system.
For this, we validate each request statelessly, using the request headers (from the remnents of the Users API).
### Us... | a1comms/GaeSupportLaravel | docs/iap-auth-verify.md | Markdown | mit | 4,685 |
<?php
/**
* Site
*
* @author Maxence CAUDERLIER
* @link https://github.com/ZestCMS/ZestCMS
* @license http://opensource.org/licenses/MIT The MIT License
*/
namespace Zest\Responses;
/**
* Container to inject templates
* When Response is returned on Zest class, output() is called
*/
class... | ZestCMS/ZestCMS | zest/zest/responses/Site.php | PHP | mit | 2,356 |
module Main where
data MyBool = MyTrue | MyFalse
foo a MyFalse b = 0
foo c MyTrue d = 1
bar a = 2
main_ = foo 1 MyFalse 2
| Ekleog/hasklate | examples/BasicPatternMatching.hs | Haskell | mit | 126 |
# Privateer
Privateer provides an interface for integrating private apps with the Shopify API.
[](https://travis-ci.org/plainprogrammer/privateer)
[](https://c... | plainprogrammer/privateer | README.md | Markdown | mit | 1,403 |
class FnordMetric::Namespace
attr_reader :handlers, :gauges, :opts, :key
@@opts = [:event, :gauge, :widget, :set_title]
@@multi_gauges = [:timeseries_gauge, :toplist_gauge, :distribution_gauge]
def initialize(key, opts)
@gauges = Hash.new
@handlers = Hash.new.with_indifferent_access
@title = key... | razum2um/fnord_metric-core | lib/fnordmetric/namespace.rb | Ruby | mit | 5,389 |
<?php
/**
* The WordPress version string
*
* @global string $wp_version
*/
$wp_version = '4.9';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
*
* @global int $wp_db_version
*/
$wp_db_version = 38590;
/**
* Holds the TinyMCE version
*
* @global string $t... | mandino/hotelmilosantabarbara.com | wp-includes/version.php | PHP | mit | 617 |
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<title>HTML Tidy Extension — Python Markdown</title>
<link rel="stylesheet" href="../default.css" type="text/css">
</head>
<body>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="siteindex.html" ... | sckott/ingee_app | build/markdown/build/docs/extensions/html_tidy.html | HTML | mit | 4,371 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 2008 (1.71)
original version by: Nikos Drakos, CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and other... | mindriot101/cfitsio-dash-documentation | cfitsio.docset/Contents/Resources/Documents/node19.html | HTML | mit | 3,330 |
class V1::ConstantsController < ApplicationController
before_action :authenticate_user!
def product_entry
render template: 'v1/constants/product_entry', status: 200
end
def data_entry
render template: 'v1/constants/data_entry', status: 200
end
end
| MobilityLabs/pdredesign-server | app/controllers/v1/constants_controller.rb | Ruby | mit | 269 |
namespace _09.Multiplication_Table
{
using System;
public class MultiplicationTable
{
public static void Main()
{
var number = int.Parse(Console.ReadLine());
for (int i = 1; i <= 10; i++)
{
Console.WriteLine($"{number} X {i} = {number * ... | 1ooIL40/FundamentalExtendet017 | Conditional Statements and Loops - Lab/09. Multiplication Table/MultiplicationTable.cs | C# | mit | 360 |
package qub;
/**
* A Type that can only be read from.
* @param <T> The type of value that can be read.
*/
public interface Getter<T>
{
/**
* Get whether or not this object has a value.
* @return Whether or not this object has a value.
*/
boolean hasValue();
/**
* Get the value that ... | danschultequb/qub-java | sources/qub/Getter.java | Java | mit | 495 |
/* Last Changed Time-stamp: <2001-09-07 10:17:47 ivo> */
/* This program converts the bracket notation for RNA secondary structures
produced by RNAfold to .ct files used by Michael Zukers Program.
To compile enter:
cc -o b2ct b2ct.c
And use as
b2ct < structure_file > ct_... | lauringlab/CodonShuffle | lib/ViennaRNA-2.1.9/Utils/b2ct.c | C | mit | 3,793 |
import styled from 'styled-components'
const RulesContainer = styled.div`
text-align: justify;
h3 {
margin-bottom: 10px;
margin-left: 0;
}
.summary {
margin-left: 10px;
font-size: 10pt;
line-height: 13pt;
font-style: italic;
}
`
export default RulesContainer
| codenetwork/CodeNetwork.co | src/components/rulesContainer.js | JavaScript | mit | 294 |
# Ogre
_This lumbering giant's beady eyes are devoid of wit or kindness, and its puffy face features a wide mouth with ill-fitting teeth._
**Ogre CR 3**
**XP 800**
CE Large [humanoid](creatureTypes#_humanoid) ( [giant](creatureTypes#_giant-type))
**Init** –1; **Senses** darkvision 60 ft., low-light vision; [Percep... | brunokoga/pathfinder-markdown | prd_markdown/monsters/ogre.md | Markdown | mit | 3,520 |
/* eslint-disable */ 'use strict';
const chai = require('chai');
global.chaiAsPromised = require('chai-as-promised');
chai.should();
chai.use(chaiAsPromised);
global.expect = chai.expect;
global.AssertionError = chai.AssertionError;
global.Assertion = chai.Assertion;
global.assert = chai.assert;
| NiklasGollenstede/es6lib | test/node.js | JavaScript | mit | 300 |
/*
Copyright (c) 2018, Johnathan Corkery. (jcorkery@umich.edu)
All rights reserved.
This file is part of the Dynacoe project (https://github.com/jcorks/Dynacoe)
Dynacoe was released under the MIT License, as detailed below.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softw... | jcorks/Dynacoe | DynacoeSrc/srcs/Dynacoe/Color.cpp | C++ | mit | 13,886 |
require 'ostruct'
require 'yaml'
all_config = YAML.load_file("#{Rails.root}/config/xpay.yml") || {}
env_config = all_config[Rails.env] || {}
XpayConfig = OpenStruct.new(env_config) | kixorz/xpay-mongoid | config/initializers/xpay.rb | Ruby | mit | 181 |
/*!
* better-scroll / better-scroll
* (c) 2016-2020 ustbhuangyi
* Released under the MIT License.
*/
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may n... | cdnjs/cdnjs | ajax/libs/better-scroll/2.0.0-beta.6/better-scroll.esm.js | JavaScript | mit | 179,030 |
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("02.... | ShadyObeyd/ProgrammingFundamentals-Homeworks | 25.ExamPreparationIII/02.CommandInterpreter/Properties/AssemblyInfo.cs | C# | mit | 1,443 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE401_Memory_Leak__int_malloc_51a.c
Label Definition File: CWE401_Memory_Leak.c.label.xml
Template File: sources-sinks-51a.tmpl.c
*/
/*
* @description
* CWE: 401 Memory Leak
* BadSource: malloc Allocate data using malloc()
* GoodSource: Allocate data on the st... | maurer/tiamat | samples/Juliet/testcases/CWE401_Memory_Leak/s01/CWE401_Memory_Leak__int_malloc_51a.c | C | mit | 2,829 |
//
// Copyright (c) 2017 Advanced Micro Devices, Inc. All rights reserved.
//
// 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
/... | aonorin/Anvil | src/wrappers/pipeline_cache.cpp | C++ | mit | 6,038 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="14"/>
<source>About Bitcoin</source>
<translation>Acerca de Bitcoin</translation>
</m... | plusevcoin/plusevcoin-old | src/qt/locale/bitcoin_es.ts | TypeScript | mit | 112,320 |
# Voting Centers Resources
Code, data, and resources for building the source file for Orlando voting notifications
## Getting Started
This sub-project uses a Python command line utility to process raw data files. You'll need Python3 installed (preferably always the most recent minor version). You should activate a v... | cforlando/CityGram-Intermediary | voting_centers/README.md | Markdown | mit | 1,166 |
Dict(
2 => Symbol[:dot,:floor,:max,:any,:ldexp,:ceil,:normalize,:all,:log,:mod,:cross,:trunc,:round,:min]
3 => Symbol[:round,:ceil,:trunc,:floor,:fma,:any,:all,:clamp]
1 => Symbol[:atanh,:tanh,:exp2,:floor,:max,:any,:sin,:tan,:modf,:step,:log2,:acosh,:ceil,:normalize,:length,:atan,:all,:log,:isnan,:trunc,:a... | JuliaGL/GLBackend.jl | src/transpiler/gl_inbuild_funs.jl | Julia | mit | 416 |
describe('addClassDecorator', function () {
it('should call the decorate method when the Decorator is invoked', function () {
var info = {decorate: jasmine.createSpy('decorate')};
BaseClass.addClassDecorator('decorator', info);
BaseClass('name', function () {
~decorator();
... | rodyhaddad/classicaljs | test/spec/addClassDecoratorSpec.js | JavaScript | mit | 7,050 |
#!/bin/sh
for paneid in `tmux list-panes -s | awk -F":" '{print $1}'`
do
tmux clear-history -t $paneid
done
for buffid in `tmux list-buffers | awk -F":" '{print $1}'`
do
tmux delete-buffer -b $buffid
done
| mmmonk/crap | other/tmux_clean.sh | Shell | mit | 212 |
html,
#columns {
column-count: 3;
column-gap: 10px;
list-style-type: none;
line-height: 70px;
position: fixed;
bottom: 150px;
width: 1920px;
margin-left: auto;
margin-right: auto;
color: white;
}
body {
text-align: center;
font-size: 1.75em;
text-shadow: 0 .1rem .1rem rgba(0,0,0,.5);
backgr... | mrculver11/heritage-kiosk | hkiosk/public/css/index.css | CSS | mit | 876 |
# redux-elm-middleware
> Elm middleware for redux :sparkles:
<img src="https://cdn.rawgit.com/stoeffel/redux-elm-middleware/v017/logo/logo.svg" alt="logo" width="250" height="252">
[](https://travis-ci.org/stoeffel/redux-elm-middle... | stoeffel/redux-elm-middleware | README.md | Markdown | mit | 3,640 |
'use strict';
const stateModule = angular.module('hkRouter', ['ui.router']);
stateModule
.config(['$stateProvider', '$urlRouterProvider',
function($stateProvider, $urlRouterProvider) {
/////////////////////////////
// Redirects and Otherwise //
/////////////////////////////
$urlRouterProvide... | railsstudent/angular-hkaccessible | app/js/routers.js | JavaScript | mit | 3,163 |
# Tabit
[](https://rubygems.org/gems/tabit)
[](https://travis-ci.org/webhippie/tabit)
[](https://codeclimate.com/github/webhippie/tabi... | webhippie/tabit | README.md | Markdown | mit | 1,484 |
using System;
using System.Collections.Generic;
using Csla;
namespace ParentLoad.DataAccess.ERLevel
{
/// <summary>
/// DAL Interface for A12_CityRoad type
/// </summary>
public partial interface IA12_CityRoadDal
{
/// <summary>
/// Inserts a new A12_CityRoad object in t... | CslaGenFork/CslaGenFork | trunk/Samples/DeepLoad/DAL-DTO/ParentLoad.DataAccess/ERLevel/IA12_CityRoadDal.Designer.cs | C# | mit | 1,126 |
<div>
<h1>The Kingdom</h1>
<router-outlet></router-outlet>
</div>
| hirezio/the-princess-guards | src/app/app.component.html | HTML | mit | 71 |
//Write a program that reads an integer number and calculates and prints its
//square root.
//If the number is invalid or negative, print Invalid number.
//In all cases finally print Good bye.Use try-catch-finally block.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Syste... | NikolaLyutsov/TelerikAcademy | Homeworks/C#2/07. Exception-Handling/01. Square root/Program.cs | C# | mit | 990 |
$(function() {
setInterval( function() {
var seconds = new Date().getSeconds();
var sdegree = seconds * 6;
var srotate = "rotate(" + sdegree + "deg)";
$('.dynamic-time').html(moment(new Date()).format("hh:mm:ss A"));
$("#sec").css({"-moz-transform" : srotate, "-webkit-transform" :... | HVish/student-portal | assets/js/css3clock/js/css3clock.js | JavaScript | mit | 934 |
using System;
using System.Data;
using System.Data.SqlClient;
using Csla;
using Csla.Data;
namespace ParentLoadROSoftDelete.Business.ERCLevel
{
/// <summary>
/// F01_ContinentColl (read only list).<br/>
/// This is a generated base class of <see cref="F01_ContinentColl"/> business object.
... | CslaGenFork/CslaGenFork | trunk/Samples/DeepLoad/ParentLoadROSoftDelete.Business/ERCLevel/F01_ContinentColl.Designer.cs | C# | mit | 5,890 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pt_PT" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About MoneyCoin</source>
<translation type="unfinished"/>
</message>
<message>
<location l... | pcoindev/moneycoin | src/qt/locale/moneyclient_pt_PT.ts | TypeScript | mit | 135,115 |
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Collections;
namespace ToolBelt
{
public class DuplicateItemException : Exception
{
public DuplicateItemException()
{
}
}
public class ParsedPathList : IList<ParsedPath>
{
... | jlyonsmith/ToolBelt | ToolBelt/IO/ParsedPathList.cs | C# | mit | 3,853 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Reflection;
using System.Runtime.Serialization;
using System.Web.Http;
using System.Web.Http.Description;
using System.Xml... | jawa-the-hutt/Decisions-CORS-Proxy | DecisionsCoreProxy/Areas/HelpPage/ModelDescriptions/ModelDescriptionGenerator.cs | C# | mit | 19,091 |
#!/usr/bin/env ruby
# Copyright (c) 2015 Phusion Holding B.V.
#
# 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, mo... | clemensg/passenger | src/helper-scripts/crash-watch.rb | Ruby | mit | 1,469 |
namespace HelixToolkit.Win8
{
using System;
using System.Diagnostics;
using System.IO;
using HelixToolkit.Win8.CommonDX;
using SharpDX;
using SharpDX.DXGI;
using SharpDX.Direct3D;
using SharpDX.Direct3D11;
using SharpDX.IO;
public class ExampleCube3D : Element3D
... | smallholexu/helix-toolkit | Source/HelixToolkit.Win8/Model/ExampleCube3D.cs | C# | mit | 9,303 |
using System;
using SDL2;
namespace SDL2_CS_OO
{
public sealed class SDLAudioDevice : IDisposable
{
private uint myDeviceID;
private SDL.SDL_AudioSpec myObtainedSpec;
public SDLAudioDevice(ref SDL.SDL_AudioSpec Desired, out SDL.SDL_AudioSpec Obtained)
{
myDevic... | coruscateor/SDL2-CS-OO | SDL2-CS-OO/SDLAudioDevice.cs | C# | mit | 2,582 |
class AddAttachsToSenders < ActiveRecord::Migration
def change
add_column :senders, :attachs, :json
end
end
| olenberg/sement | db/migrate/20160224045635_add_attachs_to_senders.rb | Ruby | mit | 116 |
<?php
/**
* Class Sheep_Debug_Model_Service
*
* @category Sheep
* @package Sheep_Debug
* @license Copyright: Pirate Sheep, 2016
* @link https://piratesheep.com
*/
class Sheep_Debug_Model_Service
{
/**
* Return's Magento base design directory
*
* @return string
*/
public functi... | madalinoprea/magneto-debug | code/Debug/Model/Service.php | PHP | mit | 11,152 |
angular
.module('AngularCommunicator', [])
.provider('angularCommunicatorService', function() {
var registeredListeners = {};
function buildHierarchicalStructure(reg, splitName, callback) {
(!reg[splitName[0]]) && (reg[splitName[0]] = {listeners: []});
if(splitName.length === 1) {
reg[... | alanschlindvein/angular-communicator | src/angular-communicator.js | JavaScript | mit | 3,641 |
#include "GameEngine.h"
GameEngine::GameEngine(
IGameWindow* const gameWindow,
OglEngine* const graphicsEngine,
IMessagePump* const messagePump,
nz::Config* const config) :
GameLoop(STEP_RATE),
_gameWindow(gameWindow),
_graphicsEngine(graphicsEngine),
_messagePump(messagePump),
_config(config),
_messageActio... | codeflowerblue/demo | Game/GameEngine.cpp | C++ | mit | 1,490 |
# jqvmap.creator
A tool to help to create maps for [jqvmap](https://github.com/manifestinteractive/jqvmap).
The main process is too create map or open shapfile with [QGIS](https://www.qgis.org/en/site/), then export data as geojson file and last run the python script.
| benjaminbuffet/jqvmap.creator | README.md | Markdown | mit | 273 |
require 'test_helper'
class ProducerSessionsHelperTest < ActionView::TestCase
end
| ict4g/ror-ec-2014 | example/gas_app/test/helpers/producer_sessions_helper_test.rb | Ruby | mit | 83 |
// WARNING
//
// This file has been generated automatically by Xamarin Studio from the outlets and
// actions declared in your storyboard file.
// Manual changes to this file will not be maintained.
//
using System;
using Foundation;
using UIKit;
using System.CodeDom.Compiler;
namespace EvolveQuest.iOS
{
[Register ("... | xamarin/evolve-quest | EvolveQuest.iOS/QuestCompletedViewController.designer.cs | C# | mit | 983 |
/*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
*
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
* DAMAGES OR OTHER LIA... | bartprokop/fps-demo | src/main/java/name/prokop/bart/fps/util/ToString.java | Java | mit | 8,386 |
import React from 'react';
import SvgImage from 'components/svg-image';
import ChartLabel from 'components/chart-label';
import { getLayout } from 'layouts/flexbox';
import getCenter from 'decorators/get-center';
@getCenter
export default class HorizontalBarDetail extends React.Component {
static propTypes = {
... | ronlobo/building-os-charts | src/components/horizontal-bar-detail.js | JavaScript | mit | 2,082 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__wchar_t_connect_socket_w32_execvp_15.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-15.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: connect_socket Read data ... | maurer/tiamat | samples/Juliet/testcases/CWE78_OS_Command_Injection/s05/CWE78_OS_Command_Injection__wchar_t_connect_socket_w32_execvp_15.c | C | mit | 7,290 |
export interface IServiceNowCredentials {
username: string;
password: string;
url: string;
}
export interface ICreatedTicket {
tableName: string;
ticketNumber: string;
url: string;
}
export enum StageStatus {
NotStarted,
InProgress,
Complete,
Rejected
}
export interface ITicke... | masonch/vsts-servicenow-buildtasks | ServiceNow/Web/WebExtensions/src/Models/ServiceNow.ts | TypeScript | mit | 485 |
bitcoin blockchain browser | elkoutwest/bitcoin_browser | README.md | Markdown | mit | 26 |
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['408',"Tlece.Recruitment.Controllers Namespace","topic_000000000000018A.html"],['597',"SiteManagementController Class","topic_000000000000022F.html"],['599',"Methods","topic_000000000000022F_methods--.html"],['605',"... | asiboro/asiboro.github.io | vsdoc/toc--/topic_0000000000000236.html.js | JavaScript | mit | 383 |
yahgm
=====
Yet Another HTML5 Game Maker
For vim users: `:set sw=2 ts=2 et`
| lain-dono/yahgm | README.md | Markdown | mit | 78 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_loop_09.c
Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE805.label.xml
Template File: sources-sink-09.tmpl.c
*/
/*
* @description
* CWE: 121 Stack Based Buffer Overflow
* BadSource: Set data... | maurer/tiamat | samples/Juliet/testcases/CWE121_Stack_Based_Buffer_Overflow/s04/CWE121_Stack_Based_Buffer_Overflow__CWE805_struct_alloca_loop_09.c | C | mit | 4,987 |
package mcjty.deepresonance.blocks.purifier;
import mcjty.deepresonance.DeepResonance;
import mcjty.deepresonance.network.DRMessages;
import mcjty.lib.gui.GenericGuiContainer;
import mcjty.lib.gui.Window;
import mcjty.lib.gui.layout.PositionalLayout;
import mcjty.lib.gui.widgets.Panel;
import mcjty.lib.gui.widgets.Wid... | McJty/DeepResonance | src/main/java/mcjty/deepresonance/blocks/purifier/GuiPurifier.java | Java | mit | 1,394 |
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86
call msbuild
call "C:\Program Files (x86)\NUnit 2.5.10\bin\net-2.0\nunit-x86.exe" /run %1 | jaquadro/Treefrog | Treefrog.Framework.Tests/test.bat | Batchfile | mit | 171 |
;(function(jqi, $, undefined) {
function Dive(index, $step, $previous, options) {
var z = $step.attr('data-z'),
x = $previous.attr('data-x'),
y = $previous.attr('data-y');
if (!z) z = -2000;
else z = parseInt(z) - 2000;
$step.attr({'data-z' : z, 'data-x' : x, 'data-y' : y });
return this;
}
jqi.Di... | b3ngineer/jqImpress | src/Dive.js | JavaScript | mit | 355 |
---
title: aas1
type: products
image: /img/Screen Shot 2017-05-09 at 11.56.54 AM.png
heading: s1
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
### Baah
image1:
... | pblack/kaldi-hugo-cms-template | site/content/pages2/aas1.md | Markdown | mit | 337 |
posejs
=======
Page object oriented selenium-webdriver library for node. ATM in a concept phase...
[](https://travis-ci.org/selaux/posejs)
[](https://david-dm.org/selaux/posejs)
How its supposed to look lik... | selaux/posejs | README.md | Markdown | mit | 1,501 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.