This file contains hidden or 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
func wrappedTable(document *gofpdf.Fpdf, encodingFunc report.EncodingFunc, | |
rows [][]string, cols []float64, marginCell float64, border bool) []position { | |
var ( | |
padding = 10.0 | |
paddingCell = 2. // padding of top/bottom of cell | |
rowsPositions []position | |
) | |
_, pageh := document.GetPageSize() |
This file contains hidden or 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
# ~/.config/completions/gswitch.fish | |
# | |
# creates a variable with the name of gcloud named configurations. Ex.: | |
# | |
# ~ glist | |
# NAME IS_ACTIVE ACCOUNT PROJECT | |
# aluminium False [email protected] aluminium-123 | |
# nickel True [email protected] nickel-001 | |
# zinc False [email protected] zinc-project | |
# |
This file contains hidden or 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 main | |
import ( | |
"fmt" | |
"net/http" | |
"time" | |
"golang.org/x/sync/errgroup" | |
) |
This file contains hidden or 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 main | |
import ( | |
"fmt" | |
"sync" | |
"log" | |
"net/http" | |
) | |
type Response struct { |
This file contains hidden or 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
class Sample | |
HOURS = { | |
'mon' => [], | |
'tue' => [ | |
['09:00', '19:00'], | |
], | |
'wed' => [ | |
['09:00', '19:00'], | |
], | |
'thu' => [ |
This file contains hidden or 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 main | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" | |
"net/http" | |
) | |
func main() { |
This file contains hidden or 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 | |
git status &>- | |
if [ "$?" -ne 0 ]; then | |
printf "%0s$(echo -en "\033[1;31m")Error :$(echo -en "\033[0m") Run this command in a git repo" | |
exit 1 | |
fi | |
declare -A techs=( ["Ruby"]="rb" ["Javascript"]="js" ["Html"]="html" ["Css"]="css") | |
authors=$(git shortlog -s | awk '{print $2}') |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
javascript:( | |
function(){ | |
a=document.createElement('SCRIPT'); | |
a.type='text/javascript'; | |
a.src='http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js'; | |
document.getElementsByTagName('head')[0].appendChild(a); | |
} | |
)(); |
This file contains hidden or 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 | |
current_path=`pwd` | |
projects=(webdesk/webdesk webdesk/webdesk-provisioner webdesk/webdesk-product-api | |
webchat/webchat webchat/webchat-provisioner webchat/webchat-product-api | |
pabx-virtual/pabx-virtual-2011 pabx-virtual/pabx-provisioner | |
pabx-virtual/pabx-product-api pabx-virtual/ruby_pabx_core | |
saas_plan_config/saas_plan_config | |
locaweb-utilities/x9 package_pipeline/package_pipeline | |
product-apify/product-apify feed_consumer/feed_consumer |
NewerOlder