(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
/** | |
* (c) Facebook, Inc. and its affiliates. Confidential and proprietary. | |
*/ | |
//============================================================================== | |
// Welcome to scripting in Spark AR Studio! Helpful links: | |
// | |
// Scripting Basics - https://fb.me/spark-scripting-basics | |
// Reactive Programming - https://fb.me/spark-reactive-programming | |
// Scripting Object Reference - https://fb.me/spark-scripting-reference |
require('Faraday') | |
require('json') | |
def fetch_hospitals(page=1) | |
url = "https://www.halodoc.com/api/rumah-sakit/v1/hospitals/search" | |
params = { page_no: page, per_page: 20 }.to_json | |
headers = { "Content-Type": "application/json"} | |
response = Faraday.put(url, params, headers) | |
return JSON.parse(response.body) |
module.exports = { | |
apps: [ | |
{ | |
name: 'entertainme - Client', | |
script: 'cd client && yarn install && yarn start', | |
}, | |
{ | |
name: 'entertainme - Orchestrator', | |
script: 'cd server/orchestrator/graphql && npm install && nodemon app.js', | |
}, |
import svelte from "rollup-plugin-svelte"; | |
import resolve from "@rollup/plugin-node-resolve"; | |
import commonjs from "@rollup/plugin-commonjs"; | |
import json from "@rollup/plugin-json"; | |
import livereload from "rollup-plugin-livereload"; | |
import { terser } from "rollup-plugin-terser"; | |
import html from "@rollup/plugin-html"; | |
const production = !process.env.ROLLUP_WATCH; | |
const version = String( |
import React from 'react' | |
import ReactDOM from 'react-dom' | |
const App = () => { | |
return( | |
<h1> Hello from React Webpacker </h1> | |
) | |
} | |
document.addEventListener('DOMContentLoaded', () => { |
keyword = "(Part" | |
files = Dir.entries('.').select{|x| x.include?(keyword)} | |
files.each do |file| | |
wor = file.match(/( \()(.+)(?=.mp4)/)[0] | |
num = wor.match(/([0-9]+)/)[0] | |
num = (num.to_i < 10)? "#{0}#{num}" : num | |
new_name = "#{num}. #{file.gsub(wor, '')}" | |
File.rename(file, "#{Dir.pwd}/#{new_name}") | |
end |
require 'rubygems' | |
require 'nokogiri' | |
youtube_xml = ARGV[0] | |
xml = File.open(ARGV[0]) | |
srt = File.open(ARGV[1] || youtube_xml.gsub('.xml', '.srt'), 'w+') | |
doc = Nokogiri::XML(xml) | |
doc.children.children.each_with_index do |text, idx| |
for i in `seq 1 114`; do | |
if [ $i -lt 10 ]; then | |
file="00$i" | |
elif [ $i -lt 100 ]; then | |
file="0$i" | |
else | |
file=$i | |
fi | |
wget "https://download.quranicaudio.com/quran/mishaari_raashid_al_3afaasee/$file.mp3" |
tell application "iTerm" | |
activate | |
-- buat window baru | |
set myterm to (make new terminal) | |
tell myterm | |
-- perintah2 yang akan di eksekusi tiap di setiap tab | |
set thelistOfCommands to {"cleopatra && rsd", "satutempat_api && rsd1", "mongoserver", "redis-server", "fake_start"} |