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
| SSMA | |
| General Solutions for migration | |
| 1. Update Mysql DB | |
| 2. SSMA > Table > Refresh from DB | |
| 3. SSMA > Table > Convert Schema | |
| 4. SSMA > SQL Server Table > Synchronize with Database | |
| 5. SSMA > MySQL Table > Migrate Data | |
| 6. Apply previous MySQL logic in MSSQL equivalent (most should be possible) in separate query |
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
| <string name="link"> <![CDATA[<a href="%1$s"><u>%2$s</u></a>]]> </string> |
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
| function addOrdinalSuffix(number) { | |
| return number+(['st','nd','rd'][( number +'').match(/1?\d\b/)-1]||'th'); | |
| } |
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
| function(dateText) { | |
| try { | |
| // US format | |
| $.datepicker.parseDate('mm/dd/yy', dateText); | |
| } catch (e) { | |
| alert(e); | |
| // alert user | |
| }; | |
| } |
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
| <script> | |
| function tweetIt(event) { | |
| window.twttr=window.twttr||{}; | |
| var D=550,A=450,C=screen.height,B=screen.width,H=Math.round((B/2)-(D/2)),G=0,F=document,E; | |
| if(C>A){G=Math.round((C/2)-(A/2))} | |
| var fullLink = 'http://twitter.com/share?url=' + encodeURIComponent(document.URL) + '&text=' + encodeURIComponent(document.title); | |
| window.twttr.shareWin=window.open(fullLink,'','left='+H+',top='+G+',width='+D+',height='+A+',personalbar=0,toolbar=0,scrollbars=1,resizable=1'); | |
| E=F.createElement('script'); | |
| E.src='https://platform.twitter.com/widgets.js'; | |
| F.getElementsByTagName('head')[0].appendChild(E); |
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
| <!-- credit: http://www.brandaiddesignco.com/insights/add-a-custom-pinterest-pin-it-button-to-your-website/ --> | |
| <a href='javascript:void((function()%7Bvar%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','http://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)%7D)());'><img src='http://www.brandaiddesignco.com/insights/PinIt.png'/></a> |
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
| function getQueryVariable(variable) | |
| { | |
| var query = window.location.search.substring(1); | |
| var vars = query.split("&"); | |
| for (var i=0;i<vars.length;i++) { | |
| var pair = vars[i].split("="); | |
| if(pair[0] == variable){return pair[1];} | |
| } | |
| return(false); | |
| } |
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
| var url = location.origin; | |
| var form = $('').serialize(); | |
| $.ajax({ | |
| url: url, | |
| type: 'post', | |
| dataType: 'json', | |
| data: form, | |
| }).done(function(data){ | |
| console.log("success"); |
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
| function array_keys_i($array, $str){ | |
| $results = array(); | |
| foreach($array as $key => $value) { | |
| if(stristr($str,$value)) { | |
| $results[] = $key; | |
| } | |
| } | |
| if(empty($results)) { |
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
| #!/bin/sh | |
| # chmod +x initial_setup.sh | |
| # sudo ./initial_setup.sh | |
| sudo apt-get install -y \ | |
| curl \ | |
| vim \ | |
| git \ | |
| alacarte \ |
NewerOlder