This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func createExportString() -> String { | |
var name : String? | |
var age : String? | |
var mobile : String? | |
var email : String? | |
var promo_crayola_bunding : Int16? | |
var promo_zip_it : Int16? | |
var promo_none : Int16? | |
var created : NSDate? = NSDate() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Person | |
{ | |
protected $firstName; | |
protected $lastName; | |
/** | |
* Magic method call for setter and getter | |
* | |
* @param $methodName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import express, { Response, Request } from 'express'; | |
import fs from 'fs'; | |
import { IRouterSettings } from './interfaces/IRouterSettings'; | |
import Logger from './utils/logger'; | |
const router = express.Router(); | |
// loop through all the routes | |
const controllersPath = `${__dirname}/controllers`; | |
const controllers = fs.readdirSync(controllersPath); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
// Amended by HashLips | |
/** | |
!Disclaimer! | |
These contracts have been used to create tutorials, | |
and was created for the purpose to teach people | |
how to create smart contracts on the blockchain. | |
please review this code on your own before using any of | |
the following code for production. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { PrismaClient } from '@prisma/client'; | |
declare global { | |
// allow global `var` declarations | |
// eslint-disable-next-line no-var | |
var prisma: PrismaClient | undefined; | |
} | |
export const prisma = | |
global.prisma || |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends Area2D | |
export var speed = 400.0 | |
var screen_size = Vector2.ZERO | |
# Called when the node enters the scene tree for the first time. | |
func _ready(): | |
screen_size = get_viewport_rect().size | |
print(screen_size) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func _process(delta): | |
var direction = Vector2.ZERO | |
if Input.is_action_pressed("move_right"): | |
direction.x += 1 | |
if Input.is_action_pressed("move_left"): | |
direction.x -= 1 | |
if Input.is_action_pressed("move_down"): | |
direction.y += 1 | |
if Input.is_action_pressed("move_up"): | |
direction.y -= 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var screen_size = Vector2.ZERO | |
# Called when the node enters the scene tree for the first time. | |
func _ready(): | |
screen_size = get_viewport_rect().size | |
print(screen_size) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## create user group | |
sudo groupadd laravel | |
## add current user to group | |
sudo usermod -a -G www-data $USER | |
## add web server to group | |
sudo usermod -a -G www-data laravel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |
NewerOlder