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
Ember.Handlebars.helper('filesize', function(value) { | |
if (typeof value === 'undefined') { | |
return null; | |
} | |
var i, | |
filesize, | |
units = ['B', 'KB', 'MB', 'GB', 'TB']; | |
for (i = 0; i < units.length; i++) { | |
if (value < 1024) { | |
filesize = Math.floor(value) + units[i]; |
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 | |
# https://gist.github.com/rc1/5346303 | |
# Convert a TTF font into WOFF, SVG and EOT format. | |
# @source: http://stackoverflow.com/a/2467452/179015 | |
# @usage: ttf2webfont.sh FontName | |
woffFont="$1.woff" | |
svgFont_tmp="$1_tmp.svg" | |
svgFont="$1.svg" | |
ttfFont="$1.ttf" | |
eotFont="$1.eot" |
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
sass --compass --style nested --line-numbers --line-comments --debug-info --trace --no-cache --force --stop-on-error --unix-newlines --update roboto.scss:roboto.css |
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
gem update --system | |
gem update | |
# gem sources --clear-all | |
# gem sources --update | |
# gem install sass --version 3.4.25 | |
# gem uninstall |
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
npm update npm -g | |
npm update -g |
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
CROSS_PREFIX=x86_64-w64-mingw32- ./configure --prefix=/usr/local/x86_64-w64-mingw32 --static |
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
setup-x86.exe -B -q -n -N -d -g -a x86 -R d:\cygwin -s ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin/ -l D:/down/cygwin/ -P binutils,patch,libtool,make,flex,bison,patch,texinfo,gettext,perl,ruby,gawk,python,unzip,intltool,openssh-server,build-essential,automake,autoconf,libtool,pkg-config,m4,subversion,gcc-core,gcc-g++,bzip2,wget,tar,vim,ruby,xorg-server,xinit,xorg-docs,openssh,inetutils,procps,mc,ping,screen,mercurial,bash-completion,git-completion,git-cvs,git-gui,git-svn,gitk,sqlite3,docbook-utils,doxygen,mingw64-i686-gcc-core,mingw64-i686-gcc-g++,mingw64-x86_64-gcc-core,mingw64-x86_64-gcc-g++,nasm,mingw64-i686-pkg-config,mingw64-x86_64-pkg-config,mingw64-x86_64-winpthreads,mingw64-i686-winpthreads,libiconv |
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
Index: Dll/Makefile.mingw32 | |
=================================================================== | |
RCS file: /cvsroot/lame/lame/Dll/Makefile.mingw32,v | |
retrieving revision 1.3 | |
diff -u -r1.3 Makefile.mingw32 | |
--- Dll/Makefile.mingw32 7 Feb 2009 11:18:46 -0000 1.3 | |
+++ Dll/Makefile.mingw32 20 Jan 2015 20:42:12 -0000 | |
@@ -15,7 +15,8 @@ | |
CFLAGS = -I$(LAME_SRC_ROOT)/include -I$(LAME_SRC_ROOT)/libmp3lame | |
CC = g++ |
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 | |
# https://msys2.github.io/ | |
# pacman --needed -Sy bash pacman pacman-mirrors msys2-runtime-devel msys2-runtime | |
# pacman -Syu | |
# https://sourceforge.net/p/msys2/wiki/MSYS2%20installation/ | |
# Since pacman 5.0.1.6403, you can just | |
# Run **`pacman -Syuu`**. Follow the instructions. Repeat this step until it says there are no packages to update. | |
pacman -Syuu |
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
<!--- http://stackoverflow.com/questions/32385955/soap-web-service-with-optional-arguments?noredirect=1#comment52650901_32385955 ---> | |
<cfcomponent output="false"> | |
<cffunction name="myFunc" returntype="struct" access="remote"> | |
<cfargument name="mParam" type="numeric" required="true"> | |
<cfargument name="oParam" type="string" required="false" default="strDefault"> | |
<cfreturn Arguments> | |
</cffunction> |
OlderNewer