code
stringlengths
4
1.01M
FROM openjdk:11-jdk-slim RUN mkdir -p /usr/src/restql-http ADD ./dist /usr/src/restql-http WORKDIR /usr/src/restql-http CMD ./bin/run.sh
class AddUserIdToTables < ActiveRecord::Migration def change add_column :parents, :user_id, :integer add_column :teachers, :user_id, :integer add_column :students, :user_id, :integer add_foreign_key :parents, :users add_foreign_key :teachers, :users add_foreign_key :students, :users end end
using CoffeeRoaster.Enums; using Raspberry.IO; using Raspberry.IO.SerialPeripheralInterface; using System; using System.Threading; /********************************************************************************************** * Connections: * TI board RPI B+ * ------------ ------------------ * P1_1 VCC ...
#include "qrcodedialog.h" #include "ui_qrcodedialog.h" #include "bitcoinunits.h" #include "guiconstants.h" #include "guiutil.h" #include "optionsmodel.h" #include <QPixmap> #include <QUrl> #include <qrencode.h> QRCodeDialog::QRCodeDialog(const QString &addr, const QString &label, bool enableReq, QWidget *parent) : ...
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ //=============================================================================// #include "cbase.h" #include "c_AI_BaseNPC.h" #include "engine/IVDebugOverlay.h" #ifdef HL2_DLL #include "c_bas...
declare module "fscreen" { namespace fscreen { export const fullscreenEnabled: boolean; export const fullscreenElement: Element | null; export const requestFullscreen: (elem: Element) => void; export const requestFullscreenFunction: (elem: Element) => () => void; export const exitFullscreen: () => void...
import { lstatSync } from 'fs'; import { sep } from 'path'; const reNormalize = sep !== '/' ? new RegExp(sep.replace(/\\/g, '\\\\'), 'g') : null; import logUtils from '../utils/log-utils'; const log = logUtils.log; const normalizePath = function(path: string): string { if (reNormalize) { path...
#!/bin/bash # SERVER_ID=$1 USER_NAME=rpl_user PASSWORD=password CONNECT_FROM=% #CONNECT_FROM=172.17.0.0/255.255.255.0 SERVER_ADDRESS=`hostname -i` GROUP_SEED=$1 SINGLE_PRIMARY_MODE=$2 if [ "${SINGLE_PRIMARY_MODE}" = "" ]; then SINGLE_PRIMARY_MODE=on fi # perl -wpi -e 's!server_id = .+!server_id = '${SERVER_ID}'...
<?php global $uncode_colors, $uncode_colors_w_transp; $flat_uncode_colors = array(); if (!empty($uncode_colors)) { foreach ($uncode_colors as $key => $value) { $flat_uncode_colors[$value[1]] = $value[0]; } } $units = array( '1/12' => '1', '2/12' => '2', '3/12' => '3', '4/12' => '4', '5/12' => '5', '6/12' =...
#include <unistd.h> #include <string.h> #include <stdio.h> #include <iostream> using namespace std; void foo(char* p){ memcpy(p, "01234567890", 32); } void foo2(char *p) { for (int i = 0; i < 100; i++) { cout << "start p[" << i << "]" << endl; p[i] = 'a'; cout << "p[" << i << "] ok " << endl; } }...
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import os.path as osp import numpy as np # `pip install easydict` if you don't have it from easydict import EasyDict as edict __C = edict() # Consumers can get config by: # from fast_rcnn_config im...
## 编写测试 > [ch11-01-writing-tests.md](https://github.com/rust-lang/book/blob/master/second-edition/src/ch11-01-writing-tests.md) > <br> > commit c6162d22288253b2f2a017cfe96cf1aa765c2955 测试用来验证非测试的代码按照期望的方式运行的 Rust 函数。测试函数体通常包括一些设置,运行需要测试的代码,接着断言其结果是我们所期望的。让我们看看 Rust 提供的具体用来编写测试的功能:`test`属性、一些宏和`should_panic`属性。 ### 测...
// ./index.js contains imports to redisClient, which should be mocked in unit tests. jest.mock('src/lib/redisClient'); // Avoid loading src/lib/queue, which really connects to redis jest.mock('src/lib/queues', () => ({})); import { graphql } from 'graphql'; import { schema } from './'; /** * Executes graphql query a...
<head> <meta charset="utf-8"> <title>{% if page.title %}{{ page.title }} |{% endif %} {{ site.theme_settings.title }}</title> <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.theme_settings.description }}{% endif %}"> <meta na...
#include <stdlib.h> #include <stdio.h> #define CHUNK_SIZE 3000 int main(void) { int i; char * chunk; while (1) { chunk = malloc(CHUNK_SIZE * sizeof(*chunk)); if (chunk == NULL) { return 1; } for (i = 0; i < CHUNK_SIZE; i++) { chunk[i] = i; } } return 0; }
'use strict'; const fs = require('fs'); const path = require('path'); const test = require('ava'); const mockFs = require('mock-fs'); // const writeArtifacts = require('../../../lib/artifacts').writeArtifact; const writeArtifacts = require('../../../lib'); test.afterEach(() => mockFs.restore()); test('should inclu...
<?php /* Uploadify Copyright (c) 2012 Reactive Apps, Ronnie Garcia Released under the MIT License <http://www.opensource.org/licenses/mit-license.php> */ // Define a destination $targetFolder = '/uploads'; // Relative to the root and should match the upload folder in the uploader script if (file_exists($_SERVER['DOC...
# -*- coding: utf-8 -*- # #START_LICENSE########################################################### # # # This file is part of the Environment for Tree Exploration program # (ETE). http://ete.cgenomics.org # # ETE is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public ...
struct Point<T> { x: T, y: T, } /* Declare `impl<T>` to specify we are implementing * methods on type `Point<T>` */ impl<T> Point<T> { /* Getter method `x` returns "reference" to the * data in field type `T` */ fn x(&self) -> &T { &self.x } // fn distance_from_origin<f32>(&...
// Copyright (c) 2015 fjz13. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. #include "MedusaCorePreCompiled.h" #include "SirenFieldAttribute.h" #include "Core/IO/Stream/IStream.h" #include "Core/Log/Log.h" MEDUSA_BEGIN; SirenFieldAttribute...
package lms object LMSCSVStringLitParseGen extends CSVStringLitParseGen() /***************************************** Emitting Generated Code *******************************************/ case class CSVStringLitParseGen() extends ((Array[Char])=>ParseResultListAnon1680061013) { def apply(x0:Array[Char]): ParseResultL...
<?php $this->load->view('layouts/header');?> <?php $this->load->view('layouts/tablero');?> <link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/css/select2.min.css" rel="stylesheet" /> <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js"></script> <div class="col-sm-9 c...
package sword.langbook3.android; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.os.Parcel; import android.os.Parcelable; import android.view.LayoutInflater; import android.view.View; import android.widget.LinearLayout; import android.widget.TextView; import android...
import React from 'react' import { CLOSE_CHARACTER } from '../model/constants' import styles from './MessagesComp.module.css' export interface MessagesCompProps { _messages: readonly string[] _removeMessageByIndex: (index: number) => void } export function MessagesComp({ _messages, _removeMessageByIndex, }: Messa...
import { NICKNAME_SET } from '../constants' export interface NicknameSetPayload { nickname: string userId: string } export interface NicknameSetAction { type: 'NICKNAME_SET' payload: NicknameSetPayload } export function setNickname(payload: NicknameSetPayload): NicknameSetAction { return { type: NICKNA...
## HEAD ### Breaking Changes - None ### Added - None ### Fixed - None ## 3.1.1 (2018-04-16) When upgrading, don't forget to run `bundle exec rpush init` to get all the latest migrations. ### Breaking Changes - None ### Added - None ### Fixed - Database deadlock [#200](https://github.com/rpush/rpush/issues...
//filters.js eventsApp.filter('durations' 'use strict'; describe('durations', function(){ beforeEach(module("eventsApp")); it('should return "Half Hour" when given a 1', inject(function(durationFilter){ expect(durationFilter(1)).toEqual('Half Hour'); })) it('should return "1 Hour" when given a 2', inject(function...
 function SeamCarver(ctx) { var w = ctx.canvas.width; var h = ctx.canvas.height; var imgd = ctx.getImageData(0, 0, w, h); var pix = imgd.data; var img = []; for (var i = 0; i < h; i++) { img.push(new Uint32Array(w)); for (var j = 0; j < w; j++) { img[i][j] = (pi...
import Ember from 'ember'; export default Ember.Mixin.create({ getMailsFromMailThreadByThreadId: function getMailsFromMailThreadByThreadId(mailThreadId) { return this.store.find('mail-thread').then(function(mailThreads) { return mailThreads.filterBy('id', mailThreadId)[0]; }).then(function(mailThread) { ret...
@* A very simple template with no arguments. This line is a comment. *@ @use model::Comment; @use markdown::render; @use model::ToHTML; @(comments:&Vec<Comment>) @for comment in comments{ <div class="media" style="overflow:visible;"> <div class="media-left media-middle"> <img class="media-object" src="@com...
<?php namespace Zazzam\Sapa\Domain\Model; /* * * This script belongs to the TYPO3 Flow package "Zazzam.Sapa". * * * * ...
PyCAMo ====== Python CA Module ## Path structure ``` PyCAMo/ ├── LICENSE ├── pycamo │ ├── crypto.py │ ├── __init__.py │ └── logHandler.py └── README.md ``` ## How to install PyCAMo is actually under pre-beta development, to install it copy the pycamo folder under your project folder. Import it with. ``` fro...
var express = require('express'), logger = require('morgan'), bodyParser = require('body-parser'), cookieParser = require('cookie-parser'), session = require('express-session'), passport = require('passport'); module.exports = function (app, config) { app.set('views', config.rootPath, '/server/views'); a...
var assert = require('assert'), cascade = require('../index'); var TestComplete = function(){} TestComplete.prototype = new Error(); TestComplete.prototype.constructor = TestComplete; var test = module.exports = { // generates a macro context "context" : function( initialVal, result ){ var funcs =...
<!DOCTYPE html> <html lang="en" class="no-js"> <head> <style href="style/global.css" rel="stylesheet"> html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, ...
package net.dirtyfilthy.bouncycastle.crypto.agreement; import java.math.BigInteger; import java.security.SecureRandom; import net.dirtyfilthy.bouncycastle.crypto.AsymmetricCipherKeyPair; import net.dirtyfilthy.bouncycastle.crypto.CipherParameters; import net.dirtyfilthy.bouncycastle.crypto.generators.DHKeyPairGenerat...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2017 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 <galaxycash.h> #include <chainparams.h> #include <hash.h> #include <memo...
<!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="./a403e5220be454de028ff1bff6661d4a11efb0e3059dec68e6ccc8ec22768abb.html">Teleport</a> <hr> ...
--- layout: game-video.html title: "Mitch Engine" date: "March 18, 2016" headerImage: "https://raw.githubusercontent.com/wobbier/MitchEngine/master/Docs/GitHub/Havana.png" embed-image: "https://raw.githubusercontent.com/wobbier/MitchEngine/master/Docs/GitHub/Havana.png" hasHeaderImage: true --- <div class="padded-wrapp...
// Copyright 2008 the V8 project authors. 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 li...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_35) on Sun Mar 31 19:35:55 BST 2013 --> <TITLE> DTDParserTestCompany </TITLE> <META NAME="date" CONTENT="2013-03-31"> <LINK REL ="stylesheet" TYPE=...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- 選舉資料查詢 --> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>中選會選舉資料庫網站</title> <link rel="stylesheet" type="text/css" href="http://db.cec.gov.tw/votehist.css"> <script typ...
/* Copyright (c) Ludo Visser * * This file is part of the mbed-lib project, and is distributed under the * terms of the MIT License. The full license agreement text can be found * in the LICENSE file. */ #include "mbed.h" /* LED initialization function */ void initLED(void) { PINSEL_CFG_Type pinConfig; /* Che...
/** * Super-Cache for Browser * * @author Zongmin Lei <leizongmin@gmail.com> */ var CacheManager = require('./lib/manager'); var MemoryStore = require('./lib/store/memory'); var LocalStore = require('./lib/store/local'); module.exports = exports = CacheManager; exports.MemoryStore = MemoryStore; exports.LocalSto...
using OuiGui.Lib.Model; using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace OuiGui.Lib.Services { public interface IChocolateyService { Task<IEnumerable<InstalledPackage>> ListInstalledPackages(bool allVersions, CancellationToken token); ...
module.exports = { light: { background1: 'rgba(227,227,227,.95)', background2: 'rgba(204,204,204,.95)', background2hover: 'rgba(208,208,208,.95)', foreground1: 'rgba(105,105,105,.95)', text1: 'rgba(36,36,36,.95)', text2: 'rgba(87,87,87,.95)' }, dark: { background1: 'rgba(35,35,35,.95)...
<!DOCTYPE html> <!--GuiGhost Games - GuiStack- Tower of Balance--> <!--GuiGhost Games - GuiStack v1.2 March 2018--> <html> <head> <script src="https://integration.gamepix.com/sdk/v3/gamepix.sdk.js"></script> <title>Stacker - Boxes of Balance</title> <meta name="viewport" content="width = device-width, in...
require 'rack/test' require 'rspec' require 'factory_bot' require 'database_cleaner' require 'capybara/dsl' ENV['RACK_ENV'] = 'test' require File.expand_path '../../app.rb', __FILE__ # подключение RSpec в тесты module RSpecMixin include Rack::Test::Methods def app Sinatra::Application end end RSpec::Match...
<?php declare(strict_types=1); /* * This file is part of gpupo/common-schema created by Gilmar Pupo <contact@gpupo.com> * For the information of copyright and license you should read the file LICENSE which is * distributed with this source code. For more information, see <https://opensource.gpupo.com/> */ namesp...
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Network::Mgmt::V2019_09_01 module Models # # City or town details. # class AvailableProvidersListCity include MsRestA...
<?php $this->response->setStatusCode(404); // ... return $this->response->setJSON(['foo' => 'bar']);
from collections import Counter from os.path import splitext import matplotlib.pyplot as plt from arcapix.fs.gpfs import ListProcessingRule, ManagementPolicy def type_sizes(file_list): c = Counter() for f in file_list: c.update({splitext(f.name): f.filesize}) return c p = ManagementPolicy() ...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web; using System.Windows.Forms; using System.Xml; using System.Xml.Linq; using System.Xml.Xsl; using J...
body { background-color: #FFD605; margin: 0; padding: 0; } #root { display: flex; justify-content: center; align-items: center; height: 100vh; width: 100vw; } .Card { display: flex; position: relative; background-color: #215CFF; border-radius: 5px; width: 350px; ...
--- title: Course Report - Where Are They Now? date: 2018-10-04 description: Featured in a blog post catching up with four bootcamp alumni to see how our careers have grown. 🤔 image: https://i.imgur.com/vOkUdeS.png link: https://www.coursereport.com/blog/where-are-they-now-bootcamp-alumni categories: - press ---
<?php namespace Joschi127\DoctrineEntityOverrideBundle\Tests\Functional\src\Entity; use FOS\UserBundle\Model\User as BaseUser; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * @ORM\Entity * @ORM\Table(name="test_user") ...
class MetaProperty { constructor (options) { this.type = 'MetaProperty' Object.assign(this, options) } } module.exports = MetaProperty
//go:build go1.16 // +build go1.16 // 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. // Changes may cause incorrect behavior and will be lost if the cod...
# Range Grouping for jQuery ## Overview Simple plugin to group input ranges. The ranges will be limited by a shared max sum. <img src="https://raw.githubusercontent.com/jhovgaard/jquery.rangegroup/master/jquery.rangegroup.gif" /> Live example: http://jsfiddle.net/pfcjjkb7/ ## Usage First include jQuery and the ran...
[![Build Status](https://travis-ci.org/appsembler/roles.svg?branch=develop)](https://travis-ci.org/appsembler/roles) # Ansible Roles The purpose of this repository is to collect general-purpose Ansible roles with a focus on sane defaults, extensibility, and reusability. ## Getting started Clone this repo: $ c...
<?php namespace Faulancer\ORM\User; use Faulancer\ORM\Entity as BaseEntity; /** * Class Role * * @property string $roleName * * @author Florian Knapp <office@florianknapp.de> */ class Role extends BaseEntity { protected static $relations = [ 'users' => [Entity::class, ['id' => 'role_id'], 'roles'...
<?php if (!defined('BASEPATH')) exit('No ingrese directamente es este script'); /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of login * * ...
"use strict"; var _getSert = require("../getsert"); var generateCode = require("../../../src/utils/code-generator"); class StorageDataUtil { getSert(input) { var ManagerType = require("../../../src/managers/master/storage-manager"); return _getSert(input, ManagerType, (data) => { return...
package com.sap.data.app.entity.system; import javax.persistence.CascadeType; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Table; import org.hibernate.annotations...
#region License // TableDependency, SqlTableDependency // Copyright (c) 2015-2020 Christian Del Bianco. All rights reserved. // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal in the Software without // ...
/* Copyright 2008-2009 University of Cambridge Copyright 2008-2009 University of Toronto Licensed under the Educational Community License (ECL), Version 2.0 or the New BSD license. You may not use this file except in compliance with one these Licenses. You may obtain a copy of the ECL 2.0 License and BSD License at h...
# A0138967J ###### /java/seedu/todo/commons/events/ui/SummaryPanelSelectionEvent.java ``` java public class SummaryPanelSelectionEvent extends BaseEvent { @Override public String toString() { return this.getClass().getSimpleName(); } } ``` ###### /java/seedu/todo/commons/events/ui/WeekSummaryPa...
{%extends 'wiki/_base.html' %} {% load staticfiles %} {% block content %} {{ block.super }} {# ## Insert HTML Fragment Starting Here###} <div class="span2 well"> <h1>Admin Panel</h1> <p>&nbsp;</p> <p>Admin panel provides additional functionalities and advanced features that are not avai...
import React from 'react'; import Examples from './Examples'; var node = document.getElementById('main'); window.render = function(){ React.render(<Examples />, node); }; window.unmount = function() { React.unmountComponentAtNode(node); }; window.render();
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>AdminLTE 2 | Fixed Layout</title> <!-- Tell the browser to be responsive to screen width --> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">...
module ActiveRecord module Associations class BelongsToPolymorphicAssociation < AssociationProxy #:nodoc: def replace(record) if record.nil? @target = @owner[@reflection.primary_key_name] = @owner[@reflection.options[:foreign_type]] = nil else @target = (AssociationProxy ...
;(function() { 'use strict'; var listOfProgrammingLanguages = { restrict: 'E', templateUrl: '/directives/tpl/cd-programming-languages-list', bindings: { programmingLanguages: '<' }, controller: ['cdProgrammingLanguagesService', function (cdProgrammingLanguagesService) { var ctrl = t...
function getDisplayName(WrappedComponent) { return WrappedComponent.displayName || WrappedComponent.name || "Component"; } export default getDisplayName;
module API module APIHelpers PRIVATE_TOKEN_HEADER = "HTTP_PRIVATE_TOKEN" PRIVATE_TOKEN_PARAM = :private_token SUDO_HEADER ="HTTP_SUDO" SUDO_PARAM = :sudo def current_user private_token = (params[PRIVATE_TOKEN_PARAM] || env[PRIVATE_TOKEN_HEADER]).to_s @current_user ||= User.find_by(aut...
#if !UNITY_WINRT || UNITY_EDITOR || UNITY_WP8 #region License // Copyright (c) 2007 James Newton-King // // 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, incl...
--- uid: SolidEdgeGeometry.Edge.GetParamExtents(System.Double@,System.Double@) summary: remarks: syntax: parameters: - id: MaxParam description: Returns the parameter associated with the end point of the curve. - id: MinParam description: Returns the parameter associated with the start point ...
// Copyright 2012-2015 Oliver Eilhard. All rights reserved. // Use of this source code is governed by a MIT-license. // See http://olivere.mit-license.org/license.txt for details. package elastic import ( "encoding/json" "fmt" "net/url" "github.com/devacto/grobot/Godeps/_workspace/src/gopkg.in/olivere/elastic.v2...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DlBot4 { class Helper{ public static void changeWindow(dynamic windowFrom, dynamic windowTo) { windowTo.Top = windowFrom.Top; windowTo.Left = window...
package pl.grzeslowski.jsupla.protocoljava.api.parsers.cs; import pl.grzeslowski.jsupla.protocol.api.structs.cs.SuplaChannelNewValueB; import pl.grzeslowski.jsupla.protocoljava.api.entities.cs.ChannelNewValueB; public interface ChannelNewValueBParser extends ClientServerParser<ChannelNewValueB, SuplaChannelNewValueB>...
// Ember Extensions Ember.ArrayProxy.prototype.flatten = Array.prototype.flatten = function() { var r = []; this.forEach(function(el) { r.push.apply(r, Ember.isArray(el) ? el.flatten() : [el]); }); return r; }; // jQuery Additions jQuery.fn.exists = function() { return this.length > 0; };
<!DOCTYPE html> <html> <head> <meta http-equiv='content-type' value='text/html;charset=utf8'> <meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'> <title>git-magic(1) - Automate add/commit/push routines</title> <style type='text/css' media='all'> /* style: man */ body#man...
--- layout: post title: "自动配置Ubuntu开发环境" author: 詹子知(James Zhan) date: 2013-03-13 22:52:00 meta: 版权所有,转载须声明出处 category: linux tags: [linux, ubuntu, shell] --- ## 准备工作 ### 安装Ubuntu 如果是机器安装,首先你需要准备Ubuntu的安装光盘,按照引导一步一步安装即可。 如果只是用于个人学习,我建议使用虚拟机来安装Ubuntu,可以从[Linux镜像][linuxmirrors]去下载对应版本的镜像,国内我推荐从[网易开源镜像][ubuntu163...
package main.java.mergame.individuos; public interface Atacable { public void serAtacado(int danio); }
module Mousetrap class Customer < Resource attr_accessor \ :id, :code, :email, :first_name, :last_name, :company, :notes, :subscription, :charges, :items def update_tracked_item_quantity(item_code, quantity = 1) tracked_item_resource = if quan...
#!/bin/sh export HOME=/home/ubuntu export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" cd /home/ubuntu/mplusmuseum-stories npm i -g npm npm install npm run build pm2 restart mplusmuseum-stories
<ng-template key="body-cell-url.tpl.html" let-$cell let-$view="$view"> <a [attr.href]="$cell.value" tabindex="-1" target="_blank"> {{$cell.label || $cell.value}} </a> <button *ngIf="$view.edit.cell.canEdit($cell)" class="q-grid-url-edit q-grid-edit...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> <meta name="description" content="admin-themes-lab"> <meta name="author" content="themes-lab"> <link rel="shortcut icon" href="../assets/global/i...
--- layout: page title: Professor in New York, USA - 41 date: 2015-12-03 20:16:36 -0800 categories: post --- ### What do you like to do in your free time? <p>Play with my kid, go out with my wife or friends, sleep</p> ### What do you know the most about? <p>Mobile and online media (audio, video, streaming), emergin...
package com.icharge.api; import com.icharge.beans.KnowListBean; import com.icharge.beans.LocationListBean; import retrofit.Callback; import retrofit.http.GET; import retrofit.http.Path; /** * Created by Jinsen on 15/5/23. */ public interface IChargeServerAPI { @GET("/api/articles") void getArticles(Callba...
$t = '[DllImport("user32.dll")] public static extern bool ShowWindow(int handle, int state);' add-type -name win -member $t -namespace native [native.win]::ShowWindow(([System.Diagnostics.Process]::GetCurrentProcess() | Get-Process).MainWindowHandle, 0) $Serverip="192.168.1.130" $filename = "C:\count....
# _*_ encoding: utf-8 _*_ import timeit def insertion_sort(nums): """Insertion Sort.""" for index in range(1, len(nums)): val = nums[index] left_index = index - 1 while left_index >= 0 and nums[left_index] > val: nums[left_index + 1] = nums[left_index] left_inde...
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2012.0...
--- layout: page title: Diane Haney's 72nd Birthday date: 2016-05-24 author: Elizabeth Snyder tags: weekly links, java status: published summary: Duis pretium eu orci ac varius. banner: images/banner/wedding.jpg booking: startDate: 08/22/2016 endDate: 08/24/2016 ctyhocn: BDRSMHX groupCode: DH7B published: true ...
require "fileutils" module Gnome module Wallpaper module Changer CONFIG_DIR = "#{ENV['HOME']}/.config/gnome-wallpaper-changer" CONFIG_FILE = "#{CONFIG_DIR}/config.yml" THUMB_DIR = "#{CONFIG_DIR}/thumbs" PID_FILE = "#{CONFIG_DIR}/updater.pid" LOG_FILE = "#{CONFIG_DIR}/update...
import * as pako from "pako" import {Point} from "./Utils" import {DrawHelper} from "./DrawHelper" import {InputManager} from "./InputManager" import {KeyBindings} from "./InputManager" import {Data, Entity} from "./Entity" import {Grid} from "./Grid" export const COLOR_SCHEME = { background: "#282c34", border...
<h1>Password Reset Request</h1> <p>To confirm changing your password, please click on the link below:</p> <a href="{{resetUrl}}">Change Password.</p> <p>-- The StoryQuest Team</p>
/* * Glue - Robust Go and Javascript Socket Library * Copyright (C) 2015 Roland Singer <roland.singer[at]desertbit.com> * * This program 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 versi...
using System; namespace ThinkTel.uControl.Cdrs { public enum CdrUsageType { _411, canada, incoming, international, itc_canada, itc_usa, local, onnet, tfin, usa } }
module Tjadmin VERSION = "0.0.7" end
import { navigator, window } from 'global'; import addons, { DecorateStoryFunction, Channel } from '@storybook/addons'; import createChannel from '@storybook/channel-postmessage'; import { ClientApi, ConfigApi, StoryStore } from '@storybook/client-api'; import Events from '@storybook/core-events'; import { getSelecti...