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
<h1>CSS Directional Tooltips</h1> | |
<div class="demo"> | |
<p>Data attribute only <a href="#" data-tooltip="I’m the tooltip text">Tooltip</a></p> | |
<p><code>.tooltip</code> <a href="#" class="tooltip" data-tooltip="I’m the tooltip text.">Tooltip</a></p> | |
<p><code>.tooltip-top</code> <a href="#" class="tooltip-top" data-tooltip="I’m the tooltip text.">Tooltip</a></p> | |
<p><code>.tooltip-right</code> <a href="#" class="tooltip-right" data-tooltip="I’m the tooltip text.">Tooltip</a></p> | |
<p><code>.tooltip-bottom</code> <a href="#" class="tooltip-bottom" data-tooltip="I’m the tooltip text.">Tooltip</a></p> | |
<p><a href="#" class="tooltip-left" data-tooltip="I’m the tooltip text.">Tooltip</a> <code>.tooltip-left</code></p> |
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
<div id="elementToprint"> | |
Text to be in the PDF, simple function create by Sanix darker!!! | |
</div> | |
<input type="button" value="IMPRIME" onclick="PrintElem('elementToprint');"> | |
<script type="text/javascript"> | |
function PrintElem(elem) | |
{ | |
var mywindow = window.open('', 'PRINT', 'height=400,width=600'); |
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
<script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.min.js"></script> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.devbridge-autocomplete/1.4.3/jquery.autocomplete.min.js"></script> | |
<style type="text/css"> | |
.autocomplete-suggestions { border: 1px solid #999; background: #fff; cursor: default; overflow: auto; } | |
.autocomplete-suggestion { padding: 10px 5px; font-size: 1.2em; white-space: nowrap; overflow: hidden; } | |
.autocomplete-selected { background: #f0f0f0; } | |
.autocomplete-suggestions strong { font-weight: normal; color: #3399ff; } | |
</style> | |
<div id="searchfield"> |
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
#basics: | |
rails console | |
rails server | |
rake | |
rails generate | |
rails dbconsole | |
rails new app_name | |
#create scaffold | |
rails generate scaffold level |
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
$.fn.followTo = function (pos) { | |
var $this = this, | |
$window = $(window); | |
$window.scroll(function (e) { | |
if ($window.scrollTop() > pos) { | |
$this.css({ | |
position: 'fixed', | |
top: 0 |
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
rails generate migration AddPartNumberToProducts part_number:string |
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
Github credentials: Control Panel\User Accounts and Family Safety\Credential Manager | |
Then click on Windows Credentials |
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
<div ng-if="!profile_tab"> | |
<div class="card-item" ng-click="changeAvatar('id_front')"> | |
<img ng-if="user.individual_profile.national_id_front=='/images/missing.png'" | |
ng-src="img/auth/missing_card.png" alt="" class="row no-padding"> | |
<img ng-if="user.individual_profile.national_id_front!='/images/missing.png'" | |
ng-src="{{user.individual_profile.national_id_front}}" alt="" class="row no-padding"> | |
<div class="row peex-first-background text-center card-id"> | |
<span class="text-center"> | |
National ID Front | |
</span> |
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 an .onion service in the Tor network is as simple as editing /etc/tor/torrc and adding: | |
HiddenServiceDir /var/lib/tor/www_service/ | |
HiddenServicePort 80 127.0.0.1:80 | |
# After restarting the tor service with | |
sudo service tor restart | |
# or | |
sudo service tor reload | |
# The directory will be created automagically, and inside the new directory, two files are generated, hostname and private_key. |
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
function merge(obj1,obj2){ // Our merge function | |
var result = {}; // return result | |
for(var i in obj1){ // for every property in obj1 | |
if((i in obj2) && (typeof obj1[i] === "object") && (i !== null)){ | |
result[i] = merge(obj1[i],obj2[i]); // if it's an object, merge | |
}else{ | |
result[i] = obj1[i]; // add it to result | |
} | |
} | |
for(i in obj2){ // add the remaining properties from object 2 |