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
151.101.129.227 rubygems.org | |
151.101.65.227 rubygems.org | |
151.101.1.227 rubygems.org | |
151.101.193.227 rubygems.org |
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/sh | |
# apple magic trackpad drag lock | |
amk=$(xinput list | grep 'Apple Inc. Magic Trackpad 2'| cut -f 2 | sed 's/id=//') | |
if [[ x$amk != 'x' ]] ; then | |
prop=$(xinput list-props $amk |grep 'Tapping Drag Lock Enabled' | grep -v Default| sed -E 's/.*\((.*)\).*/\1/') | |
xinput set-prop $amk $prop 1 | |
fi |
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 * as lodash from 'lodash'; | |
declare global { | |
const _: lodash.LoDashStatic; | |
interface Window { | |
_: lodash.LoDashStatic; | |
} | |
} |
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
#cloud-config | |
packages: | |
- gcc | |
package_update: true | |
package_upgrade: true | |
package_reboot_if_required: true |
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
datasource: | |
CloudStack: {} | |
None: {} | |
datasource_list: | |
- CloudStack |
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
{ | |
"name": "app", | |
"description": "app", | |
"license": "MIT", | |
"type": "project", | |
"require": { | |
"laravel/lumen-framework": "5.0.*", | |
"vlucas/phpdotenv": "~1.0", | |
"guzzlehttp/guzzle": "5.3.*" | |
}, |
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
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
// author: Pawel Kozlowski | |
var myApp = angular.module('myApp', []); | |
//service style, probably the simplest one | |
myApp.service('helloWorldFromService', function() { | |
this.sayHello = function() { | |
return "Hello, World!" |
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
javascript:(function(){ | |
var url='https://raw.github.com/gist/3055294/51947c2ee4948be5a046ac6b1b69088fd3b89574/gistfile1.js'; | |
var e = document.createElement('script'); | |
e.src=url; | |
document.getElementsByTagName('head')[0].appendChild(e); | |
})(); |
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
// Thanks to http://d.hatena.ne.jp/mtoyoshi/20090321/1237723345 | |
var numberFormat = function(num){ | |
return num.toString().replace(/([\d]+?)(?=(?:\d{3})+$)/g, function(t){ return t + ','; }); | |
}; | |
$('li.officeData dl.data dt').each(function(){ | |
if($(this).text() == '面積:'){ | |
var price = parseFloat($(this).prev().text().replace(/[,円]/g, '')); | |
var tsubo = parseFloat($(this).next().text().replace(/坪/g, '')); | |
var unitprice = Math.round(price/tsubo); |
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
Formula name [mymemcheck]: | |
... edit Formula file ... | |
require 'formula' | |
class Mymemcheck <Formula | |
url 'http://gist.github.com/raw/227178/d03bb254c9a28206d6ed516947e1893472ab9558/mymemcheck.rb' | |
homepage '' | |
md5 '' | |
# depends_on 'cmake' |