One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
origin d: | |
[5 7 6 2 4] | |
b: | |
[[ 1. 0. 0. 0. 0.] | |
[ 0. 1. 0. 0. 0.] | |
[ 0. 0. 1. 0. 0.] | |
[ 0. 0. 0. 1. 0.] | |
[ 0. 0. 0. 0. 1.] | |
[ 1. 1. 1. 1. 1.] | |
[ 1. 2. 3. 4. 5.] |
# /etc/systemd/system/selenium.service | |
# assumes selenium server and chromedriver exist in the following paths: | |
# /var/selenium/selenium-server-standalone-2.45.0.jar | |
# /var/selenium/chromedriver | |
[Unit] | |
Description=Selenium Standalone Server | |
Requires=xvfb.service | |
After=xvfb.service |
#!/bin/bash | |
cartella="/var/myfolder" | |
# update the file | |
curl -i -X PUT -H 'Authorization: token 4d013330xxxxxxxxxxxxxx' -d "{\"path\": \"mattei.csv\", \ | |
\"message\": \"update\", \"content\": \"$(openssl base64 -A -in $cartella/mattei.csv)\", \"branch\": \"master\",\ | |
\"sha\": $(curl -X GET https://api.github.com/repos/username/repo/contents/mattei.csv | jq .sha)}" \ | |
https://api.github.com/repos/username/repo/contents/mattei.csv |
<?php | |
namespace app\rest; | |
use yii\filters\AccessControl; | |
use yii\filters\auth\CompositeAuth; | |
use app\components\HeaderParamAuth; | |
/** | |
* Description of ActiveController |
<?php | |
/* | |
* In configuration file | |
* ... | |
* 'as AccessBehavior' => [ | |
* 'class' => 'app\components\AccessBehavior', | |
* 'allowedRoutes' => [ | |
* '/', | |
* ['/user/registration/register'], |
<?php | |
if (file_exists($_SERVER['SCRIPT_FILENAME'])) { | |
return false; | |
} | |
$_SERVER['DOCUMENT_ROOT'] = empty($_SERVER['DOCUMENT_ROOT']) ? $_SERVER['PWD'] . '/www' : $_SERVER['DOCUMENT_ROOT']; | |
$htaccess = $_SERVER['DOCUMENT_ROOT'] . '/.htaccess'; | |
$rewrites = array(); | |
if (file_exists($htaccess)) { | |
$fp = fopen($htaccess, "r"); |
#include <stdio.h> | |
#include <assert.h> | |
#include <stdlib.h> | |
#include <errno.h> | |
#include <string.h> | |
#define MAX_DATA 512 | |
#define MAX_ROWS 100 | |
struct Address { |
/** | |
* A simple forEach() implementation for Arrays, Objects and NodeLists | |
* @private | |
* @param {Array|Object|NodeList} collection Collection of items to iterate | |
* @param {Function} callback Callback function for each iteration | |
* @param {Array|Object|NodeList} scope Object/NodeList/Array that forEach is iterating over (aka `this`) | |
*/ | |
var forEach = function (collection, callback, scope) { | |
if (Object.prototype.toString.call(collection) === '[object Object]') { | |
for (var prop in collection) { |
package au.id.alexn; | |
import android.content.Context; | |
import android.util.AttributeSet; | |
import android.util.Log; | |
import android.view.MotionEvent; | |
import android.view.ScaleGestureDetector; | |
import android.view.View; | |
import android.widget.FrameLayout; |