Skip to content

Instantly share code, notes, and snippets.

View liposo's full-sized avatar

Felipe liposo

  • Limassol, Cyprus
View GitHub Profile
@liposo
liposo / NESTodo.svelte
Last active February 4, 2021 10:46
Basis TODO list using NES.css and Svelte
<script>
import { fade, fly } from 'svelte/transition';
let uid = 1;
let newTodo = "";
let todos = [
{ id: uid++, done: true, task: 'Test Svelte' },
{ id: uid++, done: true, task: 'Uset NES.css' },
{ id: uid++, done: true, task: 'Implement TODO list layout' },
@liposo
liposo / ListExample.svelte
Last active March 10, 2020 11:05
Example of using fetch with await block in Svelte
<script>
$: rates = [];
async function fetchData() {
const res = await fetch("https://api.exchangeratesapi.io/latest");
const data = await res.json();
if (res.ok) {
for (const [key, value] of Object.entries(data.rates)) {
rates.push({currency: key, value: value});
@liposo
liposo / SheetURL.gs
Last active May 13, 2019 14:00
Add values and retrieve as JSON from a Google Sheet
function doGet(e) {
var lock = LockService.getPublicLock();
lock.waitLock(30000);
var file = SpreadsheetApp.openByUrl(e.parameter.sheetUrl);
//Select the first page in the Sheet document
var sheet = file.getSheets()[0];
// if(e.parameter.sheetName) {
// sheet = file.getSheetByName(unescape(e.parameter.sheetName));
// }
@liposo
liposo / index.html
Created December 11, 2018 12:16
Snake Game in Dart
<div id="wrapper">
<canvas id="canvas" width="450" height="450"></canvas>
</div>
@liposo
liposo / TextLink.java
Created June 27, 2018 19:52
Get urls from text and make then clickable (Android)
@liposo
liposo / turbolink-fix.coffee
Created February 28, 2017 19:51
Turbolink-fix Rails 5