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
// example | |
var Foo; | |
Foo = { | |
_debugMode: true, | |
init: function () { | |
Foo.log('initialising blah blah') | |
}, |
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 { NgModule, OnInit } from '@angular/core'; | |
import { Routes, RouterModule, Router } from '@angular/router'; | |
import { HomeWelcomeComponent } from './home-welcome/home-welcome.component'; | |
const routes: Routes = [ | |
{ path: 'welcome', component: HomeWelcomeComponent } | |
]; | |
@NgModule({ |
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
# http://lite.ip2location.com/ | |
# http://stackoverflow.com/questions/3650006/get-country-of-ip-address-with-php | |
# IP Number = 16777216*w + 65536*x + 256*y + z | |
# where IP Address = w.x.y.z | |
# | |
# To reverse IP number to IP address, | |
# w = int ( IP Number / 16777216 ) % 256 | |
# x = int ( IP Number / 65536 ) % 256 | |
# y = int ( IP Number / 256 ) % 256 |
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
# set the base image to Debian | |
# https://hub.docker.com/_/debian/ | |
FROM debian:latest | |
# replace shell with bash so we can source files | |
RUN rm /bin/sh && ln -s /bin/bash /bin/sh | |
# update the repository sources list | |
# and install dependencies | |
RUN apt-get update \ |
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 | |
use Illuminate\Support\Facades\Log; | |
use Symfony\Component\HttpFoundation\File\UploadedFile; | |
/** | |
* stream - Handle raw input stream | |
* | |
* LICENSE: This source file is subject to version 3.01 of the GPL license | |
* that is available through the world-wide-web at the following URI: |
NewerOlder