This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Qualtrics.SurveyEngine.addOnload(function() | |
{ | |
Qualtrics.SurveyEngine.setEmbeddedData('money', 10) | |
}); | |
Qualtrics.SurveyEngine.addOnReady(function() | |
{ | |
function generateRandomNumber(boxDiv, mean, sd) { | |
const randomNumber = generateRandomNormal(mean, sd); | |
const roundedNumber = Math.round(randomNumber * 100) / 100; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('BASEPATH') or exit('No direct script access allowed'); | |
class Dashboard extends CI_Controller | |
{ | |
public function __construct() | |
{ | |
parent::__construct(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<link rel="icon" href="/docs/4.0/assets/img/favicons/favicon.ico"> | |
<title>Fixed top navbar example for Bootstrap</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import shuffle | |
from os.path import isfile, join | |
from os import listdir | |
import os | |
import tweepy | |
import time | |
auth = tweepy.OAuthHandler('xxx', 'xxx') | |
auth.set_access_token('xxx', 'xxx') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Following command should list the 4 TB external hard drive. At the bottom you will see external hdd info and after that /dev/sdc or something like that: | |
sfdisk -l | |
# We need to create one partition of 4 TB so that it can be mounted. For this we need parted command with our external hdd parameter: | |
parted /dev/sdc | |
# you will enter into parted app. Enter mklabel to rewrite partition table of external drive i.e. /dev/sdc | |
(parted) mklabel gpt | |
# set unit to TB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Flattens an arbitrary nested arrays of integers | |
* e.g. [[1,2,[3]],4] -> [1,2,3,4] | |
* | |
* @param arr The input array | |
* @param responseArr The output array we will be filling via recursion | |
* @returns {Array} The flattened array | |
*/ | |
function flattenArray(arr, responseArr) { |