This file contains 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
Show hidden characters
[ | |
// Comment out current line | |
{ "keys": ["ctrl+7"], "command": "toggle_comment", "args": { "block": false } }, | |
// Start a comment | |
{ "keys": ["ctrl+shift+7"], "command": "toggle_comment", "args": { "block": true } }, | |
// Open folder | |
{ "keys": ["ctrl+shift+o"], "command": "prompt_open_folder" }, | |
// insert console.log() | |
{ "keys": ["super+shift+l"], "command": "insert_snippet", "args": { "contents": "console.log(${1:}$SELECTION);${0}" } }, | |
// Create post template |
This file contains 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 | |
$firstanme = $_GET['firstname']; | |
$sql="INSERT INTO users(`firstname`) VALUES (:firstname)"; | |
$stmt = $db->prepare($sql); | |
$stmt->bindValue(':placeholder, $firstname'); | |
$stmt -> execute(); | |
?> |
This file contains 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 | |
$headers = | |
'From: Expozers Team <[email protected]>' . "\r\n" . | |
'Reply-To: [email protected]' . "\r\n" . | |
'MIME-Version: 1.0' . "\r\n" . | |
'Content-Type: text/html; charset=ISO-8859-1' . "\r\n"; | |
mail($mail,"Invite",$msg, $headers); | |
header('Location:?page=admin'); | |
?> |
This file contains 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
/* | |
stats list - parameter to analyze | |
- if is read | |
- how much time spent | |
- how much was read | |
- idle time (no scrolling + no mouse move + no typing) | |
- time spent with some element (article suggestions) in the viewport | |
is_read = scroll to the the end of the element observed and time_spent > 80% | |
*/ |
This file contains 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
// creating the object | |
var xmlHttp = createXmlHttpRequestObject(); | |
function createXmlHttpRequestObject() { | |
var xmlHttp; | |
//all modern browsers | |
if (window.XMLHttpRequest) { xmlHttp = new XMLHttpRequest(); } | |
//if IE 6 or below | |
else if (window.ActiveXObject("Microsoft.XMLHTTP")) |
This file contains 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
// Search UI Block | |
.search { | |
// Elements | |
> .search__field { | |
/* ... */ | |
} | |
> .search__btn { | |
/* ... */ | |
} |
This file contains 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
git subtree push --prefix client/dist [folder] origin gh-pages [remote branch] |
This file contains 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
public class Commander | |
{ | |
public void Deploy(object value) | |
{ | |
//Deploy | |
} | |
public object this[int index] | |
{ | |
//Report | |
get { throw new NotImplementedException(); } |
This file contains 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
public class GenericClass<T> | |
{ | |
public void Add(T value) | |
{ | |
//Deploy | |
} | |
public T this[int index] | |
{ | |
get { throw new NotImplementedException(); } |
This file contains 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
'body': | |
'ctrl-tab ^ctrl': 'unset!' | |
'ctrl-tab': 'pane:show-next-item' | |
'ctrl-shift-tab ^ctrl': 'unset!' | |
'ctrl-shift-tab': 'pane:show-previous-item' |
OlderNewer