Discover Gists

View something.sh
1 2
#!/bin/sh
↑ ↑ ↓ ↓ ← → ← → B A <RET>
View gist:10881258
1 2 3 4 5 6 7 8 9
--Distinct File extensions
SELECT DISTINCT Reverse(Substring(Reverse(originalfilename), 1,
Charindex('.', Reverse(originalfilename)
) - 1)) AS FileExt
FROM [file] with (nolock)
WHERE Charindex('.', originalfilename) != 0
ORDER BY Reverse(Substring(Reverse(originalfilename), 1,
Charindex('.', Reverse(originalfilename)
) - 1))
View save-upload
1 2 3 4 5 6 7 8 9 10
function save_upload( $_FILES = false ) {
$photos = array();
if( $_FILES ) {
$allowedExts = array("gif", "jpeg", "jpg", "png");
 
foreach( $_FILES as $name=>$photo ) {
$temp = explode(".", $photo["name"]);
View push.php
1 2 3 4 5 6 7 8 9 10
function pushbullet($title,$body)
{
$apikey='v1dFWupd5ifoOz0tajOc';
$device_iden='ujEH7v8iCkedjz';
$req_args = array(
'headers' => array(
'Authorization' => 'Basic ' . base64_encode( $apikey.':')
),
'timeout' => 50,
'sslverify' =>FALSE,
View gist:10852696
1 2 3 4 5 6 7 8 9 10
html.css('em,strong').each do |e|
if e.content.split.length <= 3
e.search('//text()').each do |n|
if ends_with_space
n.content = n.text.gsub(/^\s/,"\u00A0")
end
n.content = n.text.gsub(/(?<=[\s\u00A0])\s/,"\u00A0")
ends_with_space = n.text.match(/\s$/)
end
end
View readme.md

SQL*LOADER パラメータファイル

実行方法

sql*loader.batを叩く

フォルダ構成

sqlloader.bat
View pom.xml
1 2 3 4 5 6 7 8 9 10
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>MyWebService</groupId>
<artifactId>MyWebService</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>MyWebService</name>
<dependencies>
<dependency>
View BuildConfig.groovy
1 2
// Inline Testing
grails.plugin.location."plugin-name" = "../relative/path"
View gist:10880924
1 2 3 4 5 6 7 8 9
.factory('machinesCache', function() {
 
var _model = {machines: null};
 
return {
 
setMachines: function(data) {
_model.machines = data;
},
View Note
1
Andorid BootCamp Notes
Something went wrong with that request. Please try again.