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
*&---------------------------------------------------------------------* | |
*& Report YGDF_REPORT_MVC | |
*& | |
*&---------------------------------------------------------------------* | |
*& | |
*& | |
*&---------------------------------------------------------------------* | |
REPORT YGDF_REPORT_MVC. |
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
*&---------------------------------------------------------------------* | |
*& Report ZMM35BWART2MTYPE_MNT | |
*& | |
*&---------------------------------------------------------------------* | |
*& | |
*& | |
*&---------------------------------------------------------------------* | |
report zmm35bwart2mtype_mnt. |
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
How to add 2 gateways and seperate clients by Chupaka | |
/ip firewall mangle add chain=prerouting src-address=198.54.15.0/24 action=mark-routing new-routing-mark=r_178 | |
/ip firewall mangle add chain=prerouting src-address=192.168.10.0/24 action=mark-routing new-routing-mark=r_178 | |
/ip firewall mangle add chain=prerouting src-address=192.168.11.0/24 action=mark-routing new-routing-mark=r_172 | |
/ip firewall mangle add chain=prerouting src-address=192.168.12.0/24 action=mark-routing new-routing-mark=r_172 | |
/ip route add gateway=178.242.0.200 routing-mark=r_178 | |
/ip route add gateway=172.16.0.200 routing-mark=r_172 |
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 pandas as pd | |
# Create DataFrame | |
df = pd.read_csv('data.csv') | |
jnum = 1 | |
#loop through each row of dataframe (not including the first/zeroeth) | |
df['Global group'].loc[0] = jnum | |
for i in range(1,len(df)): | |
if df.BOM.loc[i] == df.BOM.loc[i-1] and df['Group'].loc[i] == df['Group'].loc[i-1]: | |
df['Global group'].loc[i] = jnum |
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
// Reference: http://lea.verou.me/2011/10/easily-keep-gh-pages-in-sync-with-master/ | |
$ git add . | |
$ git status // to see what changes are going to be commited | |
$ git commit -m 'Some descriptive commit message' | |
$ git push origin master | |
$ git checkout gh-pages // go to the gh-pages branch | |
$ git rebase master // bring gh-pages up to date with master | |
$ git push origin gh-pages // commit the changes |
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
// Normalize Carousel Heights - pass in Bootstrap Carousel items. | |
$.fn.carouselHeights = function() { | |
var items = $(this), //grab all slides | |
heights = [], //create empty array to store height values | |
tallest; //create variable to make note of the tallest slide | |
var normalizeHeights = function() { | |
items.each(function() { //add heights to array |
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 requests, json | |
open('output.txt', 'w').close() | |
with open('towns.txt') as f: | |
lines = f.readlines() | |
length = len(lines) | |
i = 0 | |
while i < length: | |
for j in range(i, length): | |
begin = lines[i].strip('\n') | |
end = lines[j].strip('\n') |
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
@ECHO OFF | |
REM # | |
REM # [EN] Remove telemetry updates for Windows 7 and 8.1 | |
REM # | |
REM # Sources : | |
REM # https://gist.github.com/xvitaly/eafa75ed2cb79b3bd4e9#file-remove_crw-cmd | |
REM # | |
echo Uninstalling KB3075249 (telemetry for Win7/8.1) | |
start /w wusa.exe /uninstall /kb:3075249 /quiet /norestart | |
echo Uninstalling KB3080149 (telemetry for Win7/8.1) |
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
//add css class to cycle slider item, when clicking | |
jQuery(document).ready(function($){ | |
$('.slider .cycle-slide').click(function(){ | |
var index = $('.slider').data('cycle.API').getSlideIndex(this); | |
$('.cycle-slide-active').removeClass('cycle-slide-active'); | |
$(this).addClass('cycle-slide-active'); | |
}); | |
}); |
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 counter() { | |
var stepCount = 20; | |
var time = 2000; | |
var stepTime = time / stepCount; | |
var count1 = $('#count_1').text(); | |
var count2 = $('#count_2').text(); | |
var count3 = $('#count_3').text(); | |
var count4 = $('#count_4').text(); | |
var count5 = $('#count_5').text(); |
NewerOlder