What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-25 12:10:20
Allow gcphone event
client.luaRegisterNUICallback('callEvent', function(data, cb) local eventName = data.eventName or '' if string.match(eventName, 'gcphone') or string.match(eventName, 'Taxi') then if data.data ~= nil then TriggerEvent(data.eventName, data.data) ... Add solution -
Javascript 2022-03-22 01:15:03
adonisjs delete rollback transaction
'use strict'; class SafeDelete { register(Model, customOptions = {}) { const defaultOptions = {}; const options = Object.assign(defaultOptions, customOptions); const safeDelete = async function(trx) { return trx .from(Model.ta... Add solution -
PHP 2022-03-21 12:00:21
wp_schedule_event
register_activation_hook( __FILE__, 'my_activation' ); add_action( 'my_hourly_event', 'do_this_hourly' ); function my_activation() { wp_schedule_event( time(), 'hourly', 'my_hourly_event' ); } function do_this_hourly(... Add solution -
Other 2022-03-19 11:35:22
save router config with ansible
---- hosts: router gather_facts: false vars: git_branch: /etc/ansible/playbooks/backuptasks:---- hosts: router gather_facts: false vars: git_branch: /etc/ansible/playbooks/backuptasks: - name: switch to target branch command: git checkout &q... Add solution
Best helpers
Ranking is empty