- Blog
- How to GraphQL - Ruby (Tutorial)
- Speaker deck
| Date | Event | Title | Slides | Video | Code |
| // Run this code on tldraw.com | |
| // By @steveruizok | |
| // Based on an awesome image by @cacheflowe: https://twitter.com/cacheflowe/status/1408902719130288130 | |
| new NumberControl({ | |
| label: 'radius', | |
| value: 200, | |
| min: 50, | |
| max: 500, | |
| }) |
| Date | Event | Title | Slides | Video | Code |
| module.exports = { | |
| webpack: (config) => { | |
| const webpack = require('webpack') | |
| const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin | |
| config.plugins = config.plugins || [] | |
| config.plugins.push(new webpack.ContextReplacementPlugin(/moment[/\\]locale$/, /en/)) | |
| config.plugins.push(new BundleAnalyzerPlugin()) | |
| return config | |
| } | |
| } |
(Task for GCI 2015-16) Year: 2015-16 This guide will show how to create a simple login page with Flask (a python microframework) and a sqlite3 database.
As we are creating a simple user login app we need to store 2 basic values in the database: the username and the password. In order to build the database we need to define a schema:
| name | website | genre | mtv | |||
|---|---|---|---|---|---|---|
| Adele | http://www.facebook.com/9770929278 | http://www.twitter.com/officialadele | Pop | http://www.mtv.com/artists/adele/biography | ||
| Joey + Rory | http://www.facebook.com/15044507815 | http://www.twitter.com/joeyandrory | Country | http://www.cmt.com/artists/joey-rory/biography | ||
| Draaco Aventura | http://www.facebook.com/856796091053581 | http://www.twitter.com/DraacoAventura | http://www.bandpage.com/draacoaventura | Pop Latino | http://www.mtv.com/artists/draaco-aventura/biography | |
| Justin Bieber | http://www.facebook.com/309570926875 | http://www.twitter.com/justinbieber | http://www.justinbiebermusic.com | Pop | http://www.mtv.com/artists/justin-bieber/biography | |
| Peer van Mladen | http://www.facebook.com/264487966 | http://www.twitter.com/Predrag_Jugovic | http://pejaintergroup.eu/Peer_van_Mladen.html | House | http://www.mtv.com/artists/peer-van-mladen/biography | |
| Chris Janson | http://www.facebook.com/296647641825 | http://www.twitter.com/janson_chris | http://www.chrisjanson.com | Country | http://www.cmt.com/a |
| import gspread | |
| from oauth2client.client import OAuth2Credentials | |
| import datetime | |
| import requests | |
| class OAuthGspread: | |
| scope = ['https://spreadsheets.google.com/feeds', 'https://docs.google.com/feeds'] | |
| def __init__(self, client_id, client_secret, access_token, refresh_token, ): |
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);
| /** | |
| * A linear interpolator for hexadecimal colors | |
| * @param {String} a | |
| * @param {String} b | |
| * @param {Number} amount | |
| * @example | |
| * // returns #7F7F7F | |
| * lerpColor('#000000', '#ffffff', 0.5) | |
| * @returns {String} | |
| */ |