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 |
|---|---|---|---|---|---|
/**
*
* @param dataset
* @constructor
*/
morpheus.Project = function (dataset) {
this.originalDataset = dataset;
this.rowIndexMapper = new morpheus.IndexMapper(this, true);
this.columnIndexMapper = new morpheus.IndexMapper(this, false);
this.groupRows = [];
this.groupColumns = [];
this.rowColorModel = n... | cmap/morpheus.js | src/matrix/project.js | JavaScript | bsd-3-clause | 9,692 |
/*
* Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | highweb-project/highweb-webcl-html5spec | third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.h | C | bsd-3-clause | 4,382 |
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "content_edit_proj.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| burke-software/django-content-edit | manage.py | Python | bsd-3-clause | 260 |
<?php
/*
php /home/vuong761/public_html/shell/thoitrang1/sendo_facebook_keyword.php
* Balo
*/
include ('base.php');
$searchs = [
[
'keyword' => "VZID23574",
'link' => "https://www.sendo.vn/shop/zanadofashion/san-pham/balo-cap-tap-di-lam-di-hoc-smart-st07-tien-dung-hot-vzid23574-36228... | thailvn/dev | shell/thoitrang1/sendo_facebook_keyword.php | PHP | bsd-3-clause | 61,524 |
@extends('layout.dashboard')
@section('content')
<div class="header">
<div class="sidebar-toggler visible-xs">
<i class="ion ion-navicon"></i>
</div>
<span class="uppercase">
<i class="ion ion-ios-person-outline"></i> {{ trans('dashboard.team.profile') }}
</s... | thijs1108/ParnasSys-statuspage | resources/views/dashboard/user/index.blade.php | PHP | bsd-3-clause | 4,536 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/installer/util/installation_state.h"
#include <memory>
#include "base/check.h"
#include "base/strings/string_util.h"
#include "base... | ric2b/Vivaldi-browser | chromium/chrome/installer/util/installation_state.cc | C++ | bsd-3-clause | 7,990 |
# -*- coding: utf-8 -*-
# __author__ = chenchiyuan
from __future__ import division, unicode_literals, print_function
from django.core.management import BaseCommand
from applications.posts.models import Post
class Command(BaseCommand):
def handle(self, *args, **options):
posts = Post.objects.all()
... | chenchiyuan/yajiong | applications/posts/management/commands/clear_posts_same.py | Python | bsd-3-clause | 710 |
<?php
/**
* Author: Eugine Terentev <eugine@terentev.net>
*/
namespace common\components\grid;
use yii\grid\DataColumn;
use yii\helpers\ArrayHelper;
/**
* Class EnumColumn
* [
* 'class' => '\common\components\grid\EnumColumn',
* 'attribute' => 'role',
* 'enum' => User::getRoles()
* ]
* @packag... | thuongqbd/bdsii | common/components/grid/EnumColumn.php | PHP | bsd-3-clause | 1,067 |
// lagou
dataHost = "a.lagou.com";
(function(i, s, o, g, r, a, m) {
i['LgAnalytics'] = r;
i[r] = i[r] || function() {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
... | zjn580/jxtweb | web/personal01/analytics(1).js | JavaScript | bsd-3-clause | 2,686 |
#include <iostream>
#include <chrono>
#include "caf/all.hpp"
#include "caf/io/all.hpp"
using std::cout;
using std::cerr;
using std::endl;
using namespace caf;
using namespace caf::io;
using tick_atom = atom_constant<atom("tick")>;
constexpr const char http_ok[] = R"__(HTTP/1.1 200 OK
Content-Type: text/plain
Conne... | cmaughan/actor-framework | examples/brokers/simple_http_broker.cpp | C++ | bsd-3-clause | 2,615 |
/******************************************************************************
*
* PROJECT: Carnegie Mellon Planetary Rover Project
* Task Control Architecture
*
* (c) Copyright 1991 Christopher Fedor and Reid Simmons. All rights reserved.
*
* MODULE: resources
*
* FILE: resMod.c
*
* ABSTRACT:
... | languitar/ipc | src/resMod.c | C | bsd-3-clause | 15,320 |
//======================================================================================
// Copyright 5AM Solutions Inc, Yale University
//
// Distributed under the OSI-approved BSD 3-Clause License.
// See http://ncip.github.com/caarray/LICENSE.txt for details.
//=======================================================... | NCIP/caarray | software/test/src/test/java/gov/nih/nci/caarray/test/api/legacy/java/file/ApiFileDownload.java | Java | bsd-3-clause | 8,016 |
<?php $user = $this->session->read('user');?>
<div style="float:right;">
<?php if(in_array($user['role'], array('admin','staff'))):?>
<?=$this->html->link('Tickets', array('Tickets::index',$user['role']=>true));?>
|
<?=$this->html->link('Purchases', array('Purchases::index',$user['role']=>true));?>
... | masom/Chowly | views/elements/menu.html.php | PHP | bsd-3-clause | 778 |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "extensions/common/permissions/api_permission_set.h"
#include "base/logging.h"
#include "base/stl_util.h"
#include "base/strings/string_number_c... | cvsuser-chromium/chromium | extensions/common/permissions/api_permission_set.cc | C++ | bsd-3-clause | 9,919 |
---
title: Local Development (Beta)
lang: en
---
The Local Development Server is a Salesforce CLI plug-in that configures and runs a Lightning Web Components-enabled server on your computer. You can develop Lightning web components and see live changes without publishing the components to an org.
## Run Local Develop... | forcedotcom/salesforcedx-vscode | docs/_articles/en/localdev/lwclocaldev.md | Markdown | bsd-3-clause | 3,102 |
# SHCrossPowerL
Compute the cross-power of two real functions for a single spherical harmonic degree.
# Usage
`cpower` = pyshtools.SHCrossPowerL (`cilm1`, `cilm2`, `l`)
# Returns
`cpower` : float
: The cross power of the two functions for spherical harmonic degree `l`.
# Parameters
`cilm1` : float, dimension (... | heroxbd/SHTOOLS | src/pydoc/pyshcrosspowerl.md | Markdown | bsd-3-clause | 1,278 |
/********************************************************
* GoOS Loader - elf64.h
********************************************************
* Copyright (c) 2016, Gert Nutterts
* All rights reserved
*
* Released under the BSD 3-clause license.
* https://github.com/nutterts/GoOS/blob/master/LICENSE
***************... | nutterts/GoOS | ldr/elf64.h | C | bsd-3-clause | 1,676 |
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- template designed by Marco Von Ballmoos -->
<title>Docs for page ColorPicker.php</title... | CoursePark/Zend-Framework-Releases | extras/documentation/api/extras/ZendX_JQuery/View/_JQuery---Form---Element---ColorPicker.php.html | HTML | bsd-3-clause | 6,325 |
// Copyright 2015 The Serulian 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 formatter
import (
"github.com/serulian/compiler/sourceshape"
)
// emitField emits the source of a declared field.
func (sf *sourceFormatter) e... | Serulian/compiler | formatter/typelevel.go | GO | bsd-3-clause | 5,056 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/gpu/gpu_info_collector.h"
#include <windows.h>
#include <d3d9.h>
#include <setupapi.h>
#include "base/command_line.h"
#include "ba... | keishi/chromium | content/gpu/gpu_info_collector_win.cc | C++ | bsd-3-clause | 13,280 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/login/default_user_images.h"
#include "base/basictypes.h"
#include "base/logging.h"
#include "base/strings/string_n... | cvsuser-chromium/chromium | chrome/browser/chromeos/login/default_user_images.cc | C++ | bsd-3-clause | 9,438 |
/////////////////////////////////////////////////////////////////////////////
// Name: src/xrc/xh_gauge.cpp
// Purpose: XRC resource for wxGauge
// Author: Bob Mitchell
// Created: 2000/03/21
// Copyright: (c) 2000 Bob Mitchell and Verant Interactive
// Licence: wxWindows licence
/////////////... | ric2b/Vivaldi-browser | update_notifier/thirdparty/wxWidgets/src/xrc/xh_gauge.cpp | C++ | bsd-3-clause | 1,572 |
using System.Net.Mail;
using System.Threading.Tasks;
using System.Web.Security;
using BuildFeed.Local;
namespace BuildFeed.Code
{
public static partial class EmailManager
{
public static async Task SendRegistrationEmail(MembershipUser mu, string validationLink)
{
using (var mm = ne... | hounsell/BuildFeed | BuildFeed/Code/EmailManager/RegistrationEmail.cs | C# | bsd-3-clause | 769 |
module Hippo::TransactionSets
module HIPAA_837
class L2000A < Hippo::TransactionSets::Base
include Hippo::Outputters::PaperClaim
loop_name 'L2000A' #Billing Provider Hierarchical Level
#Billing Provider Hierarchical Level
segment Hippo::Segments::HL,
:name =... | Aprexis/hippo | lib/hippo/transaction_sets/HIPAA_837/L2000A.rb | Ruby | bsd-3-clause | 3,002 |
/*
Copyright 2017 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | mattharden/vitess | go/cmd/vtcombo/main.go | GO | bsd-3-clause | 4,315 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | BuildmLearn/BuildmLearn-Store | Android/doc/Doxygen/de/da3/classorg_1_1buildmlearn_1_1appstore_1_1models_1_1_app_info.html | HTML | bsd-3-clause | 14,523 |
package KeYmaeraD
//package cohenhormander;
import java.io.BufferedWriter
import java.io.OutputStreamWriter
import java.io.BufferedReader
import java.io.InputStreamReader
import java.io.InputStream
import java.io.FileInputStream
import scala.util.parsing.combinator.lexical._
import scala.util.parsing.combinator.syn... | keymaerad/KeYmaeraD | keyparse.scala | Scala | bsd-3-clause | 26,223 |
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Tutorial TodoMVC Flux | React</title>
<meta name="viewport" content="width=device-width">
<meta property="og:title" content="Tutorial TodoMVC Flux | React">
<me... | TaaKey/react | docs-cn/_site/docs/flux-todo-list-it-IT.html | HTML | bsd-3-clause | 19,634 |
from flask.ext.sqlalchemy import SQLAlchemy
db = SQLAlchemy()
from saef_app.core import models
| echevemaster/saef | saef_app/core/database.py | Python | bsd-3-clause | 96 |
import _clone from 'lodash-es/clone';
import _keys from 'lodash-es/keys';
import _toPairs from 'lodash-es/toPairs';
import _union from 'lodash-es/union';
import _without from 'lodash-es/without';
import { debug } from '../index';
import { osmIsInterestingTag } from './tags';
import { dataDeprecated } from '../../data/... | bagage/iD | modules/osm/entity.js | JavaScript | isc | 4,410 |
import {expect, test} from '@oclif/test'
import * as PromoteCmd from '../../../src/commands/pipelines/promote'
describe('pipelines:promote', () => {
const apiUrl = 'https://api.heroku.com'
const pipeline = {
id: '123-pipeline-456',
name: 'example-pipeline',
}
const sourceApp = {
id: '123-source-a... | heroku/cli | packages/pipelines/test/commands/pipelines/promote.test.ts | TypeScript | isc | 7,310 |
//===-- ClangASTSource.h ----------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | TigerBSD/TigerBSD | FreeBSD/contrib/llvm/tools/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.h | C | isc | 21,873 |
/**
* str2wire.c - read txt presentation of RRs
*
* (c) NLnet Labs, 2005-2006
*
* See the file LICENSE for the license
*/
/**
* \file
*
* Parses text to wireformat.
*/
#include "config.h"
#include "sldns/str2wire.h"
#include "sldns/wire2str.h"
#include "sldns/sbuffer.h"
#include "sldns/parse.h"
#include "sld... | TigerBSD/TigerBSD | FreeBSD/contrib/unbound/sldns/str2wire.c | C | isc | 55,363 |
'use strict';
module.exports = function enableAuthentication(server) {
// enable authentication
server.enableAuth();
};
| jouke/loopback-auditz | test/fixtures/simple-app/boot/authentication.js | JavaScript | isc | 124 |
# $FreeBSD$
CONTRIB= ${.CURDIR}/../../../contrib/ngatm/sscop
.PATH: ${CONTRIB}
PROG= sscop
SRCS= common.c sscop_main.c
CFLAGS+= -I${CONTRIB} -DUSE_LIBBEGEMOT
LIBADD= begemot ngatm
.include <bsd.prog.mk>
| TigerBSD/TigerBSD | FreeBSD/usr.bin/atm/sscop/Makefile | Makefile | isc | 208 |
package com.j256.ormlite.field.types;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import com.j256.ormlite.dao.Dao;
import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
public class BooleanIntegerTypeTest extends Bas... | j256/ormlite-core | src/test/java/com/j256/ormlite/field/types/BooleanIntegerTypeTest.java | Java | isc | 1,192 |
'use strict';
var core = require('./src/core/bootstrap');
core.start()
.catch((err) => {
console.log(err);
});
| thebergamo/cart | index.js | JavaScript | isc | 116 |
export * from './item-repository';
export * from './user-repository';
| michaelbull/aurelia-hacker-news | src/repository/index.ts | TypeScript | isc | 70 |
'use strict';
var ndtutil = require('../ndtutil')
/**
* Alarm
* @param {object} env
* @return {P}
*/
module.exports = function(env){
return ndtutil.svc(env,'alarm')
}
| snailjs/ndt | lib/actions/alarm.js | JavaScript | mit | 175 |
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ PROJECT_NAME }}</title>
<meta name="description" content="{{ PROJECT_DESCRIPTION }}">
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
... | colingourlay/npr-app | templates/_base.html | HTML | mit | 9,291 |
version https://git-lfs.github.com/spec/v1
oid sha256:44f9d14a36ef7f6c42f2c7bbac59a92b1dac5e546fe6d9b9febc62e5474b1c95
size 22242
| yogeshsaroya/new-cdnjs | ajax/libs/ace/1.1.7/mode-vala.js | JavaScript | mit | 130 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S11.13.2_A4.6_T2.8;
* @section: 11.13.2, 11.7.1;
* @assertion: The production x <<= y is the same as x = x << y;
* @description: Type(x) is different from Type(y)... | Diullei/Storm | Storm.Test/SputnikV1/11_Expressions/11.13_Assignment_Operators/11.13.2_Compound_Assignment/S11.13.2_A4.6_T2.8.js | JavaScript | mit | 972 |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Bridge\PhpUnit;
/**
* Catch deprecation notices and print a su... | gharlan/symfony | src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php | PHP | mit | 5,623 |
<!--
pathfinding-visualiser <http://github.com/Tyriar/pathfinding-visualiser>
Copyright 2014 Daniel Imms <http://www.growingwiththeweb.com>
Released under the MIT license <http://github.com/Tyriar/pathfinding-visualiser/blob/master/LICENSE>
-->
<link rel="import" href="../layout/layout.html">
<link rel="import" href="... | Tyriar/pathfinding-visualiser | pathfinding-visualiser.html | HTML | mit | 1,210 |
/*---
title: Buttons
section: Components
---*/
:root {
--borderRadius-button: 2px;
--fontSize-button: var(--fontSize--small); /* 14px */
--fontSize-button--dense: calc(var(--fontSize-button) - 1px);
--marginY-button: 6px;
--marginX-button: var(--frame-quarter);
--opacity-button--disabled: .35;
--paddingY... | barisa/untangled-ui | src/css/components/button.css | CSS | mit | 8,835 |
/**
* @file nwk_config.h
*
* @brief These are all timer IDs which are used in NWK.
*
* $Id: nwk_config.h 25096 2011-01-24 09:26:10Z uwalter $
*
* @author Atmel Corporation: http://www.atmel.com
* @author Support: http://www.atmel.com/design-support/
*/
/*
* Copyright (c) 2009-2014, Atmel Corporation All... | femtoio/femto-usb-blink-example | blinky/blinky/asf-3.21.0/thirdparty/atmel_rf4ce/lib/inc/nwk_config.h | C | mit | 2,558 |
using System;
using System.Collections.Generic;
using UnityEngine;
namespace DarkMultiPlayer
{
public class DebugWindow
{
public bool display = false;
private bool safeDisplay = false;
private bool initialized = false;
private bool isWindowLocked = false;
private static ... | RockyTV/DarkMultiPlayer | Client/DebugWindow.cs | C# | mit | 13,458 |
from django.db import models
from .managers import CRUDManager, CRUDException
class CRUDFilterModel(models.Model):
class Meta:
abstract = True
@classmethod
def verify_user_has_role(cls, user, role, request):
"""
Call user-defined auth function to determine if this user can use th... | areedtomlinson/django-crud-filters | CRUDFilters/models.py | Python | mit | 5,473 |
<?php
//Pega o seguimento 4 da url
$idCor = $this->uri->segment(4);
if($idCor == null) redirect('admin/cor');
$cor = $this->corModel->getById($idCor)->row();
if($this->session->flashdata('edicaook')):
?>
<div style="position: absolute; top: 128px;">
<script>
setTimeout(function(){
$('#corSu... | rafaellimati/limajacket | application/views/Cor/editar.php | PHP | mit | 5,257 |
<?php
// autoload_classmap.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'Bolt\\Application' => $baseDir . '/src/Application.php',
'Bolt\\BaseExtension' => $baseDir . '/src/BaseExtension.php',
'Bolt\\Cache' => $baseDir . '/src/Cache.php'... | warcat/gustera | vendor/composer/autoload_classmap.php | PHP | mit | 574,030 |
var mongoose = require('mongoose'),
Schema = mongoose.Schema,
async = require('async'),
jf = require('jsonfile'),
executing = false;
var config = require('../config.json');
var configM = require('./config.json');
jf.spaces = 2;
mongoose.connect(config.db.url ||
('mongodb://' + config.db.host + '/'+ confi... | jkutianski/hackdash | metrics/load.js | JavaScript | mit | 3,326 |
describe('update element Function', function() {
var updateElement;
beforeEach(function() {
module('angular-stick-to');
inject(function(_updateElement_) {
updateElement = _updateElement_;
});
});
describe('when called with element in Case1', function() {
var element;
beforeEach(functi... | elkeis/angular-stick-to | test/tick/updateElementSpec.js | JavaScript | mit | 4,145 |
var System = require('../entities/systems/System');
/**
* Manages entities with a TimelineComponent
* @example-link http://code.gooengine.com/latest/visual-test/goo/timelinepack/TimelineComponent/TimelineComponent-vtest.html Working example
*/
function TimelineSystem() {
System.call(this, 'TimelineSystem', ['Timel... | GooTechnologies/goojs | src/goo/timelinepack/TimelineSystem.js | JavaScript | mit | 1,710 |
// Copyright (c) 2009-2016 Satoshi Nakamoto
// Copyright (c) 2009-2016 The Bitcoin Developers
// Copyright (c) 2015-2016 Silk Network
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef DARKSILK_WALLETDB_H
#define DARKSIL... | GregoryBetz/DarkSilk-Release-Candidate | src/wallet/walletdb.h | C | mit | 4,630 |
<?php
namespace BarnabyWalters\Mf2;
use PHPUnit_Framework_TestCase;
/**
* CleanerTest
*
* @author barnabywalters
*/
class CleanerTest extends PHPUnit_Framework_TestCase {
protected function mf($name, array $properties, $value='') {
if (is_array($name))
$type = $name;
else
$type = [$name];
foreach... | ShaneHudson/ShaneHudson.Net | craft-v2/plugins/webmentionreceiver/vendor/barnabywalters/mf-cleaner/test/CleanerTest.php | PHP | mit | 8,892 |
<!DOCTYPE html>
<html lang="en" ng-app="ion-autocomplete-sample">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ion-autocomplete end to end test page</title>
<link rel="stylesheet" hre... | guillaume317/elink-port | www/lib/ion-autocomplete/test/e2e/ion-autocomplete.single-select.e2e.html | HTML | mit | 3,834 |
"""frosted/checker.py.
The core functionality of frosted lives here. Implements the core checking capability models Bindings and Scopes
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 res... | timothycrosley/frosted | frosted/checker.py | Python | mit | 36,119 |
#!/usr/bin/env python
import os
import re
import sys
import glob
import argparse
from copy import copy
from decimal import Decimal,InvalidOperation
number_pattern = re.compile("(-?\d+\.?\d*(e[\+|\-]?\d+)?)", re.IGNORECASE)
# Search an input value for a number
def findNumber(value):
try:
return Decimal(va... | scoky/pytools | data_tools/files.py | Python | mit | 8,781 |
package cn.jzvd.demo.CustomView;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import cn.jzvd.JZDataSource;
import cn.jzvd.JzvdStd;
/**
* Created by Nathen
* On 2016/04/27 10:49
*/
public class JzvdStdShowTitleAfterFullscreen extends JzvdStd {
public JzvdStdShowTi... | EricHyh/FileDownloader | test/JiaoZiVideoPlayer-6.4.1/app/src/main/java/cn/jzvd/demo/CustomView/JzvdStdShowTitleAfterFullscreen.java | Java | mit | 833 |
ActiveRecord::Schema.define :version => 0 do
create_table :posts, :force => true do |t|
t.column :parent_id, :integer
t.column :root_id, :integer
t.column :name, :string
end
create_table :posts_tree, :force => true, :id => false do |t|
t.column :owner_id, :integer, :nu... | dmexe/has_tree | test/schema.rb | Ruby | mit | 535 |
--TEST--
Free statement twice
--FILE--
<?php
require_once('MsCommon.inc');
function ExecuteTwice()
{
set_time_limit(0);
sqlsrv_configure('WarningsReturnAsErrors', 1);
// Connect
$conn = connect();
if (!$conn) {
fatalError("Could not connect.\n");
}
$tableName = GetTempTableName()... | Azure/msphpsql | test/functional/sqlsrv/sqlsrv_execute_twice.phpt | PHP | mit | 1,444 |
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Maptable examples</title>
<style>
body {
font-family: sans-serif;
}
#panel {
position: fixed;
left: 0px;
width: 310px;
height: 100%;
overflow: auto;
background: #fafafa;
}
h1 {... | melalj/maptable | docs/index.html | HTML | mit | 4,047 |
//
// CategoryViewModel.h
// CodeMonkeyReader
//
// Created by kino on 15/6/29.
//
//
#import <Foundation/Foundation.h>
#import "ReaderCategory.h"
#import <RVMViewModel.h>
@class ArticleListViewModel;
@interface CategoryViewModel : RVMViewModel
@property (strong, nonatomic, readonly) NSArray *categories;
//- (... | iOS-Applications/CodeMonkeyReader | CodeMonkeyReader/Scene/CategoryViewModel.h | C | mit | 493 |
# Release History
## 1.1.0-beta.3 (Unreleased)
## 1.1.0-beta.2 (2021-02-09)
### Added
- The ability to use `ManagedIdentityCredential` from the configuration using the `"credential": "managedidentity"`
## 1.1.0-beta.1 (2020-11-10)
### Added
- The `AzureComponentFactory` class that allows creating `TokenCredenti... | ayeletshpigelman/azure-sdk-for-net | sdk/extensions/Microsoft.Extensions.Azure/CHANGELOG.md | Markdown | mit | 827 |
# encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative sou... | bdunham/draftsman | spec/dummy/db/schema.rb | Ruby | mit | 3,174 |
<?php
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Catalog\Model\ProductTypes\Config;
class Reader extends \Magento\Framework\Config\Reader\Filesystem
{
/**
* List of id attributes for merge
*
* @var array
*/
p... | j-froehlich/magento2_wk | vendor/magento/module-catalog/Model/ProductTypes/Config/Reader.php | PHP | mit | 1,732 |
<!-- BEGIN PAGE TITLE -->
<div class="page-title">
<h1>
<span data-ng-bind="$state.current.data.pageTitle"></span>
<small data-ng-bind="$state.current.data.pageSubTitle"></small>
</h1>
</div>
<!-- END PAGE TITLE -->
<!-- BEGIN PAGE TOOLBAR -->
<div class="page-toolbar" data-ng-include="'package... | FOUNDERCOM/APMS | src/apms-ui/src/main/webapp/packages/index/tpl/page-head.html | HTML | mit | 378 |
<?xml version="1.0" encoding="UTF-8"?>
<!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=ISO-8859-1">
<title>Fa... | hglty07/fancytree | test/doctypes/doctype-xml-transitional.html | HTML | mit | 3,238 |
# Tiger/Line country shapefiles' "statefp" field is the FIPS code.
# The following is http://www.epa.gov/enviro/html/codes/state.html
data = """
State Abbreviation FIPS Code State Name
AK 02 ALASKA
AL 01 ALABAMA
AR 05 ARKANSAS
AS 60 AMERICAN SAMOA
AZ 04 ARIZONA
CA 06 CALIFORNIA
CO 08 COLORADO
CT 09 CONNECTICUT
DC 11 ... | brendano/twitter_geo_preproc | geo2_pipeline/geocode/state_codes.py | Python | mit | 1,252 |
//
// VerifyUtils.h
// PAAccountFramework
//
// Created by shen peng on 14-5-9.
// Copyright (c) 2014年 Ping An Health Insurance Company of China, Ltd. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface VerifyUtil : NSObject
/**
* 校验手机号是否有效
*
* @param mobile 手机号
*
* @return 是否有效
*/
+ (B... | erdengbing/PAUserCenterModule | PAUserCenterModule/Classes/Utilities/VerifyUtil.h | C | mit | 396 |
<?php
namespace Api\Model\Shared;
use Api\Model\Shared\Mapper\MongoMapper;
class UserRelationModelMongoMapper extends MongoMapper
{
public $INDEXES_REQUIRED = [
['key' => ['type' => 1]],
['key' => ['userRef' => 1]],
['key' => ['projectRef' => 1]],
];
public static function instan... | ermshiperete/web-languageforge | src/Api/Model/Shared/UserRelationModelMongoMapper.php | PHP | mit | 530 |
* {
margin: 0;
padding: 0;
list-style: none;
}
html, body {
height: 100%;
overflow: hidden;
}
/*reset panel posotion*/
.panel {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
z-index: 1;
}
.top {
height: 88px;
background-color: #ccc;
}
.left {
top: 88px;
bottom: 50px;
width: 187px;... | aaronluo/cuoxiazi | 03_release/build_v2.0_20150412/code/eorder-member/src/main/webapp/resources/css/eorder-style.css | CSS | mit | 2,051 |
//>>excludeStart("exclude", pragmas.exclude);
define([ "shoestring" ], function(){
//>>excludeEnd("exclude");
/**
* Returns a `shoestring` object with the set of siblings of each element in the original set.
*
* @return shoestring
* @this shoestring
*/
shoestring.fn.next = function(){
//>>includeStart("d... | filamentgroup/shoestring | src/dom/next.js | JavaScript | mit | 1,255 |
/*
=========================================================
Name : InsertArg (ia)
GitHub : https://github.com/TimRohr22/Cauldron/tree/master/InsertArg
Roll20 Contact : timmaugh
---------------------------------------------------------
COMPONENTS
-------------------------------------------------... | shdwjk/roll20-api-scripts | InsertArg/1.5.1/InsertArg.js | JavaScript | mit | 186,629 |
#### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Intangible()
result.template = "object/draft_schematic/space/armor/shared_mass_reduction_kit_mk4.iff"
result.attr... | obi-two/Rebelion | data/scripts/templates/object/draft_schematic/space/armor/shared_mass_reduction_kit_mk4.py | Python | mit | 463 |
// Copyright 2006-2015 Tobias Sargeant (tobias.sargeant@gmail.com).
//
// This file is part of the Carve CSG Library (http://carve-csg.com/)
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Softw... | ifcquery/ifcplusplus | external/Carve/src/include/carve/interpolator.hpp | C++ | mit | 13,652 |
/* isupper( int )
This file is part of the Public Domain C Library (PDCLib).
Permission is granted to use, modify, and / or redistribute at will.
*/
#include <ctype.h>
#ifndef REGTEST
#include "_PDCLIB_locale.h"
int isupper( int c )
{
return ( _PDCLIB_threadlocale()->_CType[c].flags & _PDCLIB_CTYPE_UPPER ... | superusercode/RTC3 | Real-Time Corruptor/BizHawk_RTC/waterbox/libc/functions/ctype/isupper.c | C | mit | 627 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... | ApolloCrawler/microcrawler-worker | lib/Channel/Message/Ping.js | JavaScript | mit | 1,530 |
# plugmodules
Modular circuits library for kicad
| parumtronics/arf154 | hw/plugmodules/README.md | Markdown | mit | 49 |
/**************************************************************************//**
* @file efr32bg14p_fpueh.h
* @brief EFR32BG14P_FPUEH register and bit field definitions
* @version 5.4.0
******************************************************************************
* # License
* <b>Copyright 2017 Silicon Laboratori... | basilfx/EFM2Riot | dist/cpu/efm32/families/efr32bg14p/include/vendor/efr32bg14p_fpueh.h | C | mit | 16,460 |
<!DOCTYPE html>
<html lang="es-ES">
<head>
<link rel="stylesheet" type="text/css" media="all" href="css/main.css">
</head>
<body ontouchstart="">
<div class="container">
<section>
<article>
<input type="radio" name="switch-color" id="red" checked>
<input typ... | rggGit/css-works | works/pure-progress/index.html | HTML | mit | 6,348 |
'use strict';
(function() {
var env = '';
if (typeof module !== 'undefined' && module.exports) env = 'node';
var exports = {};
if (env === 'node') {
var layer = require('layer');
} else {
exports = this;
var layer = layer || this.layer;
}
exports.intercept = function (ctx, fn, interceptFn) {
var result = fals... | lovebear/intercept.js | index.js | JavaScript | mit | 922 |
# -*- coding: utf-8 -*-
from unittest import TestCase
# from nose.tools import eq_
import numpy as np
from pysas import waveread, World
from pysas.mcep import estimate_alpha, spec2mcep_from_matrix, mcep2coef
from pysas.synthesis.mlsa import MLSAFilter
from pysas.synthesis import Synthesis
from pysas.excite import Exci... | shunsukeaihara/pyworld | test/test_filter.py | Python | mit | 1,201 |
//
// SCAPIClient+SCFile.h
// Pods
//
// Created by Jan Lipmann on 30/06/15.
//
//
#import "SCAPIClient.h"
#import <AFNetworking/AFNetworking.h>
@interface SCAPIClient (SCFile)
+ (AFHTTPRequestOperation *)downloadFileFromURL:(NSURL *)fileURL withCompletion:(SCAPIFileDownloadCompletionBlock)completion;
@end
| lifcio/youtube-app-syncano | Pods/syncano-ios/syncano-ios/SCAPIClient+SCFile.h | C | mit | 313 |
<link rel="stylesheet" href="/assets/core/css/basic.min.css"/>
<link rel="stylesheet" href="/assets/core/css/core.min.css"/>
<link rel="stylesheet" href="/assets/core/fonts/iconfont/iconfont.css"/>
<script src="/assets/libs/modernizr/modernizr.min.js"></script>
| Serif-x/easy-boilerplate | src/components/styles/style-common.html | HTML | mit | 262 |
#region Copyright
//
// DotNetNuke® - http://www.dotnetnuke.com
// Copyright (c) 2002-2017
// by DotNetNuke Corporation
//
// 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 restricti... | SCullman/Dnn.Platform | DNN Platform/Library/Services/Tokens/BaseTokenReplace.cs | C# | mit | 5,988 |
#region Copyright
//
// DotNetNuke® - http://www.dnnsoftware.com
// Copyright (c) 2002-2017
// by DotNetNuke Corporation
//
// 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 restrictio... | SCullman/Dnn.Platform | DNN Platform/Modules/DnnExportImportLibrary/Dto/Roles/ExportRole.cs | C# | mit | 2,477 |
using System;
using SimpleInjector;
using SoupToNuts.Final.Client.Common.Services;
using SoupToNuts.Final.Client.Common.ViewModels;
using SoupToNuts.Final.WpfClient.Services;
namespace SoupToNuts.Final.WpfClient.Locators
{
public class ViewModelLocator
{
private readonly Container _container;
... | tonysneed/Soup2Nuts.Demos | src/06 Clients/Starter/SoupToNuts.Final/SoupToNuts.Final.WpfClient/Locators/ViewModelLocator.cs | C# | mit | 1,561 |
/**********************************************************************
* $Id$ lpc17xx_wdt.c 2010-05-21
*//**
* @file lpc17xx_wdt.c
* @brief Contains all functions support for WDT firmware library
* on LPC17xx
* @version 2.0
* @date 21. May. 2010
* @author NXP MCU SW Application Team
*
* Copyright(C) ... | lcvisser/mbed-lib | src/drivers/lpc17xx_wdt.c | C | mit | 8,258 |
---
layout: post
title: SSCTF - Exploitation 600
category: [Exploitation]
tags: [Exploitation, SSCTF]
comments: true
---
**Points:** 600
**Solves:**
**Category:** Exploitation
**Description:**
> [pwn2-58461176.zip]({{site.url}}/assets/pwn2-58461176.zip)
If you haven't read the [first part, pwn400]({{site.url}}/expl... | uafio/uafio.github.io | _posts/2016-02-28-SSCTF-PWN-600.md | Markdown | mit | 3,295 |
package com.github.st1hy.countthemcalories.core.permissions;
import android.support.annotation.CheckResult;
import android.support.annotation.NonNull;
import rx.Observable;
public interface RequestRationale {
/**
* Show rationale why app needs a permission. It may be a question to user.
*
* @retur... | st1hy/Count-Them-Calories | app/src/main/java/com/github/st1hy/countthemcalories/core/permissions/RequestRationale.java | Java | mit | 534 |
'use strict';
var mean = require('meanio');
var request = require('request');
var unescape = require('unescape');
exports.render = function(req, res) {
var modules = [];
// Preparing angular modules list with dependencies
for (var name in mean.modules) {
modules.push({
name: name,
module: 'me... | hayatnoor/haramain | packages/system/server/controllers/index.js | JavaScript | mit | 3,191 |
/**
* Class abstracting an economy account.
*/
public class AccountEconomy extends AccountIF {
/**
* Construct an economy account.
* @param loginId The login id of this account.
* The login Id is used to retrieve from a database
* persistent data, such as the number of connection hour... | craynafinal/cs553_design_pattern_assignments | prototype/AccountEconomy.java | Java | mit | 669 |
package eu.chargetime.ocpp.model.core;
/*
* ChargeTime.eu - Java-OCA-OCPP
*
* MIT License
*
* Copyright (C) 2016-2018 Thomas Volden <tv@chargetime.eu>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal... | ChangeTimeEU/Java-OCA-OCPP | ocpp-v1_6/src/main/java/eu/chargetime/ocpp/model/core/ChargingRateUnitType.java | Java | mit | 1,341 |
package org.diorite.impl.world.io.anvil.parallel;
public class IOGroup
{
}
| marszczybrew/Diorite | DioriteCore/src/main/java/org/diorite/impl/world/io/anvil/parallel/IOGroup.java | Java | mit | 77 |
require 'spec_helper'
shared_examples 'reportable note' do |type|
include MobileHelpers
include NotesHelper
let(:comment) { find("##{ActionView::RecordIdentifier.dom_id(note)}") }
let(:more_actions_selector) { '.more-actions.dropdown' }
let(:abuse_report_path) { new_abuse_report_path(user_id: note.author.id... | axilleas/gitlabhq | spec/support/features/reportable_note_shared_examples.rb | Ruby | mit | 1,577 |
<?xml version="1.0" encoding="iso-8859-1"?>
<!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>
<title>File: doc_manager.rb</title>
<meta http-equiv="C... | michaelsync/Giles | tools/Rake/lib/ruby/gems/1.8/doc/rubygems-1.5.2/rdoc/files/lib/rubygems/doc_manager_rb.html | HTML | mit | 2,285 |
#include "Transformation.hpp"
namespace hum
{
Transformation::Transformation():
position(0.f),
rotation(0.f),
scale(1.f)
{}
Transformation Transformation::transform(const Transformation& t) const
{
Transformation new_t = t;
new_t.position += position;
new_t.rotation += rotation;
new_t.scale.x *= scale... | Galbar/hummingbird | src/hummingbird/Transformation.cpp | C++ | mit | 406 |
<!DOCTYPE html>
<html lang="en">
<head>
<title>Test::frames</title>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<frameset rows="80,*" cols="*">
<frame src="hello_world.txt" name="topFrame" id="top-frame" scrolling="no" noresize>
<frameset cols="300,*">
... | codeborne/selenide | src/test/resources/page_with_frames.html | HTML | mit | 564 |
import createMarkup from "../react.markup";
it("should return blank if no content", () => {
const result = createMarkup({
content: {
body: "false",
},
});
expect(result).toEqual({
__html: "",
});
});
it("should return from body prop by default", () => {
const result = createMarkup({
co... | NewSpring/apollos-core | imports/util/react/__tests__/react.markup.js | JavaScript | mit | 671 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.