This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
{ "urlname": "YOUR URL PATH here, for https://www.meetup.com/swmobile the urlname is swmobile" } |
// Define the sleep method and relevant paths. | |
function sleep(ms) { | |
return new Promise((resolve) => setTimeout(resolve, ms)); | |
} | |
const sleepTime = 600; | |
const count = 0; | |
// Update playlistName to desired playlist | |
const playlistName = "#####"; |
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
# LobCreatorBuilderImpl : HHH000424: Disabling contextual LOB creation as createClob() method threw error | |
# see: http://vkuzel.blogspot.de/2016/03/spring-boot-jpa-hibernate-atomikos.html | |
# Disable feature detection by this undocumented parameter. Check the org.hibernate.engine.jdbc.internal.JdbcServiceImpl.configure method for more details. | |
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults: false | |
# Because detection is disabled you have to set correct dialect by hand. | |
spring.jpa.database-platform: org.hibernate.dialect.PostgreSQL9Dialect |
import java.util.concurrent.TimeUnit | |
void convert(int secondsToConvert) { | |
long millis = secondsToConvert * 1000; | |
long hours = TimeUnit.MILLISECONDS.toHours(millis); | |
long minutes = TimeUnit.MILLISECONDS.toMinutes(millis) % TimeUnit.HOURS.toMinutes(1); | |
long seconds = TimeUnit.MILLISECONDS.toSeconds(millis) % TimeUnit.MINUTES.toSeconds(1); | |
String format = String.format("%02d:%02d:%02d", Math.abs(hours), Math.abs(minutes), Math.abs(seconds)); | |
using System.IO; | |
using UnityEngine; | |
using UnityEditor; | |
using UnityEditor.iOS.Xcode; | |
using UnityEditor.Callbacks; | |
using System.Collections; | |
public class XcodeSettingsPostProcesser | |
{ |
''' | |
This is an example of how to send data to Slack webhooks in Python with the | |
requests module. | |
Detailed documentation of Slack Incoming Webhooks: | |
https://api.slack.com/incoming-webhooks | |
''' | |
import json | |
import requests |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
# This specifies the deployment process on AWS ElasticBeanstalk for a Django app using npm and Postgres. | |
# | |
# The target environment should have access to a Postgres Database through environment variables. | |
# The environment can be setup using `eb create --database.engine=postgres` | |
# The necessary environment variables to access the database will be automatically defined on the | |
# instances of that environment. | |
# | |
# In addition, the target environment should define environment variables (django secret key ...). | |
# They can be manually defined using the AWS ElasticBeanstalk interface on the web. | |
# They can also be specified when creating the environment from command line, for example: |