This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| System.Net.HttpWebRequest request = null; | |
| System.Net.HttpWebResponse response = null; | |
| request = (System.Net.HttpWebRequest)System.Net.HttpWebRequest.Create("www.example.com/somepath"); | |
| request.Timeout = 30000; | |
| try | |
| { | |
| response = (System.Net.HttpWebResponse)request.GetResponse(); | |
| flag = 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.6' | |
| services: | |
| db: | |
| image: mysql:latest | |
| command: --default-authentication-plugin=mysql_native_password | |
| environment: | |
| MYSQL_ROOT_PASSWORD: e9w86036f78sd9 | |
| volumes: | |
| - "./database:/var/lib/mysql" | |
| db_pma: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // To be put in your functions file. | |
| function my_login_logo_change() { | |
| ?> | |
| <style type="text/css"> | |
| body.login div#login h1 a { | |
| background-image: url(https://www.yourimageurl.com); //Add your own logo image in this url | |
| padding-bottom: 30px; | |
| } | |
| </style> | |
| <?php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Redirect users who arent logged in... | |
| // Add to your functions file. | |
| function members_only() { | |
| global $pagenow; | |
| // Check to see if user in not logged in and not on the login page | |
| if( !is_user_logged_in() && $pagenow != 'wp-login.php' ) | |
| auth_redirect(); | |
| } | |
| add_action( 'wp', 'members_only' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Excluding language for audio and subs in mkv | |
| set {audio} as any of these : | |
| for english audio = -a "eng" | |
| for english and french audio = -a "eng,fre" | |
| set {subtitle} as any of these : | |
| for english sub = -s "eng" | |
| for english and french sub = -s "eng,fre" | |
| for no sub (delete all) = --no-subtitles | |
| to keep all subs, let variable empty. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_action('gform_after_submission', 'gfToAcfListToRepeater', 10, 2); | |
| function gfToAcfListToRepeater($entry, $form) | |
| { | |
| foreach ($form['fields'] as $field) { | |
| if (!($field['type'] == 'post_custom_field' && $field['inputType'] == 'list' && $field['enableColumns'] == true)) { | |
| continue; | |
| } | |
| $id = $field['id']; |
A Pen by Nurdiana Atmanagara on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> | |
| <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> | |
| <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>video carousel - Bootstrap</title> |