This file contains hidden or 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 | |
ini_set("display_errors", 1); | |
date_default_timezone_set('Europe/Bucharest'); | |
$im = imagecreatefromjpeg('ctp.jpg'); | |
$font = 'Roboto-Regular.ttf'; | |
// Ex: 17:01 in 11/12/2016 | |
$text = date('H:i \i\n d/m/Y', strtotime('+ 1 day -4 minute')); | |
$color = imagecolorallocate($im, 0, 0, 0); |
This file contains hidden or 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 java.util.Scanner; | |
import java.util.Random; | |
public class Shindra { | |
public static int NR_CARDS = 9; | |
public static int [][] tab = new int[4][4]; | |
public static int [][] _humanTab = new int[4][4]; | |
public static int [][] _computerTab = new int[4][4]; |
This file contains hidden or 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 | |
header('Strict-Transport-Security: max-age=63072000; includeSubDomains; preload'); // if ssl enabled | |
header('X-Frame-Options: SAMEORIGIN'); | |
header('X-XSS-Protection: 1; mode=block'); | |
header('X-Content-Type-Options: nosniff'); | |
header('Content-Type: text/html; charset=utf-8'); | |
header('Access-Control-Allow-Origin: '.$_SERVER['HTTP_ORIGIN']); | |
header('Expect-CT: max-age=7776000, enforce'); | |
header('Referrer-Policy: origin-when-cross-origin'); |
This file contains hidden or 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 s2t(s) { return app.stringIDToTypeID(s); } | |
function t2s(t) { return app.typeIDToStringID(t); } | |
// Select the Tool corresponding to the passed stringID | |
function selectTool(stringID){ | |
var d = new ActionDescriptor(); | |
var r = new ActionReference(); | |
r.putClass( s2t(stringID) ); | |
d.putReference( s2t("target"), r); | |
d.putBoolean( s2t("dontRecord"), true ); |
This file contains hidden or 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
// start the node server by doing: `node insta_login_check.js` | |
const puppeteer = require('puppeteer'); | |
const delay = require('delay'); | |
const user = { | |
username: '[email protected]', | |
password: 'passw0rd', | |
}; |
This file contains hidden or 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 | |
function arrayToExcelDownload($data, $filename = FALSE) { | |
if(!isset($filename)) { | |
$filename = 'crm_export_' . date('m.d.Y') . 'xlsx'; | |
} | |
$excel = new PHPExcel(); | |
$excel->setActiveSheetIndex(0); |
This file contains hidden or 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
FROM php:7.1-apache | |
ARG GITHUB_TOKEN=x | |
# Install packages | |
RUN apt-get update && apt-get install -y \ | |
git \ | |
nano | |
# PHP Extensions |
This file contains hidden or 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
version: "3.1" | |
services: | |
web: | |
build: . | |
container_name: samsa | |
restart: always | |
volumes: | |
- .:/var/www/html | |
depends_on: |
This file contains hidden or 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
name: Node.js CI | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: |
This file contains hidden or 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
module.exports = { | |
parser: '@typescript-eslint/parser', | |
parserOptions: { | |
project: 'tsconfig.json', | |
sourceType: 'module', | |
}, | |
plugins: ['@typescript-eslint/eslint-plugin', 'unused-imports', 'import'], | |
extends: [ | |
'plugin:@typescript-eslint/recommended', | |
'plugin:prettier/recommended', |
OlderNewer