Skip to content

Instantly share code, notes, and snippets.

@arcin
arcin / flutter.md
Created March 14, 2023 08:05 — forked from matteocrippa/flutter.md
Flutter Cheatsheet

Flutter

A quick cheatsheet of useful snippet for Flutter

Widget

A widget is the basic type of controller in Flutter Material. There are two type of basic Widget we can extend our classes: StatefulWidget or StatelessWidget.

Stateful

StatefulWidget are all the widget that interally have a dynamic value that can change during usage. It can receive an input value in the constructor or reference to functions. You need to create two classes like:

@arcin
arcin / user.js
Last active August 14, 2020 01:24
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
@arcin
arcin / 0.2.1-boggle_class_from_methods.rb
Last active January 2, 2016 11:39 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1 boggle class challenge
class BoggleBoard
attr_reader :board
def initialize(board)
@board = board
end
def create_word(*coords)
coords.map { |coord| @board[coord.first][coord.last]}.join("")
end
@arcin
arcin / variables3.rb
Created November 25, 2013 11:50
CodingAsleep: Variables using ruby
# Wrong way to define a variable.
alphabet = 1234567890
# Correct way to define a variable.
my_name = "Charles"
@arcin
arcin / variables2.rb
Created November 25, 2013 11:49
CodingAsleep: Variables using ruby
# Steps to defining a variable.
# 1. Give it a name
# 2. Point to something using the equal sign.
secret = 4815162342
@arcin
arcin / variables1.rb
Created November 25, 2013 11:49
CodingAsleep: Variables using ruby
puts "Ice, Bank, Mice, Elf"
puts "Ice, Bank, Mice, Elf"
puts "Ice, Bank, Mice, Elf"
# Ice, Bank, Mice, Elf
# Ice, Bank, Mice, Elf
# Ice, Bank, Mice, Elf
# [Finished in 0.0s]
@arcin
arcin / test.rb
Created November 22, 2013 14:12
Test: This is a test
# this is a test
Class Test
def initialize(test)
@test = test
end
end