What do you want to save?
Add Code snippet
New code examples
-
-
PHP 2022-02-26 18:05:14
custom post type with taxonomy
//hook into the init action and call create_book_taxonomies when it fires add_action( 'init', 'create_topics_hierarchical_taxonomy', 0 ); //create a custom taxonomy name it topics for your posts function create_topics_hierarchical_taxonomy() { // Ad... Add solution -
Python 2022-02-02 20:26:54
philips hue python
#!/usr/bin/python from phue import Bridge b = Bridge('ip_of_your_bridge') # If the app is not registered and the button is not pressed, press the button and call connect() (this only needs to be run a single time) b.connect() # Get the bridge state (T... Add solution -
Other 2022-02-01 07:10:01
bootstrap code snippets
<!--link this to boostsrap--> <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" /> <footer class="footer_area section_padding_130_0"> <div c... Add solution -
Shell/Bash 2021-11-20 22:01:15
coc.nvim not working after update
:call coc#util#install() Add solution -
Other 2021-11-15 15:43:23
nsubstitute method returns
This value will be returned every time this call is made. Returns() will only apply to this combination of arguments, so other calls to this method will return a default value instead. //Make a call return 3: calculator.Add(1, 2).Returns(3); Assert.AreEq... Add solution -
Javascript 2021-11-15 03:18:18
bajar archivos node
var http = require('http'); var fs = require('fs'); var download = function(url, dest, cb) { var file = fs.createWriteStream(dest); var request = http.get(url, function(response) { response.pipe(file); file.on('finish', function() { fil... Add solution -
Other 2021-11-14 03:37:19
composer download
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo '... Add solution -
C# 2021-11-11 09:07:10
system.objectdisposedexception: cannot access a disposed object. object name:
Srv_LoginChannelFactory.Close() is where it's being disposed. When you call close you are giving up whatever unmanaged resource you had. Attempting to do something other then inspecting its state or re-opening it results in the "Cannot access a dispo... Add solution