start new:
tmux
start new with session name:
tmux new -s myname
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
| from time import sleep | |
| from tornado.httpserver import HTTPServer | |
| from tornado.ioloop import IOLoop | |
| from tornado.web import Application, asynchronous, RequestHandler | |
| from multiprocessing.pool import ThreadPool | |
| _workers = ThreadPool(10) | |
| def run_background(func, callback, args=(), kwds={}): | |
| def _callback(result): |
| * | |
| !.gitignore | |
| !alternative.yaml | |
| !*.custom.yaml | |
| !kaomoji.*.yaml |
| # GDC Vault videos can't be watched on mobile devices and this is a very sad thing indeed! | |
| # (Note: this has changed for GDC2013, which lets you watch raw MP4 streams. Kudos!) | |
| # This script is designed to circumvent this by downloading the lecture and slideshow | |
| # videos which can then be re-encoded into whatever format you wish. Obviously, you | |
| # won't be able to do this without access to the Vault. This is strictly for the | |
| # convenience of legitimate Vault users! | |
| # Note: this code is rather flimsy and was written as fast as possible for my own personal use. | |
| # The code only works for the most recent GDC Vault videos, since they all use the same player | |
| # format. If the XML format used to run the player is changed (as it has in the past), the code |
| <?php | |
| use Psr\Log\LoggerInterface; | |
| /** | |
| * Assembles and dispatches the SOAP request body XML and returns the | |
| * Response body XML from the vendor API. | |
| */ | |
| class Request | |
| { |
Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative
float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
| //Copyright (c) 2014 Tilman Schmidt (@KeyMaster_) | |
| //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, including without limitation the rights | |
| //to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| //copies of the Software, and to permit persons to whom the Software is | |
| //furnished to do so, subject to the following conditions: | |
| //The above copyright notice and this permission notice shall be included in |
| #! /bin/bash | |
| # | |
| # Cheap technique. :) by YoungJoo.Kim <http://vozlt.com> | |
| # | |
| # | |
| SNOOP_ID=$1 | |
| SSHD_PPID=$(pgrep -o sshd) | |
| MATCH_ID= | |
| MATCH_PID= |
| /** | |
| * K.jpg's OpenSimplex 2, smooth variant ("SuperSimplex") | |
| * | |
| * More language ports, as well as legacy 2014 OpenSimplex, can be found here: | |
| * https://github.com/KdotJPG/OpenSimplex2 | |
| */ | |
| public class OpenSimplex2S { | |
| private static final long PRIME_X = 0x5205402B9270C86FL; |