Skip to content

Instantly share code, notes, and snippets.

View fcaldarelli's full-sized avatar

Fabrizio Caldarelli fcaldarelli

View GitHub Profile
@fcaldarelli
fcaldarelli / ExpoIconSelector.js
Created August 17, 2019 21:59
Expo Icon Selector for React Native
import React from "react";
import { View } from "react-native";
import { AntDesign, Entypo, EvilIcons, Feather, FontAwesome, FontAwesome5, Foundation, Ionicons, MaterialCommunityIcons, MaterialIcons, Octicons, SimpleLineIcons, Zocial } from '@expo/vector-icons';
export default class ExpoIconSelector extends React.Component {
render() {
return (
<div class="col-md-4 col-xs-12">
<div class="form-group" v-bind:class="{ 'has-error' : checkFieldError(pacchetto, 'nome') }">
<label class="control-label">Nome</label>
<input type="text" class="form-control" v-model="pacchetto.nome" />
<div class="help-block" v-html="textFieldError(pacchetto, 'nome')"></div>
</div>
</div>
<?php
namespace backend\controllers\api;
use Yii;
use yii\web\Controller;
class BaseController extends Controller
{
protected function readStdIn()
{
<?php
namespace console\controllers;
use Yii;
use yii\console\Controller;
class RbacController extends Controller
{
private $auth;
SELECT DISTINCT TABLE_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME IN ('NOME_CAMPO') AND TABLE_SCHEMA='DATABASE_TEST'
import UIKit
import AVFoundation
class ViewController: UIViewController, AVCaptureFileOutputRecordingDelegate {
@IBOutlet weak var camPreview: UIView!
let cameraButton = UIView()
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
guard let headerView = tableView.tableHeaderView else {
return
}
// The table view header is created with the frame size set in
// the Storyboard. Calculate the new size and reset the header
// view to trigger the layout.
1) Go to https://github.com/settings/tokens
2) Click "Generate new token"
3) Input token description e.g. "Sourcetree Mac Token", select "repo" checkbox, and click "Generate token"
4) Copy the generated token
5) Add your GitHub account to Sourcetree, but now rather than using OAuth, select Basic authentication
6) Input your username
7) Paste the generated token as passwor
https://accounts.google.com/DisplayUnlockCaptcha