<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
import { Storage } from 'simple-storage-tools'; | |
enum StorageKeys { | |
KEY1 = 'fist-storage', | |
KEY2 = 'second-storage', | |
localKey = 'key-for-local-storage', | |
sessionKey = 'key-for-session-storage' | |
} | |
/** |
<h1>Angular 2 Recursive List</h1> | |
<ul> | |
<ng-template #recursiveList let-list> | |
<li *ngFor="let item of list"> | |
{{item.title}} | |
<ul *ngIf="item.children.length > 0"> | |
<ng-container *ngTemplateOutlet="recursiveList; context:{ $implicit: item.children }"></ng-container> | |
</ul> | |
</li> | |
</ng-template> |
import { Component, OnInit, OnDestroy } from '@angular/core'; | |
import { Router } from '@angular/router'; | |
import { LoginService, AzureService } from '../services' | |
import { User, LiveSession } from '../models' | |
import { SharedService } from "app/services/shared.service"; | |
//declare var SimpleWebRTC; | |
declare var io; | |
declare var conference; | |
@Component({ |
java -jar -XmxSIZEm -XmsSIZEm -XX:+AggressiveHeap -server -XX:+UseLargePages -XX:+UseCondCardMark -XX:+UseParallelGC the-jar-file.jar |
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
# Don't add passphrase | |
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
cat jwtRS256.key | |
cat jwtRS256.key.pub |
# INSTRUCTION: | |
# Place this file next to the app's index.html. | |
# There are two options for the redirection: | |
# Option 1) (default): Your app is directly on the root of the domain. | |
# Option 2): Your app is placed in a subfolder from the root of the domain. | |
# | |
# If you have issues with browser caching you can uncomment the BROWSER CACHING part | |
# For new versions of this Gist go to: | |
# https://gist.github.com/julianpoemp/bcf277cb56d2420cc53ec630a04a3566 |
import * as moment from 'jalali-moment'; | |
export class DateHelper { | |
static monthsNames = [ | |
'فروردین', | |
'اردیبهشت', | |
'خرداد', | |
'تیر', | |
'مرداد', | |
'شهریور', |
Translations: Korean (by Yongwoo Lee)
Laravel has a powerful Inversion of Control (IoC) / Dependency Injection (DI) Container. Unfortunately the official documentation doesn't cover all of the available functionality, so I decided to experiment with it and document it for myself. The following is based on Laravel 5.4.26 - other versions may vary.
I won't attempt to explain the principles behind DI / IoC here - if you're not familiar with them you might want to read What is Dependency Injection? by Fabien Potencier (creator of the Symfony framework).
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
using GeoTimeZone; // Import from Nuget package "GeoTimeZone" (https://github.com/mj1856/GeoTimeZone) | |
using TimeZoneConverter; // Import from Nuget package "TimeZoneConverter" (https://github.com/mj1856/TimeZoneConverter) | |
namespace AirportTimeZones.DataBuilder | |
{ |