Skip to content

Instantly share code, notes, and snippets.

View steppefox's full-sized avatar
🦥

Eldar Amantay steppefox

🦥
View GitHub Profile
@steppefox
steppefox / maps_googlemaps_sitelist.md
Created November 4, 2013 04:34
List of sites about Google Maps
@steppefox
steppefox / php_parse_wordress_export.php
Created November 1, 2013 09:51
PHP Parsing wordpress export file
$data = file_get_contents(“http://myurls.com/feed.xml”);
$data = str_replace("content:encoded>","content>",$data);
$xml = simplexml_load_string($data);
$item = $xml->channel;
foreach($item->item AS $art){
$content = $art->content;
echo $content;
}
@steppefox
steppefox / php_low_tthat_word.php
Created November 1, 2013 05:21
PHP snippet for lowing word with first big character
public function lowThatWord( $word )
{
return mb_strtoupper( mb_substr( $word, 0, 1, 'UTF-8' ), 'UTF-8' ).mb_strtolower( mb_substr( $word, 1, mb_strlen( $word, 'UTF-8' ), 'UTF-8' ), 'UTF-8' );
}
@steppefox
steppefox / mongodb_list_of_types.md
Created October 31, 2013 09:30
MongoDB list of type for field:{$type:typeNumber} query
  • Double 1
  • String 2
  • Object 3
  • Array 4
  • Binary data 5
  • Undefined (deprecated) 6
  • Object id 7
  • Boolean 8
  • Date 9
  • Null 10
@steppefox
steppefox / js_usefull_list.md
Created October 30, 2013 11:48
JS List of usefull libraries
http://habrahabr.ru/post/199500/
http://habrahabr.ru/post/199472/
@steppefox
steppefox / css_infinite_spin.css
Created October 29, 2013 13:29
CSS3 infinite spin
.spin{
-webkit-animation: spin 1s infinite linear;
-moz-animation: spin 1s infinite linear;
-o-animation: spin 1s infinite linear;
animation: spin 1s infinite linear;
}
@-moz-keyframes spin {
0% {
-moz-transform: rotate(0deg);
@steppefox
steppefox / css_transition.css
Created October 29, 2013 13:27
CSS3 Little snippet for transitions
-webkit-transition: all 100ms;
-moz-transition: all 100ms;
-ms-transition: all 100ms;
-o-transition: all 100ms;