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 { useThree } from '@react-three/fiber' | |
import { gsap } from 'gsap' | |
import { useGSAP } from '@gsap/react' | |
export default function AnimateCamera() { | |
// Accessing camera from Three.js | |
const { camera } = useThree() | |
useGSAP(() => { // The new hook will take care of context and life cicle. | |
gsap.fromTo( // Creates the animation |
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 smpp = require('smpp'); | |
var session = smpp.connect('smpp://SEVER_IP'); | |
var request = require('request'); | |
var connected = false; | |
session.on('connect', function () { | |
connected = true; |
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
function lara(){ | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
NC='\033[0m' | |
printf "${GREEN}What is the name of the project:${NC}" | |
read PROJECT_NAME | |
if [ ! -z $PROJECT_NAME ]; # Check if project name is set. | |
then |
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
#!/usr/bin/env bash | |
sudo apt-get update | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root' | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root' | |
sudo apt-get install -y vim curl python-software-properties | |
sudo add-apt-repository -y ppa:ondrej/php5 | |
sudo apt-get update |
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 namespace App\Http\Middleware; | |
use Carbon\Carbon; | |
use Closure; | |
use Illuminate\Cache\Repository as Cache; | |
use Illuminate\Support\Facades\Response; | |
use Illuminate\Support\Facades\Session; | |
class PreventReplayAttack | |
{ |
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
// Required npm packages: gulp, gulp-shell, gulp-prompt | |
// Usage: gulp db:create | |
var util = require('util'); | |
var gulp = require('gulp'); | |
var shell = require('gulp-shell'); | |
var prompt = require('gulp-prompt'); | |
gulp.task('db:create', function() { | |
gulp.src('').pipe( |