- Python 3
- Pip 3
$ brew install python3
import * as path from 'path'; | |
var absoluteBasePath = path.resolve(process.cwd(), '../../../../../'); | |
var absoluteBasePath = path.resolve(process.cwd()).split(path.sep + '.meteor')[0]; | |
import SwiftUI | |
import CoreData | |
let appTransactionAuthorName = "app" | |
@main | |
struct ZenJournalApp: App { | |
var body: some Scene { | |
WindowGroup { |
from django.contrib import admin | |
from polls.models import Poll, Choice | |
from django.contrib.auth.models import User | |
from django.contrib.admin import AdminSite | |
from polls.views import index | |
class MyAdminSite(AdminSite): |
As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.
var options = { | |
type: data.type || 'date', | |
minDate: new Date(), | |
// displayMode:'dialog', | |
showHeader: false, | |
// maxDate: '2018-12-31', | |
// dateFormat: 'yyyy-mm-dd', | |
isRange: false, | |
// showTodayButton: true, | |
// enableYearSwitch: true |
import { | |
WebApp | |
} from 'meteor/webapp' | |
import bodyParser from 'body-parser' | |
const fs = require('fs'); | |
const fse = require('fs-extra') | |
const path = require('path'); | |
const multer = require('multer'); |
openssl key pair generate | |
//client - using meteor.js | |
const nodersa = Npm.require('node-rsa'); | |
import { HTTP } from 'meteor/http'; | |
const syncPost = Meteor.wrapAsync( HTTP.post, HTTP ); | |
encryptStringWithRsaPublicKey( data ) { | |
const absolutePath = Assets.absoluteFilePath( "public.key" ); //public key file path | |
const publicKey = fs.readFileSync( absolutePath, "utf8" ); |