code stringlengths 4 1.01M |
|---|
import { Component, OnInit } from '@angular/core';
// import { TreeModule, TreeNode } from "primeng/primeng";
import { BlogPostService } from '../shared/blog-post.service';
import { BlogPostDetails } from '../shared/blog-post.model';
@Component({
selector: 'ejc-blog-archive',
templateUrl: './blog-archive.compone... |
require 'active_record'
module ActiveRecord
class Migration
def migrate_with_multidb(direction)
if defined? self.class::DATABASE_NAME
ActiveRecord::Base.establish_connection(self.class::DATABASE_NAME.to_sym)
migrate_without_multidb(direction)
ActiveRecord::Base.establish_connection(... |
const os = require("os");
const fs = require("fs");
const config = {
}
let libs;
switch (os.platform()) {
case "darwin": {
libs = [
"out/Debug_x64/libpvpkcs11.dylib",
"out/Debug/libpvpkcs11.dylib",
"out/Release_x64/libpvpkcs11.dylib",
"out/Release/libpvpkcs11.dylib",
];
break;
... |
class RenameMembers < ActiveRecord::Migration[5.1]
def change
rename_table :members, :memberships
end
end
|
using System;
using Xunit;
using System.Linq;
using hihapi.Models;
using hihapi.Controllers;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.OData.Results;
using hihapi.test.common;
namespace hihapi.unittest.Finance
{
[Collection("HIHAPI_Un... |
<?php
# MantisBT - a php based bugtracking system
# MantisBT is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# MantisBT is distribut... |
team_mapping = {
"SY": "Sydney",
"WB": "Western Bulldogs",
"WC": "West Coast",
"HW": "Hawthorn",
"GE": "Geelong",
"FR": "Fremantle",
"RI": "Richmond",
"CW": "Collingwood",
"CA": "Carlton",
"GW": "Greater Western Sydney",
"AD": "Adelaide",
"GC": "Gold Coast",
"ES": "Es... |
from keras.applications import imagenet_utils
from keras.applications import mobilenet
def dummyPreprocessInput(image):
image -= 127.5
return image
def getPreprocessFunction(preprocessType):
if preprocessType == "dummy":
return dummyPreprocessInput
elif preprocessType == "mobilenet":
... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
namespace TheS.Runtime
{
internal class CallbackException : FatalException
{
public... |
<?php
namespace App\Http\Controllers;
use App\Jobs\GetInstance;
use App\Models\Build;
use App\Models\Commit;
use App\Models\Repository;
use App\RepositoryProviders\GitHub;
use Illuminate\Support\Facades\DB;
class DashboardController extends Controller
{
public function index()
{
$repositories = Repos... |
#pragma once
/**
* Copyright (c) blueback
* Released under the MIT License
* https://github.com/bluebackblue/brownie/blob/master/LICENSE.txt
* http://bbbproject.sakura.ne.jp/wordpress/mitlicense
* @brief OpenGL。
*/
/** include
*/
#pragma warning(push)
#pragma warning(disable:4464)
#include "../t... |
<?php
namespace Vich\UploaderBundle\Mapping;
use Vich\UploaderBundle\Naming\NamerInterface;
/**
* PropertyMapping.
*
* @author Dustin Dobervich <ddobervich@gmail.com>
*/
class PropertyMapping
{
/**
* @var \ReflectionProperty $property
*/
protected $property;
/**
* @var \ReflectionProp... |
-------------------------------------------------------------------
-- The Long night
-- The night gives me black eyes, but I use it to find the light.
-- In 2017
-- 公共状态
-------------------------------------------------------------------
L_StatePublic = {}
setmetatable(L_StatePublic, {__index = _G})
local _this = L_... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>18 --> 19</title>
<link href="./../../assets/style.css" rel="stylesheet">
</head>
<body>
<h2>You have to be fast</h2>
<a href="./ed6c3fe87a92e6b0939903db98d3209d32dcf2e96bee3586c1c6da3985c58ae4.html">Teleport</a>
<hr>
... |
personalprojects
================
A bunch of little things I made in my freetime
### PyPong
A simple pong game made in Python and Pygame.
**Changes Made**: Made the AI a bit (a lot) worse, you can actually win now.
### Maze Runner
A maze app that uses Deep Field Search (DFS) to make a perfect maze and then uses the... |
// Copyright (c) 2020 The Firo Core Developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef FIRO_ELYSIUM_SIGMAWALLETV0_H
#define FIRO_ELYSIUM_SIGMAWALLETV0_H
#include "sigmawallet.h"
namespace elysium {
class Sigma... |
# Gears #
*Documentation may be outdated or incomplete as some URLs may no longer exist.*
*Warning! This codebase is deprecated and will no longer receive support; excluding critical issues.*
A PHP class that loads template files, binds variables to a single file or globally without the need for custom placeholders/... |
/*
* @Author: justinwebb
* @Date: 2015-09-24 21:08:23
* @Last Modified by: justinwebb
* @Last Modified time: 2015-09-24 22:19:45
*/
(function (window) {
'use strict';
window.JWLB = window.JWLB || {};
window.JWLB.View = window.JWLB.View || {};
//------------------------------------------------------------... |
module InfinityTest
module Core
class Base
# Specify the Ruby Version Manager to run
cattr_accessor :strategy
# ==== Options
# * :rvm
# * :rbenv
# * :ruby_normal (Use when don't pass any rubies to run)
# * :auto_discover(defaults)
self.strategy = :auto_discover
... |
<?php
session_start();
require_once('../php/conexion.php');
$conect = connect::conn();
$user = $_SESSION['usuario'];
if($_SERVER['REQUEST_METHOD'] == 'POST'){
$sql = "insert into cotidiano (dir_origen,dir_destino,semana,hora,usuario,estado) values (?,?,?,?,?,?);";
$favo = sqlsrv_query($conect,$sql,array($_POST['... |
holiwish
========
|
python -m unittest
|
using System;
using NetOffice;
using NetOffice.Attributes;
namespace NetOffice.MSProjectApi.Enums
{
/// <summary>
/// SupportByVersion MSProject 11, 12, 14
/// </summary>
///<remarks> MSDN Online Documentation: http://msdn.microsoft.com/en-us/en-us/library/office/ff863548(v=office.14).aspx </remarks>
[Support... |
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("Ci... |
//#define USE_TOUCH_SCRIPT
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
/*
* ドラッグ操作でのカメラの移動コントロールクラス
* マウス&タッチ対応
*/
namespace GarageKit
{
[RequireComponent(typeof(Camera))]
public class FlyThroughCamera : MonoBehaviour
{
public static bool... |
"use strict";
const readdir = require("../../");
const dir = require("../utils/dir");
const { expect } = require("chai");
const through2 = require("through2");
const fs = require("fs");
let nodeVersion = parseFloat(process.version.substr(1));
describe("Stream API", () => {
it("should be able to pipe to other strea... |
<?php
/*
* This file is part of PHPExifTool.
*
* (c) 2012 Romain Neutron <imprec@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\Font;
use JMS\Serializer\Annotation\ExclusionPolicy;
us... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (10.0.2) on Fri Sep 21 22:00:31 PDT 2018 -->
<title>U-Index</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="da... |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.synapse.v2019_06_01_preview;
import java.util.Co... |
// Copyright 2015 Peter Beverloo. All rights reserved.
// Use of this source code is governed by the MIT license, a copy of which can
// be found in the LICENSE file.
// Base class for a module. Stores the environment and handles magic such as route annotations.
export class Module {
constructor(env) {
this.env_... |
<?php
/*
* This file is part of PHP CS Fixer.
*
* (c) Fabien Potencier <fabien@symfony.com>
* Dariusz Rumiński <dariusz.ruminski@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace PhpCsFixer\Fixer\PhpUnit;
use PhpCsFixer... |
---
layout: post
title: "从头学算法(二、搞算法你必须知道的OJ)"
date: 2016-12-20 11:36:52
categories: 数据结构及算法
tags: OJ algorithms
mathjax: true
---
在没接触算法之前,我从没听说过OJ这个缩写,没关系,现在开始认识还来得及。等你真正开始研究算法,你才发现你又进入了一个新的世界。
这个世界,你不关注它的时候,它好像并不存在,而一旦你关注它了,每一个花草都让你叹为观止。
来看看百度百科是怎么说的吧:
OJ是Online Judge系统的简称,用来在线检测程序源代码的正确性。著名的OJ有TYVJ、RQNOJ、U... |
package com.timotheteus.raincontrol.handlers;
import com.timotheteus.raincontrol.tileentities.IGUITile;
import com.timotheteus.raincontrol.tileentities.TileEntityInventoryBase;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.entity.player.EntityPlayer;
import net.... |
<?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014 - 2015, British Columbia Institute of Technology
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this softw... |
version https://git-lfs.github.com/spec/v1
oid sha256:be847f24aac166b803f1ff5ccc7e4d7bc3fb5d960543e35f779068a754294c94
size 1312
|
<?php
namespace Matthimatiker\CommandLockingBundle\Locking;
use Symfony\Component\Filesystem\LockHandler;
/**
* Uses files to create locks.
*
* @see \Symfony\Component\Filesystem\LockHandler
* @see http://symfony.com/doc/current/components/filesystem/lock_handler.html
*/
class FileLockManager implements LockMan... |
// Core is a collection of helpers
// Nothing specific to the emultor application
"use strict";
// all code is defined in this namespace
window.te = window.te || {};
// te.provide creates a namespace if not previously defined.
// Levels are seperated by a `.` Each level is a generic JS object.
// Example:
// te.... |
##
# Backup v4.x Configuration
#
# Documentation: http://meskyanichi.github.io/backup
# Issue Tracker: https://github.com/meskyanichi/backup/issues
##
# Config Options
#
# The options here may be overridden on the command line, but the result
# will depend on the use of --root-path on the command line.
#
# If --root-p... |
import Ember from 'ember';
let __TRANSLATION_MAP__ = {};
export default Ember.Service.extend({ map: __TRANSLATION_MAP__ });
|
import React from 'react';
<<<<<<< HEAD
import { Switch, Route } from 'react-router-dom';
import Home from './Home';
import About from './About';
import Blog from './Blog';
import Resume from './Resume';
import Error404 from './Error404';
=======
// import GithubForm from './forms/github/GithubForm';
import GithubRec... |
package cmd
import (
"github.com/fatih/color"
out "github.com/plouc/go-gitlab-client/cli/output"
"github.com/spf13/cobra"
)
func init() {
getCmd.AddCommand(getProjectVarCmd)
}
var getProjectVarCmd = &cobra.Command{
Use: resourceCmd("project-var", "project-var"),
Aliases: []string{"pv"},
Short: "Get the ... |
export interface IContact {
id?: number;
email: string;
listName: string;
name: string;
}
|
// The MIT License (MIT)
//
// Copyright (c) Andrew Armstrong/FacticiusVir 2020
//
// 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 r... |
package unit.com.bitdubai.fermat_dmp_plugin.layer.basic_wallet.bitcoin_wallet.developer.bitdubai.version_1.structure.BitcoinWalletBasicWalletAvailableBalance;
import com.bitdubai.fermat_api.layer.dmp_basic_wallet.common.exceptions.CantRegisterCreditException;
import com.bitdubai.fermat_api.layer.dmp_basic_wallet.bitco... |
using System;
namespace Sherlock
{
/// <summary>
/// A reader than can read values from a pipe.
/// </summary>
/// <typeparam name="T">The type of value to read.</typeparam>
public interface IPipeReader<T> : IDisposable
{
/// <summary>
/// Attempts to read a value from the pipe... |
# Nitrogen 2.0 New Features
### New Elements, Actions, and API functions
* wf:wire can now act upon CSS classes or full JQuery Paths, not just Nitrogen elements. For example, wf:wire(".people > .address", Actions) will wire actions to any HTML elements with an "address" class underneath a "people" class. Anything on ... |
package gogo
import (
"net/http"
"net/http/httptest"
"testing"
"github.com/golib/assert"
)
func Test_NewResponse(t *testing.T) {
it := assert.New(t)
recorder := httptest.NewRecorder()
response := NewResponse(recorder)
it.Implements((*Responser)(nil), response)
it.Equal(http.StatusOK, response.Status())
it... |
#if !defined(AFX_DIALOG3_H__8EF7DE42_F33E_4217_87B0_FE9ACBCE3E84__INCLUDED_)
#define AFX_DIALOG3_H__8EF7DE42_F33E_4217_87B0_FE9ACBCE3E84__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Dialog3.h : header file
//
////////////////////////////////////////////////////////////////////////... |
# Load DSL and set up stages
require 'capistrano/setup'
# Include default deployment tasks
require 'capistrano/deploy'
# Include tasks from other gems included in your Gemfile
require 'capistrano/rvm'
require 'capistrano/bundler'
require 'capistrano/rails'
require 'capistrano/rails/migrations'
require 'capistrano/ngi... |
var mongoose = require('mongoose');
var bcrypt = require('bcrypt');
var saltRounds = 10;
var userSchema = new mongoose.Schema({
email: {
type: String,
index: {unique: true}
},
password: String,
name: String
});
//hash password
userSchema.methods.generateHash = function(password){
return bcrypt.hashSync(passw... |
<?php
namespace Wolphy\Jobs;
use Illuminate\Bus\Queueable;
abstract class Job
{
/*
|--------------------------------------------------------------------------
| Queueable Jobs
|--------------------------------------------------------------------------
|
| This job base class provides a centra... |
#!/bin/sh
echo "Stopping web-server ..."
COUNT_PROCESS=1
while [ $COUNT_PROCESS -gt 0 ]
do
COUNT_PROCESS=`ps -Aef | grep node | grep -c server.js`
if [ $COUNT_PROCESS -gt 0 ]; then
PID_PROCESS=`ps -Aef | grep node | grep server.js | awk '{print $2}'`
if [ ! -z "$PID_PROCESS" ]; then
echo "Killing web server P... |
<?php
namespace RectorPrefix20210615;
if (\class_exists('t3lib_collection_StaticRecordCollection')) {
return;
}
class t3lib_collection_StaticRecordCollection
{
}
\class_alias('t3lib_collection_StaticRecordCollection', 't3lib_collection_StaticRecordCollection', \false);
|
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die m... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = 'ar'
from layers_basic import LW_Layer, default_data_format
from layers_convolutional import conv_output_length
###############################################
class _LW_Pooling1D(LW_Layer):
input_dim = 3
def __init__(self, pool_size=2, strides=None, padd... |
class CreateEventTypes < ActiveRecord::Migration
def change
create_table :event_types do |t|
t.string :name, :limit => 80
t.timestamps
end
end
end
|
/*
* Copyright 2013 MongoDB, 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 a... |
require "empty_port/version"
require 'socket'
require 'timeout'
# ## Example
# require 'empty_port'
# class YourServerTest < Test::Unit::TestCase
# def setup
# @port = EmptyPort.get
# @server_pid = Process.fork do
# server = TCPServer.open('localhost', @port)
# end
# ... |
module.exports = {
'throttle': 10,
'hash': true,
'gzip': false,
'baseDir': 'public',
'buildDir': 'build',
'prefix': ''
}; |
.vertical-center {
min-height: 100%; /* Fallback for browsers do NOT support vh unit */
min-height: 100vh; /* These two lines are counted as one :-) */
display: flex;
align-items: center;
}
@media (min-width: 768px){
#wrapper {/*padding-right: 225px;*/ padding-left: 0;}
.side-nav{right: 0;left: aut... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>使用 button 定义按钮</title>
</head>
<body>
<form action="http://www.baidu.com" method="get">
<button type="button"><b>提交</b></button><br/>
<button type="submit"><img sec="./img/3.jpg" alt="图片"></button><br/>
</form>
</body>... |
---
layout: post
title: Tweets
date: 2019-08-08
summary: These are the tweets for August 8, 2019.
categories:
---
|
import type { FormatRelativeFn } from '../../../types'
// Source: https://www.unicode.org/cldr/charts/32/summary/te.html
const formatRelativeLocale = {
lastWeek: "'గత' eeee p", // CLDR #1384
yesterday: "'నిన్న' p", // CLDR #1393
today: "'ఈ రోజు' p", // CLDR #1394
tomorrow: "'రేపు' p", // CLDR #1395
nextWeek... |
INSERT INTO customers(id, name)
VALUES (1, 'Jane Woods');
INSERT INTO customers(id, name)
VALUES (2, 'Michael Li');
INSERT INTO customers(id, name)
VALUES (3, 'Heidi Hasselbach');
INSERT INTO customers(id, name)
VALUES (4, 'Rahul Pour');
|
/*
*
* BitcoinLikeKeychain
* ledger-core
*
* Created by Pierre Pollastri on 17/01/2017.
*
* The MIT License (MIT)
*
* Copyright (c) 2016 Ledger
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* ... |
<?php
namespace AppBundle\Repository;
/**
* Buyers_PropertiesRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class Buyers_PropertiesRepository extends \Doctrine\ORM\EntityRepository
{
}
|
#!/usr/bin/env ruby
#Example handler file..
infile = ARGV.first
outfile = File.basename(infile, ".tif") + ".jpg.tif"
system("~/cm/processing_scripts/rgb_to_jpeg_tif.rb --internal-mask #{infile} #{outfile}")
|
using Newtonsoft.Json;
using ProtoBuf;
using ITK.ModelManager;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Steam.Models
{
[Model("SteamPlayerBans")]
[ProtoContract]
[JsonObject(MemberSerialization.OptIn)]
public class Pl... |
/*
* Business.h
* UsersService
*
* Copyright 2011 QuickBlox team. All rights reserved.
*
*/
#import "QBUsersModels.h" |
---
layout: post
title: ESPN took a picture of me
categories: link
---
Check [this link](http://espn.go.com/college-football/story/_/id/9685394/how-do-nebraska-fans-feel-bo-pelini-recent-behavior) for some story about Bo Pelini's goofing off, and -- look there in the last photo! -- it's some goofball in a Nebras... |
//
// GFTestAppDelegate.h
// TestChaosApp
//
// Created by Michael Charkin on 2/26/14.
// Copyright (c) 2014 GitFlub. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface GFTestAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
var modules = {
"success" : [
{id: 1, name:"控制台", code:"console", protocol:"http", domain:"console.ecc.com", port:"18333", created:'2017-03-08 00:00:00', creator:'1', modified:'2017-03-08 00:00:00', modifier:'1'},
{id: 2, name:"服务中心", code:"service-center", protocol:"http", domain:"sc.ecc.com", port:"18222", creat... |
const {
createServer,
plugins: { queryParser, serveStatic }
} = require('restify');
const { join } = require('path');
const fetch = require('node-fetch');
const proxy = require('http-proxy-middleware');
const { PORT = 5000 } = process.env;
const server = createServer();
server.use(queryParser());
server.get('/',... |
/**
* @author: * @date: 2016/1/21
*/
define(["core/js/layout/Panel"],
function (Panel) {
var view = Panel.extend({
/*Panel的配置项 start*/
title:"表单-",
help:"内容",
brief:"摘要",
/*Panel 配置 End*/
oninitialized:function(triggerEvent){
... |
# Django Media Albums
[](https://travis-ci.org/VelocityWebworks/django-media-albums)
This app is used to create albums consisting of any combination of the
following:
* Photos
* Video files
* Audio files
This app also optio... |
<!--
Safe sample
input : get the $_GET['userData'] in an array
sanitize : settype (float)
File : unsafe, use of untrusted data in a comment
-->
<!--Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
use, copy, modify, and distribute this software and its doc... |
$('#modalUploader').on('show.bs.modal', function (event) {
var uploader = new qq.FileUploaderBasic({
element: document.getElementById('file-uploader-demo1'),
button: document.getElementById('areaSubir'),
action: '/Files/Upload',
params: { ruta: $('#RutaActual').val() },
allo... |
// setToken when re-connecting
var originalReconnect = Meteor.connection.onReconnect;
Meteor.connection.onReconnect = function() {
setToken();
if(originalReconnect) {
originalReconnect();
}
};
if(Meteor.status().connected) {
setToken();
}
function setToken() {
var firewallHumanToken = Cookie.get('sikka-... |
<% nameScope = @config['name_scope'] %>
</div>
</div>
</div>
<footer class="cortana-footer">
Build with love using Trulia's <a href="https://github.com/trulia/hologram">Hologram</a> and <a href="https://github.com/Yago/Cortana">Cortana</a> !
</footer>
</div>
<script src="theme-bu... |
//
// rbLinkedList.h
// rbLinkedList
//
// Created by Ryan Bemowski on 4/6/15.
//
#pragma once
#include <string>
struct Node
{
int key;
Node *next;
};
class rbLinkedList
{
public:
/** Constructor for the rbLinkedList class.
*/
rbLinkedList();
/** Deconstructor for the rbLinkedList class... |
//
// KAAppDelegate.h
// UIViewController-KeyboardAdditions
//
// Created by CocoaPods on 02/03/2015.
// Copyright (c) 2014 Andrew Podkovyrin. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface KAAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Basic Example</title>
<link rel="stylesheet" href="css/base.css" />
<script src="../../asset/react/react.js"></script>
<script src="../../asset/react/react-dom.js"></script>
<script src="../../asset/react/browser.min.js"></script>
... |
using System.Collections.ObjectModel;
using System.ComponentModel;
using GalaSoft.MvvmLight.Command;
namespace Treehopper.Mvvm.ViewModels
{
/// <summary>
/// A delegate called when the selected board changes
/// </summary>
/// <param name="sender">The caller</param>
/// <param name="e">The new... |
import React from 'react';
import ReactDOM from 'react-dom';
import componentOrElement from 'react-prop-types/lib/componentOrElement';
import ownerDocument from './utils/ownerDocument';
import getContainer from './utils/getContainer';
/**
* The `<Portal/>` component renders its children into a new "subtree" outside o... |
dojo.provide("plugins.dijit.SyncDialog");
// HAS A
dojo.require("dijit.Dialog");
dojo.require("dijit.form.Button");
dojo.require("dijit.form.ValidationTextBox");
// INHERITS
dojo.require("plugins.core.Common");
dojo.declare( "plugins.dijit.SyncDialog",
[ dijit._Widget, dijit._Templated, plugins.core.Common ], {
/... |
namespace TraktApiSharp.Objects.Basic.Json.Factories
{
using Objects.Basic.Json.Reader;
using Objects.Basic.Json.Writer;
using Objects.Json;
internal class CommentLikeJsonIOFactory : IJsonIOFactory<ITraktCommentLike>
{
public IObjectJsonReader<ITraktCommentLike> CreateObjectReader() => new... |
package com.sdl.selenium.extjs3.button;
import com.sdl.selenium.bootstrap.button.Download;
import com.sdl.selenium.extjs3.ExtJsComponent;
import com.sdl.selenium.web.SearchType;
import com.sdl.selenium.web.WebLocator;
public class DownloadLink extends ExtJsComponent implements Download {
public Download... |
angular.module('perCapita.controllers', [])
.controller('AppCtrl', ['$scope', '$rootScope', '$ionicModal', '$timeout', '$localStorage', '$ionicPlatform', 'AuthService',
function ($scope, $rootScope, $ionicModal, $timeout, $localStorage, $ionicPlatform, AuthService) {
$scope.loginData = $localStorage.getOb... |
# VBA.ModernTheme
### Windows Phone Colour Palette and<p>Colour Selector using WithEvents
Version 1.0.1
The *Windows Phone Theme Colours* is a tight, powerful, and well balanced palette.
This tiny Microsoft Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing *Wi... |
var http = require("http");
var querystring = require("querystring"); // 核心模块
var SBuffer=require("../tools/SBuffer");
var common=require("../tools/common");
var zlib=require("zlib");
var redis_pool=require("../tools/connection_pool");
var events = require('events');
var util = require('util');
function ProxyAgent(... |
---
layout: post
title: "Hello World"
image:
feature: nomadsland.jpg
date: 2016-09-19 20:24:11 +0200
categories: personal, coding
---
I enjoy tinkering - building little electronic gadgets and apps - especially if it has something to do with [cryptocurrencies]. Currently my day-job is building Bitcoin infrastructu... |
<?php
namespace RobotsTxtParser;
class CommentsTest extends \PHPUnit\Framework\TestCase
{
/**
* @dataProvider generateDataForTest
*/
public function testRemoveComments($robotsTxtContent)
{
$parser = new RobotsTxtParser($robotsTxtContent);
$rules = $parser->getRules('*... |
/*
* The MIT License
*
* Copyright 2016 njacinto.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify... |
---
layout: post
title: slacker로 slack bot 만들기
comments: true
tags:
- python
- slack
- 봇
- slacker
---
멘토님께서 라인의 `notification`을 이용해서 봇 만든것을 보고 따라 만들었다. 봇 만들고 싶은데 핑계가 없어서 고민하다가 동아리에서 `slack`을 쓰기 때문에 슬랙봇을 만들어보기로 했다. 스터디하는 사람들을 대상으로 커밋한지 얼마나 되었는지 알려주는 용도로 만들었다. 결과물은 아래와 같다.
<img src="/images/commit-be... |
import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosHeart extends React.Component {
render() {
if(this.props.bare) {
return <g>
<path d="M359.385,80C319.966,80,277.171,97.599,256,132.8C234.83,97.599,192.034,80,152.615,80C83.647,80,32,123.238,32,195.779
c0,... |
<?php
/*
$Id$
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
require('includes/application_top.php');
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SPECIALS);
$breadcrumb->add(NAVBAR_TITL... |
---
layout: home
title: JARVARS
comments: false
---
|
{% extends "admin/base.html" %}
{% load i18n %}
{% block title %}{{ title }} | {% trans 'lab purchase management' %}{% endblock %}
{% block branding %}
<h1 id="site-name">{% trans 'LabHamster' %}</h1>
{% endblock %}
{% block nav-global %}{% endblock %}
|
/*
* Copyright (c) 2007 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockitousage.verification;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import static org.mo... |
<?php
declare(strict_types=1);
namespace Atk4\Ui\Demos;
use Atk4\Ui\Crud;
use Atk4\Ui\UserAction\ExecutorFactory;
// Test for hasOne Lookup as dropdown control.
/** @var \Atk4\Ui\App $app */
require_once __DIR__ . '/../init-app.php';
$model = new Product($app->db);
$model->addCondition($model->fieldName()->name, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.