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
curl -s https://api.github.com/users/milanboers/repos | grep \"clone_url\" | awk '{print $2}' | sed -e 's/"//g' -e 's/,//g' | xargs -n1 git clone |
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
#AND | |
<b:if cond='data:blog.pageType == "index"'> | |
<b:if cond='data:blog.searchQuery'> | |
<!--search_page AND index_page--> | |
</b:if> | |
</b:if> | |
#OR |
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 language='javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js' type='text/javascript'/> | |
<script type='text/javascript'> | |
//<![CDATA[ | |
$(document).ready(function() { | |
$.fn.resizeImage = function() { | |
$('.post-body').table_to_div(); | |
var postWidth = $('.post-body').width(); | |
var sAttribut = /\/s\B\d{2,4}/; | |
$('.post-body').find('img').each(function(n, image){ |
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 | |
// yo can follow this guide to http://www.benrlodge.com/blog/post/how-to-generate-an-instagram-access-token# | |
#1 first you need to create a Client in Instgram Developer Dashboard | |
// https://www.instagram.com/developer/clients/manage/ | |
#2 after you need to retrive a oAuth code for after get access_token | |
// https://www.instagram.com/developer/authentication/ | |
// change the params with your one and open link in browser |
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 | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
class Home extends CI_Controller { | |
public function index() | |
{ | |
$this->db = $this->load->database('default', TRUE); | |
$sql = "select ITM_CD,ITM_NAME,PRICE from dbo.RETAIL_ITEM "; |
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
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
//CSS | |
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
/ip firewall address-list | |
add address=0.0.0.0/8 list=private-lokal | |
add address=10.0.0.0/8 list=private-lokal | |
add address=100.64.0.0/10 list=private-lokal | |
add address=127.0.0.0/8 list=private-lokal | |
add address=169.254.0.0/16 list=private-lokal | |
add address=172.16.0.0/12 list=private-lokal | |
add address=192.0.0.0/24 list=private-lokal | |
add address=192.0.2.0/24 list=private-lokal | |
add address=192.168.0.0/16 list=private-lokal |
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
import { Dimensions } from 'react-native'; | |
const { width, height } = Dimensions.get('window'); | |
const ScaleWidth = (scaleWidth) => { | |
const DESIGN_WIDTH = 180; | |
return (scaleWidth * width) / DESIGN_WIDTH | |
} | |
const ScaleHeight = (scaleHeight) => { | |
const DESIGN_HEIGHT = 180; |
OlderNewer