Skip to content

Instantly share code, notes, and snippets.

@y-gagar1n
y-gagar1n / gist:8469484
Created January 17, 2014 06:57
DateTime format patterns
DateTime.ToString() Patterns
All the patterns:
0 MM/dd/yyyy 08/22/2006
1 dddd, dd MMMM yyyy Tuesday, 22 August 2006
2 dddd, dd MMMM yyyy HH:mm Tuesday, 22 August 2006 06:30
3 dddd, dd MMMM yyyy hh:mm tt Tuesday, 22 August 2006 06:30 AM
4 dddd, dd MMMM yyyy H:mm Tuesday, 22 August 2006 6:30
5 dddd, dd MMMM yyyy h:mm tt Tuesday, 22 August 2006 6:30 AM

Permissions Table (mnt Smart)

Name type:web type:privileged type:certified
geolocation ! ! !
geolocation-noprompt
mmi-test
camera !
alarms
tcp-socket
udp-socket
jQuery(document).ready(function($) {
// Start ready block
// if ($.fn.datetimepicker) {
// $('#incident_date_time').datetimepicker({
// format: 'Y-m-d H:i',
// step: 5
// });
// }
@alfajrimutawadhi
alfajrimutawadhi / deploy-laravel-id.md
Last active April 24, 2024 08:50
Cara deploy Laravel ke server (VPS)

Cara deploy aplikasi Laravel ke server (VPS)


Beberapa hal yang kamu perlukan :

  • project Laravel
  • VPS / Virtual Private Server
  • Domain (jika punya)

Berikut cara deploy aplikasi Laravel kamu ke server

  1. Letakkan project Laravelmu ke source code management (github/gitlab/yang lain)
    Disini saya akan menggunakan repository company-management saya.
@EDM115
EDM115 / sudo on PowerShell.md
Created April 24, 2024 08:45
sudo on PowerShell

sudo on PowerShell

Microsoft plans on adding a sudo like command on windows (info and controversy)
But what if... you could already use it ? 🤭

Prerequisites

  • Have the newer version of powershell installed.
    If you plan on using the old one, replace pwsh with powershell
@aradalvand
aradalvand / DockerfileForSvelteKit.md
Last active April 24, 2024 08:49
Dockerfile and .dockerignore for SvelteKit:

*This Dockerfile is intended for SvelteKit applications that use adapter-node. So, the Dockerfile below assumes that you have already installed and configured the adapter.

Dockerfile:

FROM node:18-alpine AS builder
WORKDIR /app
COPY package*.json .
RUN npm ci
COPY . .
RUN npm run build
@falatop
falatop / hello.c
Created April 24, 2024 08:48
Mon Hello World
int main()
{
printf("Hello World");
return 0;
}
@noobnooc
noobnooc / cloudflare-worker-proxy.js
Last active April 24, 2024 08:47
cloudflare-worker-proxy
// Website you intended to retrieve for users.
const upstream = 'api.openai.com'
// Custom pathname for the upstream website.
const upstream_path = '/'
// Website you intended to retrieve for users using mobile devices.
const upstream_mobile = upstream
// Countries and regions where you wish to suspend your service.
@guillaumevincent
guillaumevincent / README.md
Last active April 24, 2024 08:44
Windows Service with Python 3.5 and pyinstaller
@Pusnow
Pusnow / CS 분야 우수 학술대회 목록.csv
Last active April 24, 2024 08:42
CS 분야 우수 학술대회 목록
약자 한국정보과학회 (2020) BK21플러스 IF (2018) KAIST CS (2022) SNU CSE (2023.9) POSTECH CSE (2023.10) 평균 (정규화) 학회명 DBLP Key
AAAI 최우수 4 O O 최우수 1.00 AAAI Conference on Artificial Intelligence (AAAI) conf/aaai
AAMAS 우수 2 0.20 International Joint Conference on Autonomous Agents & Multiagent Systems (AAMAS) conf/atal
ACCV 우수 1 우수 0.25 Asian Conference on Computer Vision (ACCV) conf/accv
ACL 최우수 4 O O 최우수 1.00 Annual Meeting of the Association for Computational Linguistics (ACL) conf/acl
ACL Findings 우수 0.10 Findings of ACL series/findacl
ACSAC 우수 2 우수 0.30 Annual Computer Security Applications Conference (ACSAC) conf/acsac
AIED 우수 0.10 International Conference on Artificial Intelligence in Education (AIED) conf/aied
AISTATS 우수 1 우수 0.25 International Conference on Artificial Intelligence and Statistics (AISTATS) conf/aistats
ANCS 우수 1 우수 0.25 Symposium on Architectures for Networking and Communications Systems (ANCS) conf/ancs