answer stringlengths 15 1.25M |
|---|
#include "Extensions.hpp"
#include "Extensions.inl"
#include <Math/Rect.hpp>
#include <Math/Vector.hpp>
#include <Script/ScriptExtensions.hpp>
#include <SFML/Graphics/CircleShape.hpp>
#include <angelscript.h>
#include <cassert>
namespace
{
void create_CircleShape(void* memory)
{
new(memory)sf::CircleSha... |
'use strict';
module.exports = function(sequelize, DataTypes) {
var Student = sequelize.define('Student', {
name: DataTypes.STRING,
timeReq: DataTypes.INTEGER,
}, {
classMethods: {
associate: function() {
}
}
});
return Student;
}; |
<!DOCTYPE html>
<html lang="">
<head>
<title><%= webpackConfig.metadata.title %></title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="<%= webpackConfig.metadata.title %>">
<... |
#include <CImageLibI.h>
#include <CImageColorDefP.h>
#include <cstring>
bool
CImageColorDef::
getRGB(const std::string &name, double *r, double *g, double *b)
{
int ri, gi, bi;
if (! getRGBI(name, &ri, &gi, &bi))
return false;
double rgb_scale = 1.0/255.0;
*r = ri*rgb_scale;
*g = gi*rgb_scale;
*b = bi*r... |
const {xObjectForm} = require('./xObjectForm');
exports._getPathOptions = function _getPathOptions(options = {}, originX, originY) {
this.current = this.current || {};
const colorspace = options.colorspace || this.options.colorspace;
const colorName = options.colorName;
const pathOptions = {
ori... |
SUBROUTINE WFN1_AD_DSYGST( ITYPE, UPLO, N, A, LDA, B, LDB, INFO )
USE WFN1_AD1
IMPLICIT NONE
#include "blas/double/intf_wfn1_ad_dsymm.fh"
#include "blas/double/intf_wfn1_ad_dsyr2.fh"
#include "blas/double/intf_wfn1_ad_dsyr2k.fh"
#include "blas/double/intf_wfn1_ad_dtrmm.fh"
#include "blas/double/intf_wfn1_ad... |
#define BOOST_TEST_MODULE test_dsu
#define BOOST_TEST_DYN_LINK
#include "test.hpp"
#include "dsu.hpp"
using bdata::make;
using bdata::xrange;
<API key>(one) {
auto dsu = DisjointSetUnion<int>();
dsu.push_back(1);
BOOST_TEST(dsu.xs[1] == 1);
BOOST_TEST(dsu.ws[1] == 1);
}
<API key>(two) {
auto dsu = D... |
<?php namespace WebEd\Base\ThemesManagement\Actions;
use WebEd\Base\Actions\AbstractAction;
class EnableThemeAction extends AbstractAction
{
/**
* @param $alias
* @return array
*/
public function run($alias)
{
do_action(<API key>, $alias);
$theme = <API key>($alias);
i... |
// NFAnalogClockView+Extension.h
// NFAnalogClock
#import "NFAnalogClockView.h"
@interface NFAnalogClockView (Extension)
- (void)startTime;
- (void)stopTime;
- (NFTime *)updateClock;
@end |
___
<strong>Javascript</strong>
<h3>Arrays</h3>
##Summary
We can access an array's items using **indices**. Arrays have a variety of methods to utilize.
##Discussion
javascript
var myArray = ["Alex", "Andrew", "James"];
myArray[0]; // this will return "Alex"
// let's assign a new value to "James"
myArray[2] = "Woodstoc... |
layout: default
<div class="posts">
{% for post in site.posts %}
<article class="post">
{% if post.icon %}
<div style="float: left; padding-right: 20px; margin-top: 10px">
<img style="" src="{{post.icon}}" width="50" height="50"/>
</div>
{% endif %}
<a class="post-link" href=... |
// Use of this source code is governed by a MIT-style
package models
import (
"bufio"
"bytes"
"fmt"
"html"
"html/template"
"io"
"io/ioutil"
"os"
"os/exec"
"strings"
"github.com/Unknwon/com"
"github.com/sergi/go-diff/diffmatchpatch"
"golang.org/x/net/html/charset"
... |
layout: post
date: 2017-09-30
title: "Jorge Manuel THE PEI Sleeveless Sweep/Brush Train Aline/Princess"
category: Jorge Manuel
tags: [Jorge Manuel ,Jorge Manuel,Aline/Princess ,Jewel,Sweep/Brush Train,Sleeveless]
Jorge Manuel THE PEI
Just **$379.99**
Sleeveless Sweep/Brush Train Aline/Princess
<table><tr><td>BRANDS</td... |
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
describe Admin::<API key> do
dataset :users
it "should allow you to view your preferences" do
user = login_as(:non_admin)
get :edit
response.should be_success
assigned_user = assigns(:user)
assigned_user.should == user
a... |
// Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
/**
* This package contains the classes for <API key>.
* Test Infrastructure for AutoRest.
*/
package fixtures.<API key>; |
using System;
using Pulse.FS;
namespace Pulse.UI
{
public sealed class UiWpdLeafsAccessor : IUiLeafsAccessor
{
private readonly WpdArchiveListing _listing;
private readonly WpdEntry[] _leafs;
private readonly bool? _conversion;
public UiNodeType Type
{
get { r... |
import * as React from 'react';
import { DocumentCard } from './DocumentCard';
import { DocumentCardTitle } from './DocumentCardTitle';
import { DocumentCardPreview } from './DocumentCardPreview';
import { <API key> } from './<API key>';
import { <API key> } from './<API key>';
import { DocumentCardActions } from './Do... |
#include <vector>
using std::vector;
#include <iostream>
#include <cassert>
int min3(int a, int b, int c);
int minSubSum(const vector<int>& a);
int minSubRec(const vector<int>& a, int left, int right);
int main() {
vector<int> v{-2, -1, -2, 3, -4};
assert(minSubSum(v) == -6);
}
int minSubSum(const vector<int>& ... |
<?php
namespace AppBundle\Repository;
use Doctrine\ORM\EntityRepository;
class ThreadRepository extends EntityRepository
{
public function <API key>($category_id)
{
$repository = $this->getEntityManager()
->getRepository('AppBundle:Thread');
$query = $repository->createQueryBuilder('... |
layout: post
title: yesterday
date: 2011-10-24 07:54
comments: false
categories: [poems]
i remember yesterday
as if it were yesterday.
and the day before that
as if it were the day before yesterday.
but the moment i remember any day
before the day before yesterday
as if it were yesterday,
i forget the day
that was yest... |
# User info wrapper object
import logging
class User(object):
"""
Wrapper object around an entry in users.json. Behaves like a read-only dictionary if
asked, but adds some useful logic to decouple the front end from the JSON structure.
"""
_NAME_KEYS = ["display_name", "real_name"]
_DEFAULT_IMAG... |
<?php
declare(strict_types = 1);
namespace App\DTO;
use App\Entity\Interfaces\EntityInterface;
use Throwable;
interface RestDtoInterface
{
public function setId(string $id): self;
/**
* Getter method for visited setters. This is needed for dto patching.
*
* @return array<int, string>
*/
... |
package net.lightstone.net.codec;
import java.io.IOException;
import net.lightstone.msg.Message;
import org.jboss.netty.buffer.ChannelBuffer;
public abstract class MessageCodec<T extends Message> {
private final Class<T> clazz;
private final int opcode;
public MessageCodec(Class<T> clazz, int opcode) {
... |
/* IE 8 FIXES
MAIN BLUE: #99CCFF
LINK BLUE: #0066FF
NEW BLUE: #3366FF
ORANGE: #FFCC66
GREEN: #66CC00
TBL GREEN: #A7C942
RED: #CC0000
BORDER: #CCC
GREY: #999
DARK GRY: #555
*/
#rent_go{vertical-align:-3px;}
div.land-do h2{
... |
#ifndef vm_PropDesc_h
#define vm_PropDesc_h
#include "jsapi.h"
#include "NamespaceImports.h"
namespace js {
static inline JSPropertyOp
CastAsPropertyOp(JSObject *object)
{
return JS_DATA_TO_FUNC_PTR(JSPropertyOp, object);
}
static inline JSStrictPropertyOp
<API key>(JSObject *object)
{
return JS_DATA_TO_FUNC_PT... |
#define _IRR_STATIC_LIB_
#include <irrlicht.h>
#include <stdio.h>
#include <string>
#include <sstream>
#include <iostream>
#include "dc-config.h"
#include "manager_gui.h"
#include "manager_filesystem.h"
#include "manager_core.h"
#include "<API key>.h"
#include "context_application.h"
using namespace irr;
using namespac... |
test('has a constructor for initialization', () => {
// Create an Animal class
// Add a constructor that takes one param, the name.
// Set this.name to the name passed in
const animal = new Animal()
const dog = new Animal('Dog')
expect(animal.name).toBeUndefined()
expect(dog.name).toBe('Dog')
})
test('con... |
using Caliburn.Micro;
using FollowMe.Messages;
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;
namespace FollowMe.WebService
{
<summary>
RemoteControl to control the Ar.Drone indirectly.
You can start and stop the... |
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>KlusterKite: KlusterK... |
#include <iostream>
#include <seqan/graph_types.h>
#include <seqan/graph_algorithms.h>
#include <seqan/find_motif.h>
using namespace seqan;
int main ()
{
typedef unsigned int TCargo;
typedef Graph<Undirected<TCargo> > TGraph;
typedef VertexDescriptor<TGraph>::Type TVertexDescriptor;
TGraph g;
TVerte... |
var report_test_url = "reports\\<API key>.pdf";
var report_dir = "files/";
var report_extension = ".pdf";
/* report_panel */
function report_panel(panel, report_panel){//, on_search_report) {
report_panel.report_list = report_panel.find("#report_list");
report_panel.report_list_count = report_panel.find("#repor... |
* []({{ site.baseurl }}/
* []({{ site.baseurl }}/
* []({{ site.baseurl }}/
* []({{ site.baseurl }}
* []({{ site.baseurl }}
* []({{ site.baseurl }}/
* []({{ site.baseurl }}/
* []({{ site.baseurl }}/ |
package com.forgedui.editor.edit;
import java.beans.PropertyChangeEvent;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.gef.commands.Command;
import org.eclipse.gef.requests.CreateRequest;
import com.forgedui.editor.GUIEditorPlugin;
import com.forgedu... |
package com.daviancorp.android.data.database;
import android.database.Cursor;
import android.database.CursorWrapper;
import com.daviancorp.android.data.classes.Location;
/**
* A convenience class to wrap a cursor that returns rows from the "locations"
* table. The {@link getLocation()} method will give you a Location... |
<div class="col-md-2">
</div>
<div class="col-md-8" style="margin-top: 2%;">
<?php if(isset($editar)){ echo form_open('Pacientes/savePaciente'); }else{ echo form_open('Pacientes/addPaciente'); } ?>
<div class="panel panel-info">
<div class="panel-heading">
<center>
<li class=... |
var bind = require('bind');
var debug = require('debug')('uj:app');
var Entity = require('./entity');
var inherit = require('inherit');
/**
* Initialize a new `App` with `options`.
*
* @param {Object} options
*/
function App (options) {
this.defaults = {}
this.debug = debug;
Entity.call(this, options);
}
/**
... |
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta chars... |
// <API key>.js
// Free for commercial and non commercial use.
var Imported = Imported || {};
Imported.<API key> = true;
var RS = RS || {};
RS.Utils = RS.Utils || {};
(() => {
let parameters = $plugins.filter(function (i) {
return i.description.contains("<<API key>>");
});
parameters = parameters.le... |
// This file was generated, please do not modify.
namespace EmptyKeys.UserInterface.Generated {
using System;
using System.CodeDom.Compiler;
using System.Collections.ObjectModel;
using EmptyKeys.UserInterface;
using EmptyKeys.UserInterface.Charts;
using EmptyKeys.UserInterface.Data;
using E... |
#include <iostream>
#include <sstream>
#include <json.hpp>
using json = nlohmann::json;
extern "C" int <API key>(const uint8_t* data, size_t size)
{
try
{
// step 1: parse input
json j1 = json::parse(data, data + size);
try
{
// step 2: round trip
// first... |
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* @@MIDL_FILE_HEADING( ) */
#pragma warning( disable: 4049 ) /* more than 64k source lines */
/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef <API key>
#define <API key> 475
#endif
/* verify that the <rpc... |
'use strict';
var defaultEnvConfig = require('./default');
module.exports = {
db: {
uri: process.env.MONGOHQ_URL || process.env.MONGODB_URI || 'mongodb://' + (process.env.<API key> || 'localhost') + '/flipflop-test',
options: {
user: '',
pass: ''
},
// Enable mongoose debug mode
debug:... |
package bp.details;
import javax.swing.JLabel;
import javax.swing.JSpinner;
import javax.swing.SpinnerModel;
import javax.swing.SpinnerNumberModel;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import bp.model.data.Gateway;
import bp.model.util.BPKeyWords;
import bp.model.util.Controlle... |
<?php
$relato_link = url(<API key>('node/' . $node->nid), array('absolute' => TRUE));
?>
<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
<div class="cabecalho row">
<?php if ($view_mode == 'teaser'): ?>
<?php if ($display_submitted): ?>
... |
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Textures;
using osu.Game.Beatmaps;
using os... |
#!/hpf/largeprojects/ccmbio/naumenko/tools/bcbio/anaconda/bin/python
"""
Looks for a specific sample
"""
import re
import sys
import os
import os.path
sample = sys.argv[1]
family,sample_only = sample.split("_")
match = re.match('\d*',family)
if match:
prefix=str(int(match.group(0))/100)
report_path = prefix+'x/... |
#include <stdio.h>
#include <stdlib.h> /* exit, free */
#include <string.h> /* for manipulating filename */
#include "defines.h" /* type definitions and macros for flags and MAX limits */
#include "structs.h" /* structures used (needs defines.h) */
Category* cats[ MAX_TOT_CATS ]; /* array of all C... |
# -*- coding: utf-8 -*-
# Naming options for tables, intermediates and outputs are available in the wrapper.
if __name__ == "__main__":
"""
The tool is not supplied with Tweets out-of-the-box. Set 'gather_data' to True and leave it
running for a while. If loop is false it will terminate in a minute ... |
require 'swing_support/extensions'
module SwingSupport
# Class that implements ActionListener interface around a given block
class ActionListener
java_implements java.awt.event.ActionListener
def initialize &block
@listener_block = block
end
java_signature 'public void actionPerformed(ActionEv... |
import { Component, OnInit, Input } from '@angular/core';
import { LoadingController, NavController } from 'ionic-angular';
import { Geolocation } from 'ionic-native';
import { Observable } from 'rxjs/Observable';
import { <API key> } from '../origin-location/origin-location';
// import { <API key> } from '../available... |
using System.Collections.Generic;
using System.Linq;
namespace NeuralNetwork
{
struct <API key>
{
public List<List<double>> Sums { get; }
public List<List<double>> Activations { get; }
public int Prediction { get; }
public <API key>(List<List<double>> sums, List<List<double>> act... |
<!DOCTYPE html>
<!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en" dir="ltr">
<!--<![endif]-->
<!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open&id=3 (optional: ?Open&page=filename.html&id=x) -->
<!-- Created: ; Product Code... |
'use strict';
const { messages, ruleName } = require('..');
testRule({
ruleName,
config: [
{
border: 2,
'/^margin/': 1,
},
],
accept: [
{
code: 'a { margin: 0; }',
},
{
code: 'a { margin: 1px; }',
},
... |
<?php
namespace DOMArch\Url;
use DOMArch\Config;
use DOMArch\Constants;
use DOMArch\Crypto;
use DOMArch\Url;
class Encrypted extends Url
{
public static function parse($str)
{
$url = parent::parse($str);
$key = Config::global()->get('common')->get('encryptionKey');
$query = Crypto::decry... |
# coffee-module
[](https://david-dm.org/TKHuang/coffee-module#info=devDependencies)
[
* @ORM\Entity
*/
class Slot
{
/**
* @var integer $id
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedV... |
<!DOCTYPE html>
<html ng-app="todo">
<head>
<title>Angular Jet Todo e2e Test</title>
<!-- Angular -->
<script src="../../../bower_components/angular/angular.min.js"></script>
<!-- Firebase -->
<script src="../../../bower_components/jet/deploy/jet.js"></script>
<!-- AngularFire -->
<script ... |
{% extends 'base.html' %}
{% block navigation %}
<nav class="navbar navbar-default">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#<API k... |
title: "Pulse"
description: "Memory and lifetime analysis."
Memory and lifetime analysis.
Activate with `--pulse`.
Supported languages:
- C/C++/ObjC: Yes
- C#/.Net: No
- Erlang: Yes
- Java: Yes
What is Infer:Pulse?
Pulse is an interprocedural memory safety analysis. Pulse can detect, for instance, [Null dereferences](/... |
layout: post
date: 2009-05-14 10:35:00
title: St Louis Sunrise
tags: [archived-posts]
categories: archives
permalink: /:categories/:year/:month/:day/:title/
It's going to be raining the next few days, but this morning I was able to go for my walk, but the sun scudded through the clouds....
<a href="http:
<LJ user="... |
using School.Domain.Models;
namespace School.Domain.Contracts.Repositories
{
public interface IUserRepository : IRepository<User>
{
User <API key>(int id);
User Authenticate(string username, string password);
User GetByRefreshTokenId(string refreshTokenId);
}
} |
package com.cmput402w2016.t1.webapi.handler;
import com.cmput402w2016.t1.data.Segment;
import com.cmput402w2016.t1.webapi.Helper;
import com.cmput402w2016.t1.webapi.WebApi;
import com.sun.net.httpserver.HttpExchange;
import com.sun.net.httpserver.HttpHandler;
import java.util.Map;
/**
* Handler for the /segment webser... |
<div class="row">
<div class="col-lg-12">
<form method="post" action="<?php echo site_url('admin/pages/save'); ?>">
<input type="hidden" name="id" value="<?php echo !empty($page) ? $page->id : ''; ?>"/>
<section class="panel">
<header class="panel-heading"><span
... |
package com.swfarm.biz.chain.bo;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Random;
import com.swfarm.pub.framework.FormNumberCache;
public class JobExecutionState implements Serializable {
private Long id;
private String jobName;
private String jobInstanceName;
private Str... |
# Changelog
## 5.1.0 - 2021-12-22
Bug fixes
* Fix the undefined method error for non rails project due to use of many? - method from ActiveSupport. ([#1459])
[
Features
* Add array option support for have db column matcher. ([#1465])
* Add enum attributes support for validate_absence_of matcher. ([#1464])
[
[
## 5.0.0 ... |
import React from 'react';
import HomeLayout from '../layouts/HomeLayout';
import BookEditor from '../components/BookEditor';
import { get } from '../utils/request';
class BookEdit extends React.Component {
constructor(props) {
super(props);
this.state = {
book: null
};
}
... |
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<meta name="<API key>" content="yes">
<meta name="<API key>" content="yes">
<title>KISSY Combobox Demo</title>
<link ... |
package jasm
const header = `
function jasm(stdlib, foreign, heap) {
"use asm";
var pc = 0; // pseudo program counter
var sp = 0; // stack pointer
var ret = 0; // return address, for jal
var r0 = 0, r1 = 0, r2 = 0, r3 = 0; // general purpose 32-bit registers
var f0 = 0.0, f1 = 0.0, f2... |
#include "overviewpage.h"
#include "ui_overviewpage.h"
#include "bitcoinunits.h"
#include "clientmodel.h"
#include "darksend.h"
#include "darksendconfig.h"
#include "guiconstants.h"
#include "guiutil.h"
#include "optionsmodel.h"
#include "<API key>.h"
#include "<API key>.h"
#include "walletmodel.h"
#include "init.h"
#i... |
var Peer = require('../lib/Peer');
var Connection = require('../lib/Connection');
var dns = require('dns');
// get a peer from dns seed
dns.resolve('dnsseed.bluematt.me', function(err, seeds) {
// use the first peer
var peer = new Peer(seeds[0], 8608);
//Custom peer:
//var peer = new Peer('180.153.... |
require 'raven'
# This file gets copied to shared/configs and linked from
# config/initializers/raven.rb at deployment by capistrano.
Raven.configure do |config|
# Replace this URL with the one provided by getsentry.
config.dsn = 'https://<API key>:<API key>@app.getsentry.com/12422'
end |
import gzip
import glob
import numpy as np
import pandas as pd
from scipy.stats import pearsonr
from scipy.stats import spearmanr
def get_num_lines_gz(filename):
num_lines = 0
with gzip.open(filename, "r") as fp:
for line in fp:
num_lines += 1
return num_lines
def main():
"""get stat... |
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.avs.implementation;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.http.rest.SimpleResponse;
import com.azure.core.util.Context;
import com.azure.core.util.loggin... |
const WSP = require('../dist/ws')
import axios from 'axios'
import * as WS from 'ws'
const turnOn = async (port: number = 8095) => {
await axios.get('http://127.0.0.1:8085/on/' + port)
return true
}
const shutDown = async (port: number = 8095) => {
await axios.get('http://127.0.0.1:8085/off/' + port)
return tru... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>tab 2</title>
</head>
<body>
<div style="margin: auto;text-align:center; font-size:5em; margin-top: 100px">
<img src="icon_128.png" style="vertical-align:middle;"> pop-tabs
</div>
</body>
</html> |
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// copies or substantial p... |
<API key> = {1: 'a', 3: 'c', 2: 'b'}
def Handler() :
while (1) :
choice = eval(input("Enter :\t 1 - to search student name \n \t 2 - to insert new student record \n \t 0 - to quit\n"))
print(choice)
if (choice == 1) :
if (<API key>) :
phone_number = input("Enter s... |
#!/bin/bash
set -xv
## MACS0429
export ending=OCFSRI
export SUBARUDIR=/gpfs/slac/kipac/fs1/u/awright/SUBARU/
export cluster="MACS1115+01"
. ${cluster}.ini
export config="10_3"
export lens='pretty'
export ending="OCFI"
export filter="W-J-B"
./do_coadd_pretty.sh ${cluster} ${filter} 'pretty' 'none' ${ending} 'no' 'no' 2>... |
import {Utils} from "../service/Utils";
Template.registerHelper(
"displayHours", function (date) {
return new moment(date).format("H[h]");
}
);
Template.registerHelper(
"displayHoursMinute", function (date) {
return new moment(date).format("H[h]mm");
}
);
Template.registerHelper(
"<API key>", function... |
# To be PS 2.0 compatible, dont use Invoke-WebRequest
$packageName = "DotNet3_5.exe"
$downloadUrl = "https://download.microsoft.com/download/7/0/3/<API key>/dotNetFx35setup.exe"
$targetFile = "C:\tmp\$packageName"
# Download installer
Write-Host "Downloading $packageName" -ForegroundColor Green
(New-Object System.Net.W... |
// +build windows
package sers
// and slightly modified
// Use of this source code is governed by an MIT-style
import (
"fmt"
"os"
"sync"
"syscall"
"unsafe"
)
type serialPort struct {
f *os.File
fd syscall.Handle
rl sync.Mutex
wl sync.Mutex
ro *syscall.Overlapped
wo *syscall... |
DrawListBuddy
==========
A buddy for doing sort order on 2d objects in XNA/MonoGame |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <aranea/aranea.h>
#define CGI_EXT_LEN_ ((int)sizeof(CGI_EXT) - 1)
/** Buffer for CGI environment variables */
#define CGI_BUFF ... |
ESPSlider
======
ESPSlider is a custom UIView that works like a rating UISlider, it changes values by touching or by draging inside.
See it in action: https://vimeo.com/92618816
To install you can basically drag .h and .m files to your project, import and configure or you can simple add to your Podfile
ruby
pod 'ESPSli... |
<?php
namespace Soy\Phinx;
use League\CLImate\CLImate;
use Soy\Task\CliTask;
class CreateTask extends CliTask
{
use ConfigTrait;
/**
* @var string
*/
protected $name;
/**
* @param CLImate $climate
* @param Config $config
*/
public function __construct(CLImate $climate, Confi... |
"use strict";
Object.extend(Squeak.Primitives.prototype,
'<API key>', {
// methods not handled by generated ScratchPlugin
<API key>: function(argCount) {
var url = this.stackNonInteger(0).bytesAsString();
if (url == "") return false;
if (/^\/SqueakJS\//.test(url)) {
url = url... |
<?php
/* TwigBundle:Exception:traces.html.twig */
class <API key> extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array ... |
const React = require('react');
const { ViewPropTypes } = ReactNative = require('react-native');
const {
View,
Animated,
StyleSheet,
ScrollView,
Text,
Platform,
Dimensions,
I18nManager
} = ReactNative;
const Button = require('./Button');
//import { PropTypes } from 'react'
const WINDOW_WIDTH = Dimension... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using System.Threading.Tasks;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.... |
<?php
namespace jk204\SIMalliance\ASN1\FileSystem;
use FG\ASN1\Universal\OctetString;
class filePath extends OctetString
{
} |
class ExercisesController < <API key>
<API key>
before_action :set_exercise, only: [:show, :edit, :update, :destroy]
respond_to :html
def index
@exercises = Exercise.all
respond_with(@exercises)
end
def show
respond_with(@exercise)
end
def new
@exercise = Exercise.new
respond_with(@e... |
layout: post
status: publish
published: true
title: Bad Boys for Life
author:
display_name: Dylan
login: dylan
email: dylan@dylanreed.com
url: /
author_login: dylan
author_email: dylan@dylanreed.com
author_url: /
wordpress_id: 54
wordpress_url: http://dylanreed.org/?p=54
date: '2003-07-27 09:29:35 -0500'
date_g... |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>W30206_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;">
... |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>W21828_extracted</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div style="margin-left: auto; margin-right: auto; width: 800px; overflow: hidden;">
... |
#include <hip/hip_runtime_api.h>
#include "test_common.h"
int main() {
int val;
<API key> attr =
<API key>; ///< Maximum number of threads per block.
HIP_PRINT_STATUS(<API key>(NULL, attr, 0));
HIP_PRINT_STATUS(<API key>(&val, attr, 0));
HIP_PRINT_STATUS(<API key>(NULL, attr, -1));
HIP_... |
<?php
namespace Oro\Bundle\<API key>\AttributeType;
use Oro\Bundle\<API key>\AttributeType\<API key>;
use Oro\Bundle\<API key>\Model\<API key>;
/**
* Datetime attribute type
*/
class DateTimeType extends <API key>
{
/**
* {@inheritdoc}
*/
protected function <API key>(<API key> $value)
{
... |
$commandname = $MyInvocation.MyCommand.Name.Replace(".Tests.ps1", "")
Write-Host -Object "Running $PSCommandpath" -ForegroundColor Cyan
. "$PSScriptRoot\constants.ps1"
Describe "$commandname Unit Tests" -Tag "UnitTests" {
$global:object = [PSCustomObject]@{
Foo = 42
Bar = 18
Tara = 21
... |
using System;
using System.Collections.Generic;
using System.Linq;
namespace T2rkus.Spark.Core.Cli
{
public class CommandOption
{
public CommandOption(string template, CommandOptionType optionType)
{
Template = template;
OptionType = optionType;
Values = new L... |
package de.johni0702.minecraft.gui.element;
import de.johni0702.minecraft.gui.GuiRenderer;
import de.johni0702.minecraft.gui.RenderInfo;
import de.johni0702.minecraft.gui.container.GuiContainer;
import de.johni0702.minecraft.gui.utils.lwjgl.Dimension;
import de.johni0702.minecraft.gui.utils.lwjgl.Point;
import de.johni... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.