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
#!/bin/bash | |
# ------------------------------------------------- | |
# Get monitors configuration from monitor.xml and apply it for current user session. | |
# In case of multiple definitions in monitor.xml only first one is used. | |
# | |
# See http://bernaerts.dyndns.org/linux/74-ubuntu/309-ubuntu-dual-display-monitor-position-lost | |
# for instructions | |
# | |
# Revision history : | |
# 19/04/2014, V1.0 - Creation by N. Bernaerts |
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
# copy items | |
# if you have a zip here: http://myserver.com/my.zip and it contains myFile.txt and myFolder/myOtherFile.txt | |
# you can call this script like so: | |
# .\download_zip.ps1 http://myserver.com/my.zip "myFile.txt|c:\myFileDestination\myFileHere.txt" "myFolder/myOtherFile.txt|c:\myOtherDestination\myOtherFile.txt" | |
# | |
"download script -----------------------------------------" | |
"------" | |
"Downloads from the given url, unzips it then for each string arg, copies the file to the destination" |
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
package org.corespring.platform.json.transformers | |
object ItemTransformer extends JsonTransformer( | |
"taskInfo.title" -> "title", | |
"taskInfo.subjects.primary" -> "primarySubject", | |
"taskInfo.subjects.related" -> "relatedSubject", | |
"taskInfo.itemType" -> "itemType", | |
"taskInfo.gradeLevel" -> "gradeLevel", | |
"otherAlignments.keySkills" -> "keySkills", |
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
# migrating from https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/git/git.plugin.zsh | |
# Aliases | |
alias g='git' | |
#compdef g=git | |
alias gst='git status' | |
#compdef _git gst=git-status | |
alias gd='git diff' | |
#compdef _git gd=git-diff | |
alias gdc='git diff --cached' |
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
/************************************************************************************************************ | |
Inspired by: http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=84331 | |
Created By: Bryan Massey | |
Created On: 3/11/2007 | |
Comments: Stored proc performs the following actions: | |
1) Queries system tables to retrieve table schema for @TableName parameter | |
2) Creates a History table ( @TableName + '_History') to mimic the original table, plus include | |
additional history columns. | |
3) If @CreateTrigger = 'Y' then it creates an Update/Delete trigger on the @TableName table, | |
which is used to populate the History table. |
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
gst | grep modified | awk '{print $3}' | xargs -I {} cp {} ~/my_destination |
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
<!doctype html> | |
<html> | |
<head> | |
<title>Demo</title> | |
<style> | |
body { | |
font-family: 'Roboto', sans-serif; | |
} |
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
if (!Function.prototype.bind) { | |
Function.prototype.bind = function (oThis) { | |
if (typeof this !== "function") { | |
// closest thing possible to the ECMAScript 5 internal IsCallable function | |
throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable"); | |
} | |
var aArgs = Array.prototype.slice.call(arguments, 1), | |
fToBind = this, | |
fNOP = function () {}, |
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
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
NewerOlder