Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
| REM Credit: https://stackoverflow.com/a/5642300/1167442 | |
| REM Blank line after caret is required | |
| (SET LF=^ | |
| ) | |
| <?php | |
| $file = '/path/to/file.png'; | |
| $filename = basename($file); | |
| $upload_file = wp_upload_bits($filename, null, file_get_contents($file)); | |
| if (!$upload_file['error']) { | |
| $wp_filetype = wp_check_filetype($filename, null ); | |
| $attachment = array( | |
| 'post_mime_type' => $wp_filetype['type'], | |
| 'post_parent' => $parent_post_id, |
| SELECT | |
| DISTINCT OBJECT_DEFINITION(sv.object_id) | |
| FROM | |
| sys.views sv | |
| JOIN sys.columns sc ON (sv.object_id = sc.object_id) | |
| WHERE | |
| sc.name LIKE '%#{$1:COLUMN_NAME_SUBSTRING}%' |
| function populate() { | |
| let y=Math.round(Math.random()*15)+2000; | |
| let m=String(Math.round(Math.random()*11)+1).padStart(2, '0') | |
| let d=String(Math.round(Math.random()*28)+1).padStart(2, '0') | |
| $('#firstname').val(chance.first()); | |
| $('#lastname').val(chance.last()); | |
| $('#birthdate').val(`${y}-${m}-${d}`); | |
| $fa('newReferral_submit').trigger('click'); | |
| } | |
| $fa = (function (n) { |
| $f = (function (n) { | |
| return $('.modal-body').find(`[name="${n}"]`); | |
| }); | |
| $fa = (function (n) { | |
| return $(`[name="${n}"]`); | |
| }); | |
| function opened(){ | |
| $('.nav.nav-tabs').find('li:eq(1)').find('a').trigger('click'); | |
| populate(); | |
| } |
| :root { | |
| --gray-dark: #666b79; | |
| --gray-light:#dddfe2; | |
| --orange-dark:#fec065; | |
| --orange-light:#fdefcc; | |
| --green-dark:#a1c86d; | |
| --green-light:#e8f3dc; | |
| --forest-dark:#77bb7c; | |
| --forest-light:#d7f0da; | |
| --teal-dark:#71d3be; |
Posted on November 30, 2010 by briancaos http://briancaos.wordpress.com/2010/11/30/response-redirect-throws-an-thread-was-being-aborted/
Response.Redirect causes the browser to redirect to a different URL. It does so by sending a 302 – Object Moved to the browser, requesting it to do another roundtrip to the new page. Here is an example:
protected void Page_Load(object sender, EventArgs e)
{
try
| -- Replace {{stored_procedure_name}} with Stored procedure name | |
| DECLARE | |
| @sp nvarchar(100) | |
| SET @sp = N'{{stored_procedure_name}}' | |
| -- Objects that depends on [@sp] | |
| SELECT | |
| referencing_entity_name | |
| FROM sys.dm_sql_referencing_entities(@sp, 'OBJECT') |