Skip to content
"""The objective of this exploration is to evaluate the relationship between reaction time and sleep deprivation, more specifically:
- Is our reaction time primarily driven by the amount of sleep we have had? And if yes, what are the parameters of the relationship?
- Do reaction times evolve consistently from one individual to another as sleep deprivation increases? In other words, are we equal in front of sleep deprivation?
The input dataset is a data frame with 180 observations on the following 3 variables:
- Reaction: average reaction time (ms)
- Days: number of days of sleep deprivation
- Subject: subject number on which the observation was made.
View ner.ps1
formats = slashTags, inlineXML, xml, tsv, tabbedEntities
View validar_rut.php
* Comprueba si el rut ingresado es valido
* @param $rut string
* @return true o false
function valida_rut($rut)
View update_xcode_plugins.rb
# You might need these
# require 'pathname'
# require 'fileutils'
# In case we want to also print the already updated plug-ins
# For a bit of flavor
red = "\e[31m"
green = "\e[32m"
View Jenkins tweaks
// ==UserScript==
// @name Jenkins Tweaks
// @namespace work
// @description Tweaks for UI
// @include **
// ==/UserScript==
function uiTweaksConsole() {
// Change color of console output
jQuery("#out").css("background-color", "#000").css("color", "#0E0");
Follow this step-by-step guide to install Ghost blog 0.7 ( on Ubuntu,
with Nginx as a reverse proxy and the ModSecurity web application firewall. This guide is based on
the blog post of Herman Stevens, with important fixes and optimizations added by me (Lin Song).
Link to my tutorial:
Original post by Herman Stevens:
Special thanks to these people for help on improving this guide:
View wrapping-and-indentation-opinions.swift
enum StringPaddingStyle {case Left, Right}
func padStringToLength(
sourceString: String,
destinationCount: Int,
paddingStyle: StringPaddingStyle = .Left,
paddingCharacter: Character = " "
) -> String {
let padCount = destinationCount - sourceString.characters.count,
padString = String(count: padCount, repeatedValue: paddingCharacter)
#!/usr/env/bin python
# -*- coding: utf8 -*-
import random
import requests
import goless
MIN = 10000
MAX = 99999
View FilesSnapshot.xml
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="" xmlns:xsi="">
<file path="C:\ProgramData\chocolatey\lib\fxgqlc\fxgqlc.nupkg" checksum="76610521049FA4CF3AB6BD8DE4DC8FB9" />
<file path="C:\ProgramData\chocolatey\lib\fxgqlc\tools\Antlr3.Runtime.dll" checksum="12B74420B87ECFBBA33B6ADA0AB07FF2" />
<file path="C:\ProgramData\chocolatey\lib\fxgqlc\tools\chocolateyinstall.ps1" checksum="F4DFC9B17EA5E80C2A803F526F1ACAD2" />
<file path="C:\ProgramData\chocolatey\lib\fxgqlc\tools\chocolateyuninstall.ps1" checksum="193926AB2BC046B17310721DF42D5A9F" />
<file path="C:\ProgramData\chocolatey\lib\fxgqlc\tools\FxGqlC License.txt" checksum="D32239BCB673463AB874E80D47FAE504" />
<file path="C:\ProgramData\chocolatey\lib\fxgqlc\tools\FxGqlC-Win.dll" checksum="1A9EA4C9C7A51AEE2EBBA03307DD2B97" />
<file path="C:\ProgramData\chocolatey\lib\fxgqlc\tools\FxGqlC.exe" checksum="20D2DB03DB13B90E9D0F5589689F7AF9
View gist:e13e6043bb6585fde14b
function doGet() {
// you only need to modify the next four lines of this code then publish web app
var email = 'email address'; //what you use to login to nest
var password = 'password' ////what you use to login to nest
var CityID = 'City Code'; //Openweather prefers the 6 digit city code to the zipcode. Find your city and check the url for the 6 digit city id code.
var AppID = 'Your OpenweatherMapAppID' // get your free Openweather AppID and enter it here
var sheetid = 'sheet id'; //on your spreadsheet url its everything between /d/ <sheet id> /edit
/* to publish web app just:
1) Make sure the four variables are set above before you publish
Something went wrong with that request. Please try again.