code
stringlengths
4
1.01M
language
stringclasses
2 values
package main import ( "bytes" "os" "os/exec" ) func panicOn(err error) { if err != nil { panic(err) } } func FileExists(name string) bool { fi, err := os.Stat(name) if err != nil { return false } if fi.IsDir() { return false } return true } func DirExists(name string) bool { fi, err := os.Stat(nam...
Java
import { expect } from 'chai' import {List, Map} from 'immutable' import categories from '../src/reducer.js' describe("Category Test", () => { it("should add a category", () => { let initialState = Map({ user: 'Skye' }) let expectedState = Map({ user: 'Skye', categories: Map({ 'Love': 0 }) })...
Java
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ky" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About SweetStake</source> <translation type="unfinished"/> </message> <message> <location lin...
Java
// Copyright (c) 2016 Irfan Adilovic // This software is licensed under the terms of the MIT license. // See LICENSE for the text of the license. #include <iostream> #include <iomanip> #include <limits> #include <stdint.h> #include <cstdio> #include <typeinfo> #include <inttypes.h> using std::cout; using std::cerr; u...
Java
/* * Copyright (c) 2016 Oiri Project * * This software is distributed under an MIT-style license. * See LICENSE file for more information. */ package com.github.kimikage.oiri.svg; import org.w3c.dom.svg.SVGMatrix; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Tran...
Java
using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using PholioVisualisation.DataAccess; using PholioVisualisation.DataConstruction; using PholioVisualisation.Export; using PholioVisualisation.Export.FileBuilder.Containers; using PholioVisualisation.Export.FileBuilder.SupportModels; using PholioVisualisati...
Java
# aaronwest.github.io A simple website using [Jekyll](http://jekyllrb.com) + [GitHub Pages](https://pages.github.com). Designed to function as a basic engineering notebook to jot down thoughts and ideas. To view the website visit [notebook.aaronwest.net](http://notebook.aaronwest.net).
Java
/** * DevExtreme (core/component_registrator.js) * Version: 16.2.5 * Build date: Mon Feb 27 2017 * * Copyright (c) 2012 - 2017 Developer Express Inc. ALL RIGHTS RESERVED * EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml */ "use strict"; var $ = require("jquery"), errors = require("./errors"), ...
Java
class MemeSlug < ActiveRecord::Base belongs_to :meme end
Java
/* * PanoramaGL library * Version 0.1 * Copyright (c) 2010 Javier Baez <javbaezga@gmail.com> * * 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/LIC...
Java
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>W29820_text</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div style="margin-left: auto; margin-right: auto; width: 800px; overflow: hidden;"> ...
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <HTML> <HEAD> <TITLE>Form1H.xls</TITLE> <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <META name="generator" content="pdftohtml 0.40"> <META name="author" content="theilman"> <META name="date...
Java
#!/bin/bash ## This script installs the irace package, sets up the environment and launches ## irace. Then compresses its output as a tar.gz. #SCENARIO is a irace's scenario file SCENARIO=$1 # RUN is the run number to distinguish replications of irace RUN=$2 shift 2 # RUN in condor starts at 0 let SEED=1234567+RUN IR...
Java
/*! * Bootstrap v4.0.0-alpha.6 (https://getbootstrap.com) * Copyright 2011-2017 The Bootstrap Authors * Copyright 2011-2017 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ /*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */ html { font-family...
Java
# [Closet Cleanup](http://alexa.amazon.com/#skills/amzn1.ask.skill.8f149fb7-2f2a-493e-b28a-0ef15e91f0ae) ![0 stars](../../images/ic_star_border_black_18dp_1x.png)![0 stars](../../images/ic_star_border_black_18dp_1x.png)![0 stars](../../images/ic_star_border_black_18dp_1x.png)![0 stars](../../images/ic_star_border_black...
Java
using System; using System.Text; using System.Web; using System.Web.Http.Description; namespace WebApiAuthSample.Areas.HelpPage { public static class ApiDescriptionExtensions { /// <summary> /// Generates an URI-friendly ID for the <see cref="ApiDescription"/>. E.g. "Get-Values-id_name" instead...
Java
.error { margin: 10px 0px; padding:12px; color: #D8000C; background-color: #FFBABA; }
Java
source ~/.functions_colors_shell.zsh # functions and load-onces stuff for the environment echo "function config" source ~/.functions_shell.sh source ~/.functions_colors.sh source ~/.functions_dev.sh source ~/.functions_osx.sh source ~/.functions_graphics.sh # Vim IDE settings source ~/.bash_vim_append test -e "${HO...
Java
/* * Copyright (c) Tomohiro Iizuka. All rights reserved. * Licensed under the MIT license. */ #ifndef SYSTEM_HASHEDRAWARRAY_H_ #define SYSTEM_HASHEDRAWARRAY_H_ namespace alinous { template <typename T, typename H, typename C> class HashedRawArray { public: void* operator new(size_t size) throw() { ret...
Java
<!DOCTYPE html> <html lang="ko-kr"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="generator" content="Hugo 0.15" /> <title>#Ludens</title> <meta property=...
Java
$(document).ready(function(){hopscotch.startTour({id:"my-intro",steps:[{target:"logo-tour",title:"Logo Here",content:"You can find here status of user who's currently online.",placement:"bottom",yOffset:10},{target:"display-title-tour",title:"Display Text",content:"Click on the button and make sidebar navigation small....
Java
package main import ( "context" "fmt" "log" "net/http" "strconv" "strings" "time" "github.com/PuerkitoBio/goquery" ) const ( userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36" timeLayout = "02/01/2006" storagePath = ".local/...
Java
<?xml version="1.0" ?><!DOCTYPE TS><TS language="eo" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About BitSeeds</source> <translation type="unfinished"/> </message> <message> <location line=...
Java
<?php namespace Rudolf\Modules\Modules\One\Admin; use Rudolf\Component\Alerts\Alert; use Rudolf\Component\Alerts\AlertsCollection; use Rudolf\Component\Modules\ConfigEditor; use Rudolf\Framework\Controller\AdminController; class SwitchController extends AdminController { private $blacklist = [ 'Dashboard...
Java
<? // DATABASE define("DB_SERVER", "localhost"); //the mysql server address - often, localhost define("DB_USERNAME", "root"); //the mysql username define("DB_PASSWORD", "11913431"); //the mysql password define("DB_NAME", "draygon"); //the name of the mysql database // CLIENT define...
Java
#!/usr/bin/env python3 # Copyright (c) 2015-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test block processing.""" import copy import struct import time from test_framework.blocktools import ...
Java
@extends("layout") @section("content") <script type="text/javascript" src="{{ URL("js/interactive.js") }}"> </script> <section id="wrapper"> @if ($imagenes->isEmpty()) <section id="photos-empty"> <p class="center"> Todavía no hay imágenes </p> </section> @else <section id...
Java
<?php namespace Zakharovvi\HumansTxtBundle\Tests\Renderer; use Zakharovvi\HumansTxtBundle\Tests\Filesystem; use Zakharovvi\HumansTxtBundle\Renderer\TwigRenderer; use Zakharovvi\HumansTxtBundle\Authors\Author; /** * @author Vitaliy Zakharov <zakharovvi@gmail.com> */ class TwigRendererTest extends \PHPUnit_Framework_...
Java
package pl.edu.wat.tim.webstore.service; import pl.edu.wat.tim.webstore.model.UploadFile; /** * Created by Piotr on 15.06.2017. */ public interface UploadFileService { void save(UploadFile uploadFile); UploadFile getUploadFile(String name); }
Java
'use strict'; angular.module('mgcrea.ngStrap.dropdown', ['mgcrea.ngStrap.tooltip']) .provider('$dropdown', function() { var defaults = this.defaults = { animation: 'am-fade', prefixClass: 'dropdown', prefixEvent: 'dropdown', placement: 'bottom-left', template: 'dropdown/dropdown.t...
Java
// Copyright 2015 XLGAMES Inc. // // Distributed under the MIT License (See // accompanying file "LICENSE" or the website // http://www.opensource.org/licenses/mit-license.php) #pragma once #include "ConversionCore.h" // for ObjectGuid #include "../RenderCore/Assets/TransformationCommands.h" #include "../RenderCore/...
Java
/* * * hocNotification * */ import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { compose, setPropTypes } from 'recompose'; import { createStructuredSelector } from 'reselect'; import { selectNotifications } from 'features/common_ui/selectors'; const mapStateToProps = createStructure...
Java
<?php return unserialize('a:1:{i:0;O:27:"Doctrine\\ORM\\Mapping\\Column":10:{s:4:"type";s:6:"string";s:6:"length";i:255;s:9:"precision";i:0;s:5:"scale";i:0;s:6:"unique";b:0;s:8:"nullable";b:0;s:4:"name";s:15:"nom_responsable";s:7:"options";a:0:{}s:16:"columnDefinition";N;s:5:"value";N;}}');
Java
#ifndef MYY_DATA_SECTION_H #define MYY_DATA_SECTION_H 1 #include <stdint.h> struct data_section_status { unsigned int allocated; void * address; }; struct data_symbol { uint32_t id; uint32_t align; uint32_t size; uint8_t * name; uint8_t * data; }; struct data_section { struct data_symbol * symbols; uint32_t...
Java
<?php declare(strict_types=1); /* * This file is part of the G.L.S.R. Apps package. * * (c) Dev-Int Création <info@developpement-interessant.com>. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Core\Infrastructure\Doc...
Java
package com.mybatistemplate.adapter; import com.mybatistemplate.core.GeneratorIdSqlCallback; import com.mybatistemplate.core.IdGeneratorType; import org.apache.ibatis.mapping.MappedStatement; import org.apache.ibatis.mapping.ResultMap; /** * Created by leicheng on 2016/7/12. */ public abstract class Templ...
Java
<?php namespace Proxies\__CG__\Mistra\TutoBundle\Entity; /** * THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE. */ class User extends \Mistra\TutoBundle\Entity\User implements \Doctrine\ORM\Proxy\Proxy { private $_entityPersister; private $_identifier; public $__isInitialized__ = fal...
Java
// This contains the module definition factory function, application state, // events, and the router. this.jda = { // break up logical components of code into modules. module: function() { // Internal module cache. var modules = {}; // Create a new module reference scaffold or loa...
Java
#!/bin/sh set -e echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" install_framework() { if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then local source="${BUILT_PRO...
Java
require 'spec_helper' module Sendgrid module API module Entities describe Stats do subject { described_class.new } it { should respond_to(:delivered) } it { should respond_to(:request) } it { should respond_to(:unique_open) } it { should respond_to(:unique_click) } ...
Java
//! @file //! @copyright See <a href="LICENSE.txt">LICENSE.txt</a>. #pragma once #include "entity.hpp" namespace ql { //! Makes @p entity_id an entity: a being or object that can exist in the world. auto make_entity(reg& reg, id entity_id, location location) -> id { reg.assign<ql::location>(entity_id, location);...
Java
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; using System.Threading; using System.Runtime.Remoting.Lifetime; using System.Windows.Forms; using System.Drawing; using System.Linq; using...
Java
//********************************************** //Singleton Texture Manager class //Written by Ben English //benjamin.english@oit.edu // //For use with OpenGL and the FreeImage library //********************************************** #ifndef TextureManager_H #define TextureManager_H #include <windows.h> ...
Java
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("Kh...
Java
/** * This code was auto-generated by a Codezu. * * Changes to this file may cause incorrect behavior and will be lost if * the code is regenerated. */ package com.mozu.api.resources.commerce.orders; import com.mozu.api.ApiContext; import java.util.List; import java.util.ArrayList; import com.moz...
Java
package at.ac.tuwien.big.xmlintelledit.xmltext.ecoretransform.impl; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; ...
Java
#import "MOBProjection.h" @interface MOBProjectionEPSG102713 : MOBProjection @end
Java
require 'rails_helper' RSpec.describe Scrap, :type => :model do context 'factories' do it 'valid' do expect(build(:scrap)).to be_valid end end context 'validation' do it { is_expected.to validate_presence_of(:message) } end end
Java
#ifndef __UIDICTIONARY_H #define __UIDICTIONARY_H #include <System/Tools/Array.h> #include <System/Tools/HashHelper.h> namespace suic { template<typename TKey, typename TValue, typename Comparer> class Dictionary1 { public: Dictionary1() { Initialize(0); } Dictionary1(int capacity) ...
Java
// Copyright (c) 2011-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <qt/trafficgraphwidget.h> #include <interfaces/node.h> #include <qt/clientmodel.h> #include <QColor> #include <QPa...
Java
package de.felixroske.jfxsupport.util; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.core.type.classreading.MetadataReader; import org.springframework.core.type.classreading.MetadataReaderFactory; import java.io.IOException; /** * Created by Krystian Kałużny on 03.0...
Java
<!DOCTYPE html> <html xmlns:msxsl="urn:schemas-microsoft-com:xslt"> <head> <meta content="en-us" http-equiv="Content-Language" /> <meta content="text/html; charset=utf-16" http-equiv="Content-Type" /> <title _locid="PortabilityAnalysis0">.NET Portability Report</title> <style> ...
Java
/******************************************************************************* @file startup.h @author Rajmund Szymanski @date 11.12.2019 @brief Startup file header for iar c compiler. *******************************************************************************/ #pragma once /***********************...
Java
''' Created by auto_sdk on 2015.06.23 ''' from aliyun.api.base import RestApi class Rds20140815CheckAccountNameAvailableRequest(RestApi): def __init__(self,domain='rds.aliyuncs.com',port=80): RestApi.__init__(self,domain, port) self.AccountName = None self.DBInstanceId = None self.resourceOwnerAccount = None ...
Java
using System; using NUnit.Framework; namespace MyApp.Repository.Testing { internal class InMemoryRepositoryTests { //================================================================================ [Test] public void Standard() { var repo...
Java
import {dispatchFakeEvent} from '../../cdk/testing/private'; import {ChangeDetectionStrategy, Component, DebugElement, Type} from '@angular/core'; import { ComponentFixture, fakeAsync, flush, flushMicrotasks, TestBed, } from '@angular/core/testing'; import {ThemePalette} from '@angular/material-experimental/m...
Java
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>AngularWithDotnetCore</title> <base href="/"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/x-icon" href="favicon.ico"> </head> <body> <app-root>Loading...</app-root> </body> </html>
Java
# frozen_string_literal: true module Eve class AllRegionsContractsImporter def import region_ids.each do |region_id| Eve::RegionContractsJob.perform_later(region_id) end end private def region_ids @region_ids ||= Eve::Region.pluck(:region_id).sort.uniq end end end
Java
#!/usr/bin/env node let layouts = [ `# French &é"'(-è_çà)= azertyuiop^$* qsdfghjklmù wxcvbn,;:! `, `# German (German (IBM) is the same) 1234567890ß qwertzuiopü+# asdfghjklöä yxcvbnm,.- `, `# Spanish 1234567890'¡ qwertyuiop+ç asdfghjklñ zxcvbnm,.- ## ESV 1234567890- qwertyuiop÷ asdfghjklñç zxcvbnm,.= `, `# Port...
Java
--- layout: page title: Archive --- ### Blog Posts {% for post in site.posts %} * {{ post.date | date_to_string }} &raquo; [ {{ post.title }} ]({{ post.url }}) {% endfor %}
Java
import Ember from 'ember'; export default Ember.Component.extend({ tagName : '', item : null, isFollowing : false, isLoggedIn : false, init() { this.set('isLoggedIn', !!this.get('application.user.login')); if (this.get('application.places.length') > 0) { this.set('isFollowing', !!this.get('app...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>io: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="s...
Java
class CB::Util::ServiceRescuer def initialize instance @instance = instance end def method_missing method, *args, &block if @instance.respond_to? method begin @instance.public_send method, *args, &block rescue => e error_type = e.is_a?(ActiveRecord::RecordNotFound) ? :not_found...
Java
#ifndef TELEMETRY_H #define TELEMETRY_H #include <Arduino.h> #include <HardwareSerial.h> #include "common.h" #include "queuelist.h" static const unsigned WHEEL_EVENT_MIN_INTERVAL = 5; class Telemetry { public: Telemetry(HardwareSerial port, unsigned speed); void serialPolling(); void wheelEvent(rot_one l...
Java
package com.nicolas.coding.common.photopick; import android.content.Context; import android.database.Cursor; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.CheckBox; import android.widget.CursorAdapter; import android.widget.ImageView; import com.nos...
Java
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Idea.color' db.add_column(u'brainstorming_idea', 'color',...
Java
package com.sien.aimanager; import android.content.Intent; import android.os.Handler; import com.sien.aimanager.services.MonitorServices; import com.sien.lib.baseapp.BaseApplication; import com.sien.lib.databmob.config.DatappConfig; import cn.bmob.v3.Bmob; import cn.bmob.v3.BmobConfig; /** * @author sien * @date ...
Java
#include <opencv2/opencv.hpp> #include <iostream> using namespace cv; using namespace std; int ratio = 3; //per canny's suggestion int canny_thresh = 12; //starts at 12, this is what we will be changing though int hough_thresh = 27; int angle_tracker = 20; int max_thresh = 255;//max for both thresh variable doub...
Java
CSS.NLogExtensions ================== NLog extension ImageTarget, useful for saving screenshots. Download the latest release or from the NuGet "Package Manager Console", run ```Install-Package CSS.NLogExtensions```
Java
const ircFramework = require('irc-framework') const store = require('../store') const attachEvents = require('./attachEvents') const connect = connection => { const state = store.getState() let ircClient = state.ircClients[connection.id] if (!ircClient) { ircClient = new ircFramework.Client({ nick: ...
Java
const assert = require('assert') const { unparse } = require('uuid-parse') const supertest = require('supertest') const createApp = require('../app') const { createSetup, getAuthPassword } = require('./lib') const { createPlayer, createKick } = require('./fixtures') describe('Query player kick', () => { let setup ...
Java
<?php namespace Application\Success\CoreBundle\Twig; //use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface; class EventoExtension extends \Twig_Extension { //private $container; private $repository_evento; private $templating; public function __construct($repository_evento, $templating) { //$...
Java
var assert = require('chai').assert var sendgrid = require('../lib/sendgrid'); describe('test_access_settings_activity_get', function () { this.timeout(30000); var API_KEY = 'SendGrid API Key' if(process.env.TRAVIS) { var TEST_HOST = process.env.MOCK_HOST } else { var TEST_HOST = 'localhost' } var...
Java
#!/bin/bash mkdir $PREFIX/share mkdir $PREFIX/share/gdal cp data/* $PREFIX/share/gdal cp LICENSE.TXT $PREFIX/share/gdal mkdir $PREFIX/bin # HACK to get post-link script to copy.
Java
<?php namespace EntityManager5230d19111d8e_546a8d27f194334ee012bfe64f629947b07e4919\__CG__\Doctrine\ORM; /** * CG library enhanced proxy class. * * This code was generated automatically by the CG library, manual changes to it * will be lost upon next generation. */ class EntityManager extends \Doctrine\ORM\Entit...
Java
/*-----------*\ /* RESET \___________________________________________________ */ html, body, div, span, applet, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquote, pre,a, abbr, acronym, address, big, cite, code,del, dfn, em, img, ins, kbd, q, s, samp,small, strike, strong, sub, sup, tt, var,b, u, i, center,dl...
Java
import os import webapp2 from actions import cronActions from views import views import secrets SECS_PER_WEEK = 60 * 60 * 24 * 7 # Enable ctypes -> Jinja2 tracebacks PRODUCTION_MODE = not os.environ.get( 'SERVER_SOFTWARE', 'Development').startswith('Development') ROOT_DIRECTORY = os.path.dirname(__file__) if no...
Java
module Test PI = 3.14 class Test2 def what_is_pi puts PI end end end Test::Test2.new.what_is_pi # => 3.14 module MyModule MyConstant = 'Outer Constant' class MyClass puts MyConstant # => Outer Constant MyConstant = 'Inner Constant' puts MyConstant # => Inner Constant ...
Java
// // parser.h // homework_4 // // Created by Asen Lekov on 12/29/14. // Copyright (c) 2014 fmi. All rights reserved. // #ifndef __homework_4__parser__ #define __homework_4__parser__ #include <string> class XMLParser { public: //private: bool is_open_tag(const std::string& tag) const; bool is_close_tag(c...
Java
<?php class SV_WarningImprovements_XenForo_ControllerPublic_Member extends XFCP_SV_WarningImprovements_XenForo_ControllerPublic_Member { public function actionMember() { SV_WarningImprovements_Globals::$warning_user_id = $this->_input->filterSingle('user_id', XenForo_Input::UINT); $response = ...
Java
#include <stdint.h> const uint8_t #if defined __GNUC__ __attribute__((aligned(4))) #elif defined _MSC_VER __declspec(align(4)) #endif mrblib_extman_irep[] = { 0x45,0x54,0x49,0x52,0x30,0x30,0x30,0x33,0x5a,0x89,0x00,0x00,0x44,0xcb,0x4d,0x41, 0x54,0x5a,0x30,0x30,0x30,0x30,0x49,0x52,0x45,0x50,0x00,0x00,0x32,0x2d,0x30,0x30,...
Java
# this is the interface for `python archiver` import archiver import appdirs import os import sys import pickle import json from archiver.archiver import Archiver from archiver.parser import parseArgs args = parseArgs() from edit import edit # ============================================== print args # TODO: s...
Java
/* * The MIT License * * Copyright (c) 2016 Marcelo "Ataxexe" Guimarães <ataxexe@devnull.tools> * * 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, includ...
Java
using System; using System.Collections.Generic; using System.Text; using Icy.Util; namespace Icy.Database.Query { public class JoinClauseOptions{ public object first; public string operator1; public object second; public string boolean; public bool where; public bo...
Java
<?php namespace YaoiTests\PHPUnit\Storage; use Yaoi\Storage; use Yaoi\Storage\Contract\Expire; use Yaoi\Storage\Contract\ExportImportArray; use Yaoi\Test\PHPUnit\TestCase; abstract class TestStorageBasic extends TestCase { /** * @var Storage */ protected $storage; public function testTtl() ...
Java
/******************************************************************** Software License Agreement: The software supplied herewith by Microchip Technology Incorporated (the "Company") for its PIC(R) Microcontroller is intended and supplied to you, the Company's customer, for use solely and exclusively on Microchip ...
Java
// All code points in the Khmer Symbols block as per Unicode v5.0.0: [ 0x19E0, 0x19E1, 0x19E2, 0x19E3, 0x19E4, 0x19E5, 0x19E6, 0x19E7, 0x19E8, 0x19E9, 0x19EA, 0x19EB, 0x19EC, 0x19ED, 0x19EE, 0x19EF, 0x19F0, 0x19F1, 0x19F2, 0x19F3, 0x19F4, 0x19F5, 0x19F6, 0x19F7, 0x19F8, 0x19F9, 0x19FA, 0x19F...
Java
jQuery(document).ready(function() { $('.alert-close').bind('click', function() { $(this).parent().fadeOut(100); }); function createAutoClosingAlert(selector, delay) { var alert = $(selector).alert(); window.setTimeout(function() { alert.alert('close') }, delay); } createAutoClosingAlert(".ale...
Java
CucumberJsBrowserRunner.StepDefinitions.test3(function () { var And = Given = When = Then = this.defineStep, runner; Given(/^test3$/, function(callback) { callback(); }); When(/^test3$/, function(callback) { callback(); }); Then(/^test3$/, function(callback) ...
Java
.styleSans721.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> { font-family: Sans; font-size: 721.0pt; font-weight: normal; font-style: normal; text-align: 0; letter-spacing: 0pt; line-height: 0pt; } .styleSans12000<enum PANGO_WEIGHT_NORMAL ...
Java
'use strict'; var run = require('./helpers').runMochaJSON; var assert = require('assert'); describe('.only()', function() { describe('bdd', function() { it('should run only tests that marked as `only`', function(done) { run('options/only/bdd.fixture.js', ['--ui', 'bdd'], function(err, res) { if (e...
Java
# Linux Kernel Module This is simple kernel linux module: To compile this module: ***make -C /lib/modules/$(uname -r)/build M=$PWD*** Load module: ***insmod modulo.ko*** Unload module: ***rmmod modulo.ko*** You can run the follow command to see the log messages: ***dmesg***
Java
import { ComponentRef, DebugElement } from '@angular/core'; import { ComponentFixture } from '@angular/core/testing'; export function doClassesMatch(resultClasses: DOMTokenList, expectedClasses: string[]): boolean { let classesMatch = true; let currentClass: string = null; for (let i = 0; i < expectedClasses.le...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Amigoo Secreto - Sorteio</title> <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="css/principal.css"> <script type="text/javascript" src="js/angular.js"></script> ...
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta content="Craig McClellan" name="author"> <title>Craig McClellan - T13203775423 </title> <link href=...
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <meta name="collection" content="api"> <!-- Generated by javadoc (build 1.5.0-rc) on Wed Aug 11 07:22:17 PDT 2004 --> <TITLE> MenuComponent (Java 2 Platform SE 5.0) </TITLE> <META NAME="k...
Java
# Configure SSO Integration for Dropbox The Dropbox [Single Sign-on (SSO)](https://auth0.com/docs/sso) Integration creates a client application that uses Auth0 for authentication and provides SSO capabilities for Dropbox. Your users log in to Dropbox with Auth0 [identity providers](https://auth0.com/docs/identityprovi...
Java
Compiling/running fishcoind unit tests ------------------------------------ fishcoind unit tests are in the `src/test/` directory; they use the Boost::Test unit-testing framework. To compile and run the tests: cd src make -f makefile.unix test_fishcoin # Replace makefile.unix if you're not on unix ./test_fishcoi...
Java
package com.rrajath.orange; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; public class MainActivity extends ActionBarActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInst...
Java
### Oct 18, 2013 - Use the default Redis maxmemory policy, volatile-lru instead of volatile-ttl - Create user activity if failed password match occurs for Basic auth ### Oct 17, 2013 - Increment task ID using Redis incr command ### Oct 16, 2013 - Basic and Token authentication comply with rfc dealing with realm param...
Java